Class MultiValuedDataType
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.MultiValuedDataType
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class MultiValuedDataType extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMultiValuedDataType.BuilderClass implements builder to create a new instance of classMultiValuedDataType.
-
Constructor Summary
Constructors Modifier Constructor Description protectedMultiValuedDataType()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedMultiValuedDataType(MultiValuedDataType.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToLiterals(BooleanLiteralsEnum pLiterals)Method adds the passed object toliterals.voidaddToLiterals(java.util.Collection<BooleanLiteralsEnum> pLiterals)Method adds all passed objects toliterals.voidaddToLongCodeQueryParam(LongCode pLongCodeQueryParam)Method adds the passed object tolongCodeQueryParam.voidaddToLongCodeQueryParam(java.util.Collection<LongCode> pLongCodeQueryParam)Method adds all passed objects tolongCodeQueryParam.voidaddToStringCodeHeader(StringCode pStringCodeHeader)Method adds the passed object tostringCodeHeader.voidaddToStringCodeHeader(java.util.Collection<StringCode> pStringCodeHeader)Method adds all passed objects tostringCodeHeader.static MultiValuedDataType.Builderbuilder()Method returns a new builder.static MultiValuedDataType.Builderbuilder(MultiValuedDataType pObject)Method creates a new builder and initialize it with the data from the passed object.static MultiValuedDataType.Builderbuilder(java.lang.String pStringProperty, long pLongValues)Method creates a new builder and initializes it with the passed attributes.voidclearLiterals()Method removes all objects fromliterals.voidclearLongCodeQueryParam()Method removes all objects fromlongCodeQueryParam.voidclearStringCodeHeader()Method removes all objects fromstringCodeHeader.java.util.List<BooleanLiteralsEnum>getLiterals()Method returns associationliterals.
so many literals are possiblejava.util.List<LongCode>getLongCodeQueryParam()Method returns associationlongCodeQueryParam.
Multivalued query paramlonggetLongValues()Method returns attributelongValues.
long values as multivalued headerjava.util.List<StringCode>getStringCodeHeader()Method returns associationstringCodeHeader.
This is my multivalued test headerjava.lang.StringgetStringProperty()Method returns attributestringProperty.voidremoveFromLiterals(BooleanLiteralsEnum pLiterals)Method removes the passed object fromliterals.voidremoveFromLongCodeQueryParam(LongCode pLongCodeQueryParam)Method removes the passed object fromlongCodeQueryParam.voidremoveFromStringCodeHeader(StringCode pStringCodeHeader)Method removes the passed object fromstringCodeHeader.voidsetLongValues(long pLongValues)Method sets attributelongValues.
long values as multivalued headervoidsetStringProperty(java.lang.String pStringProperty)Method sets attributestringProperty.java.lang.StringtoString()Method creates a new String with the values of all attributes of this class.java.lang.StringBuildertoStringBuilder(java.lang.String pIndent)Method returns a StringBuilder that can be used to create a String representation of this object.
-
-
-
Constructor Detail
-
MultiValuedDataType
protected MultiValuedDataType()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
-
MultiValuedDataType
protected MultiValuedDataType(MultiValuedDataType.Builder pBuilder)
Initialize object using the passed builder.- Parameters:
pBuilder- Builder that should be used to initialize this object. The parameter must not be null.
-
-
Method Detail
-
builder
public static MultiValuedDataType.Builder builder()
Method returns a new builder.- Returns:
MultiValuedDataType.BuilderNew builder that can be used to create new MultiValuedDataType objects.
-
builder
public static MultiValuedDataType.Builder builder(MultiValuedDataType pObject)
Method creates a new builder and initialize it with the data from the passed object.- Parameters:
pObject- Object that should be used to initialize the builder. The parameter may be null.- Returns:
MultiValuedDataType.BuilderNew builder that can be used to create new MultiValuedDataType objects. The method never returns null.
-
builder
public static MultiValuedDataType.Builder builder(java.lang.String pStringProperty, long pLongValues)
Method creates a new builder and initializes it with the passed attributes.
-
getStringCodeHeader
public java.util.List<StringCode> getStringCodeHeader()
Method returns associationstringCodeHeader.
This is my multivalued test header- Returns:
ListValue to whichstringCodeHeaderis set. The method never returns null and the returned collection is modifiable.
-
addToStringCodeHeader
public void addToStringCodeHeader(StringCode pStringCodeHeader)
Method adds the passed object tostringCodeHeader.- Parameters:
pStringCodeHeader- Object that should be added tostringCodeHeader. The parameter must not be null.
-
addToStringCodeHeader
public void addToStringCodeHeader(java.util.Collection<StringCode> pStringCodeHeader)
Method adds all passed objects tostringCodeHeader.- Parameters:
pStringCodeHeader- Collection with all objects that should be added tostringCodeHeader. The parameter must not be null.
-
removeFromStringCodeHeader
public void removeFromStringCodeHeader(StringCode pStringCodeHeader)
Method removes the passed object fromstringCodeHeader.- Parameters:
pStringCodeHeader- Object that should be removed fromstringCodeHeader. The parameter must not be null.
-
clearStringCodeHeader
public void clearStringCodeHeader()
Method removes all objects fromstringCodeHeader.
-
getLongCodeQueryParam
public java.util.List<LongCode> getLongCodeQueryParam()
Method returns associationlongCodeQueryParam.
Multivalued query param- Returns:
ListValue to whichlongCodeQueryParamis set. The method never returns null and the returned collection is modifiable.
-
addToLongCodeQueryParam
public void addToLongCodeQueryParam(LongCode pLongCodeQueryParam)
Method adds the passed object tolongCodeQueryParam.- Parameters:
pLongCodeQueryParam- Object that should be added tolongCodeQueryParam. The parameter must not be null.
-
addToLongCodeQueryParam
public void addToLongCodeQueryParam(java.util.Collection<LongCode> pLongCodeQueryParam)
Method adds all passed objects tolongCodeQueryParam.- Parameters:
pLongCodeQueryParam- Collection with all objects that should be added tolongCodeQueryParam. The parameter must not be null.
-
removeFromLongCodeQueryParam
public void removeFromLongCodeQueryParam(LongCode pLongCodeQueryParam)
Method removes the passed object fromlongCodeQueryParam.- Parameters:
pLongCodeQueryParam- Object that should be removed fromlongCodeQueryParam. The parameter must not be null.
-
clearLongCodeQueryParam
public void clearLongCodeQueryParam()
Method removes all objects fromlongCodeQueryParam.
-
getLiterals
public java.util.List<BooleanLiteralsEnum> getLiterals()
Method returns associationliterals.
so many literals are possible- Returns:
ListValue to whichliteralsis set. The method never returns null and the returned collection is modifiable.
-
addToLiterals
public void addToLiterals(BooleanLiteralsEnum pLiterals)
Method adds the passed object toliterals.- Parameters:
pLiterals- Object that should be added toliterals. The parameter must not be null.
-
addToLiterals
public void addToLiterals(java.util.Collection<BooleanLiteralsEnum> pLiterals)
Method adds all passed objects toliterals.- Parameters:
pLiterals- Collection with all objects that should be added toliterals. The parameter must not be null.
-
removeFromLiterals
public void removeFromLiterals(BooleanLiteralsEnum pLiterals)
Method removes the passed object fromliterals.- Parameters:
pLiterals- Object that should be removed fromliterals. The parameter must not be null.
-
clearLiterals
public void clearLiterals()
Method removes all objects fromliterals.
-
getStringProperty
public java.lang.String getStringProperty()
Method returns attributestringProperty.- Returns:
StringValue to whichstringPropertyis set.
-
setStringProperty
public void setStringProperty(java.lang.String pStringProperty)
Method sets attributestringProperty.- Parameters:
pStringProperty- Value to whichstringPropertyshould be set.
-
getLongValues
public long getLongValues()
Method returns attributelongValues.
long values as multivalued header- Returns:
- long Value to which
longValuesis set.
-
setLongValues
public void setLongValues(long pLongValues)
Method sets attributelongValues.
long values as multivalued header- Parameters:
pLongValues- Value to whichlongValuesshould be set.
-
toStringBuilder
public java.lang.StringBuilder toStringBuilder(java.lang.String pIndent)
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.- Returns:
StringBuilderStringBuilder representing this object. The method never returns null.
-
toString
public java.lang.String toString()
Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.- Overrides:
toStringin classjava.lang.Object- Returns:
StringString representation of this object. The method never returns null.
-
-