All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.anaptecs.spring.base.OpenAPITestObject Maven / Gradle / Ivy

There is a newer version: 1.24.2
Show newest version
/*
 * anaptecs GmbH, Ricarda-Huch-Str. 71, 72760 Reutlingen, Germany
 * 
 * Copyright 2004 - 2019. All rights reserved.
 */
package com.anaptecs.spring.base;

/**
 * @author JEAF Generator
 * @version JEAF Release 1.4.x
 */
public class OpenAPITestObject {
  /**
   * Constant for the name of attribute "readOnlyAttribute".
   */
  public static final String READONLYATTRIBUTE = "readOnlyAttribute";

  /**
   * Constant for the name of attribute "readWriteAttribute".
   */
  public static final String READWRITEATTRIBUTE = "readWriteAttribute";

  /**
   * Constant for the name of attribute "writeOnlyAttribute".
   */
  public static final String WRITEONLYATTRIBUTE = "writeOnlyAttribute";

  /**
   * Constant for the name of attribute "nullableAttribute".
   */
  public static final String NULLABLEATTRIBUTE = "nullableAttribute";

  /**
   * Constant for the name of attribute "notNullableAttribute".
   */
  public static final String NOTNULLABLEATTRIBUTE = "notNullableAttribute";

  /**
   * Constant for the name of attribute "readOnlyArray".
   */
  public static final String READONLYARRAY = "readOnlyArray";

  /**
   * Constant for the name of attribute "readWriteArray".
   */
  public static final String READWRITEARRAY = "readWriteArray";

  /**
   * Constant for the name of attribute "writeOnlyArray".
   */
  public static final String WRITEONLYARRAY = "writeOnlyArray";

  /**
   * Constant for the name of attribute "nullableArray".
   */
  public static final String NULLABLEARRAY = "nullableArray";

  /**
   * Constant for the name of attribute "notNullableArray".
   */
  public static final String NOTNULLABLEARRAY = "notNullableArray";

  /**
   * 
   */
  private String readOnlyAttribute;

  /**
   * 
   */
  private String readWriteAttribute;

  /**
   * 
   */
  private int writeOnlyAttribute;

  /**
   * 
   */
  private Boolean nullableAttribute;

  /**
   * 
   */
  private double notNullableAttribute;

  /**
   * 
   */
  private String readOnlyArray;

  /**
   * 
   */
  private String readWriteArray;

  /**
   * 
   */
  private int writeOnlyArray;

  /**
   * 
   */
  private double nullableArray;

  /**
   * 
   */
  private double notNullableArray;

  /**
   * Default constructor is only intended to be used for deserialization as many frameworks required that. For "normal"
   * object creation builder should be used instead.
   */
  protected OpenAPITestObject( ) {
    // Nothing to do.
  }

  /**
   * Initialize object using the passed builder.
   * 
   * @param pBuilder Builder that should be used to initialize this object. The parameter must not be null.
   */
  protected OpenAPITestObject( Builder pBuilder ) {
    // Read attribute values from builder.
    readOnlyAttribute = pBuilder.readOnlyAttribute;
    readWriteAttribute = pBuilder.readWriteAttribute;
    writeOnlyAttribute = pBuilder.writeOnlyAttribute;
    nullableAttribute = pBuilder.nullableAttribute;
    notNullableAttribute = pBuilder.notNullableAttribute;
    readOnlyArray = pBuilder.readOnlyArray;
    readWriteArray = pBuilder.readWriteArray;
    writeOnlyArray = pBuilder.writeOnlyArray;
    nullableArray = pBuilder.nullableArray;
    notNullableArray = pBuilder.notNullableArray;
  }

  /**
   * Class implements builder to create a new instance of class OpenAPITestObject. As the class has read only attributes
   * or associations instances can not be created directly. Instead this builder class has to be used.
   */
  public static class Builder {
    /**
     * 
     */
    private String readOnlyAttribute;

    /**
     * 
     */
    private String readWriteAttribute;

    /**
     * 
     */
    private int writeOnlyAttribute;

    /**
     * 
     */
    private Boolean nullableAttribute;

    /**
     * 
     */
    private double notNullableAttribute;

    /**
     * 
     */
    private String readOnlyArray;

    /**
     * 
     */
    private String readWriteArray;

    /**
     * 
     */
    private int writeOnlyArray;

    /**
     * 
     */
    private double nullableArray;

