Class ProductBase
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.ProductBase
-
- 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:
Product
@Valid public abstract class ProductBase extends java.lang.Object implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>Data type represents a product definition- Version:
- JEAF Release 1.6.x
- Author:
- JEAF Generator
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProductBase.BuilderBaseClass implements builder to create a new instance of class Product.
-
Constructor Summary
Constructors Modifier Constructor Description protectedProductBase()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedProductBase(ProductBase.BuilderBase pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddToProductCodes(ProductCode pProductCodes)Method adds the passed object toproductCodes.voidaddToProductCodes(java.util.Collection<ProductCode> pProductCodes)Method adds all passed objects toproductCodes.voidaddToResellers(Reseller pResellers)Method adds the passed object toresellers.voidaddToResellers(java.util.Collection<Reseller> pResellers)Method adds all passed objects toresellers.voidaddToSortiments(Sortiment pSortiments)Method adds the passed object tosortiments.voidaddToSortiments(java.util.Collection<Sortiment> pSortiments)Method adds all passed objects tosortiments.voidaddToSupportedCurrencies(CurrencyCode pSupportedCurrencies)Method adds the passed object tosupportedCurrencies.voidaddToSupportedCurrencies(java.util.Collection<CurrencyCode> pSupportedCurrencies)Method adds all passed objects tosupportedCurrencies.voidclearProductCodes()Method removes all objects fromproductCodes.voidclearResellers()Method removes all objects fromresellers.voidclearSortiments()Method removes all objects fromsortiments.voidclearSupportedCurrencies()Method removes all objects fromsupportedCurrencies.java.lang.StringgetDescription()Deprecated.com.anaptecs.jeaf.core.api.ServiceObjectIDgetID()Method returns the id of this object.byte[]getImage()Method returns attributeimage.
Image describing the product.java.net.URLgetLink()Method returns attributelink.java.lang.StringgetName()Method returns attributename.java.util.Set<ProductCode>getProductCodes()Method returns associationproductCodes.java.util.UUIDgetProductID()Method returns attributeproductID.java.util.Set<Reseller>getResellers()Method returns associationresellers.java.util.Set<Sortiment>getSortiments()Method returns associationsortiments.java.util.Set<CurrencyCode>getSupportedCurrencies()Method returns associationsupportedCurrencies.abstract java.util.Set<Channel>getTheChannels()Method returns association#theChannels.com.anaptecs.jeaf.core.api.ServiceObjectIDgetUnversionedID()Method returns the unversioned object id of this object.java.lang.StringgetUri()Method returns attributeuri.voidremoveFromProductCodes(ProductCode pProductCodes)Method removes the passed object fromproductCodes.voidremoveFromResellers(Reseller pResellers)Method removes the passed object fromresellers.voidremoveFromSortiments(Sortiment pSortiments)Method removes the passed object fromsortiments.voidremoveFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)Method removes the passed object fromsupportedCurrencies.voidsetDescription(java.lang.String pDescription)Deprecated.voidsetImage(byte[] pImage)Method sets attributeimage.
Image describing the product.voidsetLink(java.net.URL pLink)Method sets attributelink.voidsetName(java.lang.String pName)Method sets attributename.voidsetUri(java.lang.String pUri)Method sets attributeuri.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
-
ProductBase
protected ProductBase()
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.
-
ProductBase
protected ProductBase(ProductBase.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.
-
getResellers
public java.util.Set<Reseller> getResellers()
Method returns associationresellers.- Returns:
SetValue to whichresellersis set. The method never returns null and the returned collection is modifiable.
-
addToResellers
public void addToResellers(Reseller pResellers)
Method adds the passed object toresellers.- Parameters:
pResellers- Object that should be added toresellers. The parameter must not be null.
-
addToResellers
public void addToResellers(java.util.Collection<Reseller> pResellers)
Method adds all passed objects toresellers.- Parameters:
pResellers- Collection with all objects that should be added toresellers. The parameter must not be null.
-
removeFromResellers
public void removeFromResellers(Reseller pResellers)
Method removes the passed object fromresellers.- Parameters:
pResellers- Object that should be removed fromresellers. The parameter must not be null.
-
clearResellers
public void clearResellers()
Method removes all objects fromresellers.
-
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.
-
getImage
public byte[] getImage()
Method returns attributeimage.
Image describing the product.- Returns:
- byte Value to which
imageis set.
-
setImage
public void setImage(byte[] pImage)
Method sets attributeimage.
Image describing the product.- Parameters:
pImage- Value to whichimageshould be set.
-
getLink
public java.net.URL getLink()
Method returns attributelink.- Returns:
URLValue to whichlinkis set.
-
setLink
public void setLink(java.net.URL pLink)
Method sets attributelink.- Parameters:
pLink- Value to whichlinkshould be set.
-
getProductID
public java.util.UUID getProductID()
Method returns attributeproductID.- Returns:
UUIDValue to whichproductIDis set.
-
getSupportedCurrencies
public java.util.Set<CurrencyCode> getSupportedCurrencies()
Method returns associationsupportedCurrencies.- Returns:
SetValue to whichsupportedCurrenciesis set. The method never returns null and the returned collection is modifiable.
-
addToSupportedCurrencies
public void addToSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method adds the passed object tosupportedCurrencies.- Parameters:
pSupportedCurrencies- Object that should be added tosupportedCurrencies. The parameter must not be null.
-
addToSupportedCurrencies
public void addToSupportedCurrencies(java.util.Collection<CurrencyCode> pSupportedCurrencies)
Method adds all passed objects tosupportedCurrencies.- Parameters:
pSupportedCurrencies- Collection with all objects that should be added tosupportedCurrencies. The parameter must not be null.
-
removeFromSupportedCurrencies
public void removeFromSupportedCurrencies(CurrencyCode pSupportedCurrencies)
Method removes the passed object fromsupportedCurrencies.- Parameters:
pSupportedCurrencies- Object that should be removed fromsupportedCurrencies. The parameter must not be null.
-
clearSupportedCurrencies
public void clearSupportedCurrencies()
Method removes all objects fromsupportedCurrencies.
-
getProductCodes
public java.util.Set<ProductCode> getProductCodes()
Method returns associationproductCodes.- Returns:
SetValue to whichproductCodesis set. The method never returns null and the returned collection is modifiable.
-
addToProductCodes
public void addToProductCodes(ProductCode pProductCodes)
Method adds the passed object toproductCodes.- Parameters:
pProductCodes- Object that should be added toproductCodes. The parameter must not be null.
-
addToProductCodes
public void addToProductCodes(java.util.Collection<ProductCode> pProductCodes)
Method adds all passed objects toproductCodes.- Parameters:
pProductCodes- Collection with all objects that should be added toproductCodes. The parameter must not be null.
-
removeFromProductCodes
public void removeFromProductCodes(ProductCode pProductCodes)
Method removes the passed object fromproductCodes.- Parameters:
pProductCodes- Object that should be removed fromproductCodes. The parameter must not be null.
-
clearProductCodes
public void clearProductCodes()
Method removes all objects fromproductCodes.
-
getDescription
@Deprecated public java.lang.String getDescription()
Deprecated.Method returns attributedescription.- Returns:
StringValue to whichdescriptionis set.
-
setDescription
@Deprecated public void setDescription(java.lang.String pDescription)
Deprecated.Method sets attributedescription.- Parameters:
pDescription- Value to whichdescriptionshould be set.
-
getSortiments
public java.util.Set<Sortiment> getSortiments()
Method returns associationsortiments.- Returns:
SetValue to whichsortimentsis set. The method never returns null and the returned collection is modifiable.
-
addToSortiments
public void addToSortiments(Sortiment pSortiments)
Method adds the passed object tosortiments.- Parameters:
pSortiments- Object that should be added tosortiments. The parameter must not be null.
-
addToSortiments
public void addToSortiments(java.util.Collection<Sortiment> pSortiments)
Method adds all passed objects tosortiments.- Parameters:
pSortiments- Collection with all objects that should be added tosortiments. The parameter must not be null.
-
removeFromSortiments
public void removeFromSortiments(Sortiment pSortiments)
Method removes the passed object fromsortiments.- Parameters:
pSortiments- Object that should be removed fromsortiments. The parameter must not be null.
-
clearSortiments
public void clearSortiments()
Method removes all objects fromsortiments.
-
getUri
public java.lang.String getUri()
Method returns attributeuri.- Returns:
StringValue to whichuriis set.
-
setUri
public void setUri(java.lang.String pUri)
Method sets attributeuri.- Parameters:
pUri- Value to whichurishould be set.
-
getTheChannels
public abstract java.util.Set<Channel> getTheChannels()
Method returns association#theChannels.- Returns:
SetValue to which#theChannelsis set. The method never returns null and the returned collection is modifiable.
-
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.
-
-