Class CodeTypeUsageTest
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.CodeTypeUsageTest
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class CodeTypeUsageTest 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 classCodeTypeUsageTest.BuilderClass implements builder to create a new instance of classCodeTypeUsageTest.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCodeTypeUsageTest()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedCodeTypeUsageTest(CodeTypeUsageTest.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToBooleanCodeAssociation(BooleanCodeType pBooleanCodeAssociation)Method adds the passed object tobooleanCodeAssociation.voidaddToBooleanCodeAssociation(java.util.Collection<BooleanCodeType> pBooleanCodeAssociation)Method adds all passed objects tobooleanCodeAssociation.voidaddToShortCodeTypeAssociation(ShortCodeType pShortCodeTypeAssociation)Method adds the passed object toshortCodeTypeAssociation.voidaddToShortCodeTypeAssociation(java.util.Collection<ShortCodeType> pShortCodeTypeAssociation)Method adds all passed objects toshortCodeTypeAssociation.static CodeTypeUsageTest.Builderbuilder()Method returns a new builder.static CodeTypeUsageTest.Builderbuilder(BooleanCodeType pBooleanCode, StringCodeType pStringCode, ShortCode pShortCode)Method creates a new builder and initializes it with the passed attributes.static CodeTypeUsageTest.Builderbuilder(CodeTypeUsageTest pObject)Method creates a new builder and initialize it with the data from the passed object.voidclearBooleanCodeAssociation()Method removes all objects frombooleanCodeAssociation.voidclearShortCodeTypeAssociation()Method removes all objects fromshortCodeTypeAssociation.BooleanCodeTypegetBooleanCode()Method returns attributebooleanCode.java.util.Set<BooleanCodeType>getBooleanCodeAssociation()Method returns associationbooleanCodeAssociation.ShortCodegetShortCode()Method returns associationshortCode.java.util.Set<ShortCodeType>getShortCodeTypeAssociation()Method returns associationshortCodeTypeAssociation.StringCodeTypegetStringCode()Method returns attributestringCode.voidremoveFromBooleanCodeAssociation(BooleanCodeType pBooleanCodeAssociation)Method removes the passed object frombooleanCodeAssociation.voidremoveFromShortCodeTypeAssociation(ShortCodeType pShortCodeTypeAssociation)Method removes the passed object fromshortCodeTypeAssociation.voidsetBooleanCode(BooleanCodeType pBooleanCode)Method sets attributebooleanCode.voidsetShortCode(ShortCode pShortCode)Method sets associationshortCode.voidsetStringCode(StringCodeType pStringCode)Method sets attributestringCode.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.voidunsetShortCode()Method unsetsshortCode.
-
-
-
Constructor Detail
-
CodeTypeUsageTest
protected CodeTypeUsageTest()
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.
-
CodeTypeUsageTest
protected CodeTypeUsageTest(CodeTypeUsageTest.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 CodeTypeUsageTest.Builder builder()
Method returns a new builder.- Returns:
CodeTypeUsageTest.BuilderNew builder that can be used to create new CodeTypeUsageTest objects.
-
builder
public static CodeTypeUsageTest.Builder builder(CodeTypeUsageTest 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:
CodeTypeUsageTest.BuilderNew builder that can be used to create new CodeTypeUsageTest objects. The method never returns null.
-
builder
public static CodeTypeUsageTest.Builder builder(BooleanCodeType pBooleanCode, StringCodeType pStringCode, ShortCode pShortCode)
Method creates a new builder and initializes it with the passed attributes.
-
getBooleanCode
public BooleanCodeType getBooleanCode()
Method returns attributebooleanCode.- Returns:
BooleanCodeTypeValue to whichbooleanCodeis set.
-
setBooleanCode
public void setBooleanCode(BooleanCodeType pBooleanCode)
Method sets attributebooleanCode.- Parameters:
pBooleanCode- Value to whichbooleanCodeshould be set.
-
getBooleanCodeAssociation
public java.util.Set<BooleanCodeType> getBooleanCodeAssociation()
Method returns associationbooleanCodeAssociation.- Returns:
SetValue to whichbooleanCodeAssociationis set. The method never returns null and the returned collection is modifiable.
-
addToBooleanCodeAssociation
public void addToBooleanCodeAssociation(BooleanCodeType pBooleanCodeAssociation)
Method adds the passed object tobooleanCodeAssociation.- Parameters:
pBooleanCodeAssociation- Object that should be added tobooleanCodeAssociation. The parameter must not be null.
-
addToBooleanCodeAssociation
public void addToBooleanCodeAssociation(java.util.Collection<BooleanCodeType> pBooleanCodeAssociation)
Method adds all passed objects tobooleanCodeAssociation.- Parameters:
pBooleanCodeAssociation- Collection with all objects that should be added tobooleanCodeAssociation. The parameter must not be null.
-
removeFromBooleanCodeAssociation
public void removeFromBooleanCodeAssociation(BooleanCodeType pBooleanCodeAssociation)
Method removes the passed object frombooleanCodeAssociation.- Parameters:
pBooleanCodeAssociation- Object that should be removed frombooleanCodeAssociation. The parameter must not be null.
-
clearBooleanCodeAssociation
public void clearBooleanCodeAssociation()
Method removes all objects frombooleanCodeAssociation.
-
getShortCodeTypeAssociation
public java.util.Set<ShortCodeType> getShortCodeTypeAssociation()
Method returns associationshortCodeTypeAssociation.- Returns:
SetValue to whichshortCodeTypeAssociationis set. The method never returns null and the returned collection is modifiable.
-
addToShortCodeTypeAssociation
public void addToShortCodeTypeAssociation(ShortCodeType pShortCodeTypeAssociation)
Method adds the passed object toshortCodeTypeAssociation.- Parameters:
pShortCodeTypeAssociation- Object that should be added toshortCodeTypeAssociation. The parameter must not be null.
-
addToShortCodeTypeAssociation
public void addToShortCodeTypeAssociation(java.util.Collection<ShortCodeType> pShortCodeTypeAssociation)
Method adds all passed objects toshortCodeTypeAssociation.- Parameters:
pShortCodeTypeAssociation- Collection with all objects that should be added toshortCodeTypeAssociation. The parameter must not be null.
-
removeFromShortCodeTypeAssociation
public void removeFromShortCodeTypeAssociation(ShortCodeType pShortCodeTypeAssociation)
Method removes the passed object fromshortCodeTypeAssociation.- Parameters:
pShortCodeTypeAssociation- Object that should be removed fromshortCodeTypeAssociation. The parameter must not be null.
-
clearShortCodeTypeAssociation
public void clearShortCodeTypeAssociation()
Method removes all objects fromshortCodeTypeAssociation.
-
getStringCode
public StringCodeType getStringCode()
Method returns attributestringCode.- Returns:
StringCodeTypeValue to whichstringCodeis set.
-
setStringCode
public void setStringCode(StringCodeType pStringCode)
Method sets attributestringCode.- Parameters:
pStringCode- Value to whichstringCodeshould be set.
-
setShortCode
public void setShortCode(ShortCode pShortCode)
Method sets associationshortCode.- Parameters:
pShortCode- Value to whichshortCodeshould be set.
-
unsetShortCode
public final void unsetShortCode()
Method unsetsshortCode.
-
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.
-
-