    /**
     * 
     */
    private double notNullableArray;

    /**
     * Use {@link #newBuilder()} instead of private constructor to create new builder.
     */
    protected Builder( ) {
    }

    /**
     * Use {@link #newBuilder(OpenAPITestObject)} instead of private constructor to create new builder.
     */
    protected Builder( OpenAPITestObject pObject ) {
      if (pObject != null) {
        // Read attribute values from passed object.
        readOnlyAttribute = pObject.readOnlyAttribute;
        readWriteAttribute = pObject.readWriteAttribute;
        writeOnlyAttribute = pObject.writeOnlyAttribute;
        nullableAttribute = pObject.nullableAttribute;
        notNullableAttribute = pObject.notNullableAttribute;
        readOnlyArray = pObject.readOnlyArray;
        readWriteArray = pObject.readWriteArray;
        writeOnlyArray = pObject.writeOnlyArray;
        nullableArray = pObject.nullableArray;
        notNullableArray = pObject.notNullableArray;
      }
    }

    /**
     * Method returns a new builder.
     * 
     * @return {@link Builder} New builder that can be used to create new ImmutablePOJOParent objects.
     */
    public static Builder newBuilder( ) {
      return new Builder();
    }

    /**
     * Method creates a new builder and initialize it with the data from the passed object.
     * 
     * @param pObject Object that should be used to initialize the builder. The parameter may be null.
     * @return {@link Builder} New builder that can be used to create new OpenAPITestObject objects. The method never
     * returns null.
     */
    public static Builder newBuilder( OpenAPITestObject pObject ) {
      return new Builder(pObject);
    }

    /**
     * Method sets the attribute "readOnlyAttribute".
     * 
     * @param pReadOnlyAttribute Value to which the attribute "readOnlyAttribute" should be set.
     */
    public Builder setReadOnlyAttribute( String pReadOnlyAttribute ) {
      // Assign value to attribute
      readOnlyAttribute = pReadOnlyAttribute;
      return this;
    }

    /**
     * Method sets the attribute "readWriteAttribute".
     * 
     * @param pReadWriteAttribute Value to which the attribute "readWriteAttribute" should be set.
     */
    public Builder setReadWriteAttribute( String pReadWriteAttribute ) {
      // Assign value to attribute
      readWriteAttribute = pReadWriteAttribute;
      return this;
    }

    /**
     * Method sets the attribute "writeOnlyAttribute".
     * 
     * @param pWriteOnlyAttribute Value to which the attribute "writeOnlyAttribute" should be set.
     */
    public Builder setWriteOnlyAttribute( int pWriteOnlyAttribute ) {
      // Assign value to attribute
      writeOnlyAttribute = pWriteOnlyAttribute;
      return this;
    }

    /**
     * Method sets the attribute "nullableAttribute".
     * 
     * @param pNullableAttribute Value to which the attribute "nullableAttribute" should be set.
     */
    public Builder setNullableAttribute( Boolean pNullableAttribute ) {
      // Assign value to attribute
      nullableAttribute = pNullableAttribute;
      return this;
    }

    /**
     * Method sets the attribute "notNullableAttribute".
     * 
     * @param pNotNullableAttribute Value to which the attribute "notNullableAttribute" should be set.
     */
    public Builder setNotNullableAttribute( double pNotNullableAttribute ) {
      // Assign value to attribute
      notNullableAttribute = pNotNullableAttribute;
      return this;
    }

    /**
     * Method sets the attribute "readOnlyArray".
     * 
     * @param pReadOnlyArray Value to which the attribute "readOnlyArray" should be set.
     */
    public Builder setReadOnlyArray( String pReadOnlyArray ) {
      // Assign value to attribute
      readOnlyArray = pReadOnlyArray;
      return this;
    }

    /**
     * Method sets the attribute "readWriteArray".
     * 
     * @param pReadWriteArray Value to which the attribute "readWriteArray" should be set.
     */
    public Builder setReadWriteArray( String pReadWriteArray ) {
      // Assign value to attribute
      readWriteArray = pReadWriteArray;
      return this;
    }

    /**
     * Method sets the attribute "writeOnlyArray".
     * 
     * @param pWriteOnlyArray Value to which the attribute "writeOnlyArray" should be set.
     */
    public Builder setWriteOnlyArray( int pWriteOnlyArray ) {
      // Assign value to attribute
      writeOnlyArray = pWriteOnlyArray;
      return this;
    }

