Class ResellerBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ResellerBase
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>,java.io.Serializable
- Direct Known Subclasses:
Reseller
@Valid public abstract class ResellerBase extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResellerBase.BuilderBaseClass implements builder to create a new instance of class Reseller.
-
Constructor Summary
Constructors Modifier Constructor Description protectedResellerBase()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedResellerBase(ResellerBase.BuilderBase pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddToChannels(Channel pChannels)Method adds the passed object tochannels.voidaddToChannels(java.util.Collection<Channel> pChannels)Method adds all passed objects tochannels.voidaddToProducts(Product pProducts)Method adds the passed object toproducts.voidaddToProducts(java.util.Collection<Product> pProducts)Method adds all passed objects toproducts.voidclearChannels()Method removes all objects fromchannels.voidclearProducts()Method removes all objects fromproducts.abstract java.lang.IntegerdoSomething()java.util.List<Channel>getChannels()Method returns associationchannels.com.anaptecs.jeaf.core.api.ServiceObjectIDgetID()Method returns the id of this object.java.util.LocalegetLanguage()Method returns attributelanguage.java.lang.StringgetName()Method returns attributename.java.util.Set<Product>getProducts()Method returns associationproducts.com.anaptecs.jeaf.core.api.ServiceObjectIDgetUnversionedID()Method returns the unversioned object id of this object.voidremoveFromChannels(Channel pChannels)Method removes the passed object fromchannels.voidremoveFromProducts(Product pProducts)Method removes the passed object fromproducts.abstract doublereturnPrimitive()voidsetLanguage(java.util.Locale pLanguage)Method sets attributelanguage.voidsetName(java.lang.String pName)Method sets attributename.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
-
ResellerBase
protected ResellerBase()
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.
-
ResellerBase
protected ResellerBase(ResellerBase.BuilderBase 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
-
getID
public final com.anaptecs.jeaf.core.api.ServiceObjectID getID()
Method returns the id of this object.- Specified by:
getIDin interfacecom.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>- Returns:
ServiceObjectIDID of this object. Since an object must not have an id the method may also return null.
-
getUnversionedID
public final com.anaptecs.jeaf.core.api.ServiceObjectID getUnversionedID()
Method returns the unversioned object id of this object.- Specified by:
getUnversionedIDin interfacecom.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>- Returns:
ServiceObjectIDID of this object. Since an object must not have an id the method may also return null.
-
getChannels
public java.util.List<Channel> getChannels()
Method returns associationchannels.- Returns:
ListValue to whichchannelsis set. The method never returns null and the returned collection is modifiable.
-
addToChannels
public void addToChannels(Channel pChannels)
Method adds the passed object tochannels.- Parameters:
pChannels- Object that should be added tochannels. The parameter must not be null.
-
addToChannels
public void addToChannels(java.util.Collection<Channel> pChannels)
Method adds all passed objects tochannels.- Parameters:
pChannels- Collection with all objects that should be added tochannels. The parameter must not be null.
-
removeFromChannels
public void removeFromChannels(Channel pChannels)
Method removes the passed object fromchannels.- Parameters:
pChannels- Object that should be removed fromchannels. The parameter must not be null.
-
clearChannels
public void clearChannels()
Method removes all objects fromchannels.
-
getProducts
public java.util.Set<Product> getProducts()
Method returns associationproducts.- Returns:
SetValue to whichproductsis set. The method never returns null and the returned collection is modifiable.
-
addToProducts
public void addToProducts(Product pProducts)
Method adds the passed object toproducts.- Parameters:
pProducts- Object that should be added toproducts. The parameter must not be null.
-
addToProducts
public void addToProducts(java.util.Collection<Product> pProducts)
Method adds all passed objects toproducts.- Parameters:
pProducts- Collection with all objects that should be added toproducts. The parameter must not be null.
-
removeFromProducts
public void removeFromProducts(Product pProducts)
Method removes the passed object fromproducts.- Parameters:
pProducts- Object that should be removed fromproducts. The parameter must not be null.
-
clearProducts
public void clearProducts()
Method removes all objects fromproducts.
-
getName
public java.lang.String getName()
Method returns attributename.- Returns:
StringValue to whichnameis set.
-
setName
public void setName(java.lang.String pName)
Method sets attributename.- Parameters:
pName- Value to whichnameshould be set.
-
getLanguage
public java.util.Locale getLanguage()
Method returns attributelanguage.- Returns:
LocaleValue to whichlanguageis set.
-
setLanguage
public void setLanguage(java.util.Locale pLanguage)
Method sets attributelanguage.- Parameters:
pLanguage- Value to whichlanguageshould be set.
-
doSomething
public abstract java.lang.Integer doSomething()
- Returns:
Integer
-
returnPrimitive
public abstract double returnPrimitive()
- Returns:
- double
-
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.
-
-