    /**
     * Method sets the attribute "nullableArray".
     * 
     * @param pNullableArray Value to which the attribute "nullableArray" should be set.
     */
    public Builder setNullableArray( double pNullableArray ) {
      // Assign value to attribute
      nullableArray = pNullableArray;
      return this;
    }

    /**
     * Method sets the attribute "notNullableArray".
     * 
     * @param pNotNullableArray Value to which the attribute "notNullableArray" should be set.
     */
    public Builder setNotNullableArray( double pNotNullableArray ) {
      // Assign value to attribute
      notNullableArray = pNotNullableArray;
      return this;
    }

    /**
     * Method creates a new instance of class OpenAPITestObject. The object will be initialized with the values of the
     * builder.
     * 
     * @return OpenAPITestObject Created object. The method never returns null.
     */
    public OpenAPITestObject build( ) {
      return new OpenAPITestObject(this);
    }
  }

  /**
   * Method returns the attribute "readOnlyAttribute".
   * 
   * 
   * @return String Value to which the attribute "readOnlyAttribute" is set.
   */
  public String getReadOnlyAttribute( ) {
    return readOnlyAttribute;
  }

  /**
   * Method sets the attribute "readOnlyAttribute".
   * 
   * 
   * @param pReadOnlyAttribute Value to which the attribute "readOnlyAttribute" should be set.
   */
  public void setReadOnlyAttribute( String pReadOnlyAttribute ) {
    // Assign value to attribute
    readOnlyAttribute = pReadOnlyAttribute;
  }

  /**
   * Method returns the attribute "readWriteAttribute".
   * 
   * 
   * @return String Value to which the attribute "readWriteAttribute" is set.
   */
  public String getReadWriteAttribute( ) {
    return readWriteAttribute;
  }

  /**
   * Method sets the attribute "readWriteAttribute".
   * 
   * 
   * @param pReadWriteAttribute Value to which the attribute "readWriteAttribute" should be set.
   */
  public void setReadWriteAttribute( String pReadWriteAttribute ) {
    // Assign value to attribute
    readWriteAttribute = pReadWriteAttribute;
  }

  /**
   * Method returns the attribute "writeOnlyAttribute".
   * 
   * 
   * @return int Value to which the attribute "writeOnlyAttribute" is set.
   */
  public int getWriteOnlyAttribute( ) {
    return writeOnlyAttribute;
  }

  /**
   * Method sets the attribute "writeOnlyAttribute".
   * 
   * 
   * @param pWriteOnlyAttribute Value to which the attribute "writeOnlyAttribute" should be set.
   */
  public void setWriteOnlyAttribute( int pWriteOnlyAttribute ) {
    // Assign value to attribute
    writeOnlyAttribute = pWriteOnlyAttribute;
  }

  /**
   * Method returns the attribute "nullableAttribute".
   * 
   * 
   * @return Boolean Value to which the attribute "nullableAttribute" is set.
   */
  public Boolean getNullableAttribute( ) {
    return nullableAttribute;
  }

  /**
   * Method sets the attribute "nullableAttribute".
   * 
   * 
   * @param pNullableAttribute Value to which the attribute "nullableAttribute" should be set.
   */
  public void setNullableAttribute( Boolean pNullableAttribute ) {
    // Assign value to attribute
    nullableAttribute = pNullableAttribute;
  }

  /**
   * Method returns the attribute "notNullableAttribute".
   * 
   * 
   * @return double Value to which the attribute "notNullableAttribute" is set.
   */
  public double getNotNullableAttribute( ) {
    return notNullableAttribute;
  }

  /**
   * Method sets the attribute "notNullableAttribute".
   * 
   * 
   * @param pNotNullableAttribute Value to which the attribute "notNullableAttribute" should be set.
   */
  public void setNotNullableAttribute( double pNotNullableAttribute ) {
    // Assign value to attribute
    notNullableAttribute = pNotNullableAttribute;
  }

  /**
   * Method returns the attribute "readOnlyArray".
   * 
   * 
   * @return String Value to which the attribute "readOnlyArray" is set.
   */
  public String getReadOnlyArray( ) {
    return readOnlyArray;
  }

  /**
   * Method sets the attribute "readOnlyArray".
   * 
   * 
   * @param pReadOnlyArray Value to which the attribute "readOnlyArray" should be set.
   */
  public void setReadOnlyArray( String pReadOnlyArray ) {
    // Assign value to attribute
    readOnlyArray = pReadOnlyArray;
  }

  /**
   * Method returns the attribute "readWriteArray".
   * 
   * 
   * @return String Value to which the attribute "readWriteArray" is set.
   */
  public String getReadWriteArray( ) {
    return readWriteArray;
  }

  /**
   * Method sets the attribute "readWriteArray".
   * 
   * 
   * @param pReadWriteArray Value to which the attribute "readWriteArray" should be set.
   */
  public void setReadWriteArray( String pReadWriteArray ) {
    // Assign value to attribute
    readWriteArray = pReadWriteArray;
  }

  /**
   * Method returns the attribute "writeOnlyArray".
   * 
   * 
   * @return int Value to which the attribute "writeOnlyArray" is set.
   */
  public int getWriteOnlyArray( ) {
    return writeOnlyArray;
  }

  /**
   * Method sets the attribute "writeOnlyArray".
   * 
   * 
   * @param pWriteOnlyArray Value to which the attribute "writeOnlyArray" should be set.
   */
  public void setWriteOnlyArray( int pWriteOnlyArray ) {
    // Assign value to attribute
    writeOnlyArray = pWriteOnlyArray;
  }

  /**
   * Method returns the attribute "nullableArray".
   * 
   * 
   * @return double Value to which the attribute "nullableArray" is set.
   */
  public double getNullableArray( ) {
    return nullableArray;
  }

  /**
   * Method sets the attribute "nullableArray".
   * 
   * 
   * @param pNullableArray Value to which the attribute "nullableArray" should be set.
   */
  public void setNullableArray( double pNullableArray ) {
    // Assign value to attribute
    nullableArray = pNullableArray;
  }

  /**
   * Method returns the attribute "notNullableArray".
   * 
   * 
   * @return double Value to which the attribute "notNullableArray" is set.
   */
  public double getNotNullableArray( ) {
    return notNullableArray;
  }

  /**
   * Method sets the attribute "notNullableArray".
   * 
   * 
   * @param pNotNullableArray Value to which the attribute "notNullableArray" should be set.
   */
  public void setNotNullableArray( double pNotNullableArray ) {
    // Assign value to attribute
    notNullableArray = pNotNullableArray;
  }

  /**
   * Method returns a StringBuilder that can be used to create a String representation of this object. the returned
   * StringBuilder also takes care about attributes of super classes.
   *
   * @return {@link StringBuilder} StringBuilder representing this object. The method never returns null.
   */
  protected StringBuilder toStringBuilder( ) {
    StringBuilder lBuilder = new StringBuilder();
    lBuilder.append(this.getClass().getName());
    lBuilder.append('\n');
    lBuilder.append("Attributes:");
    lBuilder.append('\n');
    lBuilder.append("readOnlyAttribute: ");
    lBuilder.append(readOnlyAttribute);
    lBuilder.append('\n');
    lBuilder.append("readWriteAttribute: ");
    lBuilder.append(readWriteAttribute);
    lBuilder.append('\n');
    lBuilder.append("writeOnlyAttribute: ");
    lBuilder.append(writeOnlyAttribute);
    lBuilder.append('\n');
    lBuilder.append("nullableAttribute: ");
    lBuilder.append(nullableAttribute);
    lBuilder.append('\n');
    lBuilder.append("notNullableAttribute: ");
    lBuilder.append(notNullableAttribute);
    lBuilder.append('\n');
    lBuilder.append("readOnlyArray: ");
    lBuilder.append(readOnlyArray);
    lBuilder.append('\n');
    lBuilder.append("readWriteArray: ");
    lBuilder.append(readWriteArray);
    lBuilder.append('\n');
    lBuilder.append("writeOnlyArray: ");
    lBuilder.append(writeOnlyArray);
    lBuilder.append('\n');
    lBuilder.append("nullableArray: ");
    lBuilder.append(nullableArray);
    lBuilder.append('\n');
    lBuilder.append("notNullableArray: ");
    lBuilder.append(notNullableArray);
    lBuilder.append('\n');
    return lBuilder;
  }

  /**
   * Method creates a new String with the values of all attributes of this class. All references to other objects will
   * be ignored.
   * 
   * @return {@link String} String representation of this object. The method never returns null.
   */
  @Override
  public String toString( ) {
    return this.toStringBuilder().toString();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy