Class Campaign
- java.lang.Object
-
- com.anaptecs.jeaf.junit.openapi.base.Campaign
-
- All Implemented Interfaces:
com.anaptecs.jeaf.core.api.ServiceObject,java.io.Serializable
@Valid public class Campaign 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 classCampaign.BuilderClass implements builder to create a new instance of classCampaign.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCampaign()Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.protectedCampaign(Campaign.Builder pBuilder)Initialize object using the passed builder.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddToDiscountOffers(java.lang.String pDiscountOffers)Deprecated.voidaddToDiscountOffers(java.util.Collection<java.lang.String> pDiscountOffers)Deprecated.voidaddToMoreLinks(java.lang.Long pMoreLinks)Deprecated.No good any more (since: 1.2, removed with: 3.0)voidaddToMoreLinks(java.util.Collection<java.lang.Long> pMoreLinks)Deprecated.No good any more (since: 1.2, removed with: 3.0)static Campaign.Builderbuilder()Method returns a new builder.static Campaign.Builderbuilder(Campaign pObject)Method creates a new builder and initialize it with the data from the passed object.voidclearDiscountOffers()Deprecated.voidclearMoreLinks()Deprecated.java.util.List<java.lang.String>getDiscountOffers()Deprecated.java.util.Set<java.lang.Long>getMoreLinks()Deprecated.No good any more (since: 1.2, removed with: 3.0)longgetTheLink()Deprecated.Please use "moreLinks" insteadvoidremoveFromDiscountOffers(java.lang.String pDiscountOffers)Deprecated.voidremoveFromMoreLinks(java.lang.Long pMoreLinks)Deprecated.voidsetTheLink(long pTheLink)Deprecated.Please use "moreLinks" insteadjava.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
-
Campaign
protected Campaign()
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.
-
Campaign
protected Campaign(Campaign.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 Campaign.Builder builder()
Method returns a new builder.- Returns:
Campaign.BuilderNew builder that can be used to create new Campaign objects.
-
builder
public static Campaign.Builder builder(Campaign 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:
Campaign.BuilderNew builder that can be used to create new Campaign objects. The method never returns null.
-
getTheLink
@Deprecated public long getTheLink()
Deprecated.Please use "moreLinks" instead. (since: 2.3.1, removed with: 2.4)Method returns associationtheLink.
This class uses so called soft links for decoupling. The actual type that is hidden bytheLinkiscom.anaptecs.jeaf.junit.openapi.base.LinkObject
The magic link.- Returns:
longValue to whichtheLinkis set.
-
setTheLink
@Deprecated public void setTheLink(long pTheLink)
Deprecated.Please use "moreLinks" instead. (since: 2.3.1, removed with: 2.4)Method sets associationtheLink.
The magic link.- Parameters:
pTheLink- Value to whichtheLinkshould be set.
-
getMoreLinks
@Deprecated public java.util.Set<java.lang.Long> getMoreLinks()
Deprecated.No good any more (since: 1.2, removed with: 3.0)Method returns associationmoreLinks.
This class uses so called soft links for decoupling. The actual type that is hidden bymoreLinksiscom.anaptecs.jeaf.junit.openapi.base.LinkObject- Returns:
SetValue to whichmoreLinksis set. The method never returns null and the returned collection is modifiable.
-
addToMoreLinks
@Deprecated public void addToMoreLinks(java.lang.Long pMoreLinks)
Deprecated.No good any more (since: 1.2, removed with: 3.0)Method adds the passed object tomoreLinks.- Parameters:
pMoreLinks- Object that should be added tomoreLinks. The parameter must not be null.
-
addToMoreLinks
@Deprecated public void addToMoreLinks(java.util.Collection<java.lang.Long> pMoreLinks)
Deprecated.No good any more (since: 1.2, removed with: 3.0)Method adds all passed objects tomoreLinks.- Parameters:
pMoreLinks- Collection with all objects that should be added tomoreLinks. The parameter must not be null.
-
removeFromMoreLinks
@Deprecated public void removeFromMoreLinks(java.lang.Long pMoreLinks)
Deprecated.Method removes the passed object frommoreLinks.- Parameters:
pMoreLinks- Object that should be removed frommoreLinks. The parameter must not be null.
-
clearMoreLinks
@Deprecated public void clearMoreLinks()
Deprecated.Method removes all objects frommoreLinks.
-
getDiscountOffers
@Deprecated public java.util.List<java.lang.String> getDiscountOffers()
Deprecated.Method returns associationdiscountOffers.
This class uses so called soft links for decoupling. The actual type that is hidden bydiscountOffersiscom.anaptecs.jeaf.junit.openapi.base.DiscountOffer- Returns:
ListValue to whichdiscountOffersis set. The method never returns null and the returned collection is modifiable.
-
addToDiscountOffers
@Deprecated public void addToDiscountOffers(java.lang.String pDiscountOffers)
Deprecated.Method adds the passed object todiscountOffers.- Parameters:
pDiscountOffers- Object that should be added todiscountOffers. The parameter must not be null.
-
addToDiscountOffers
@Deprecated public void addToDiscountOffers(java.util.Collection<java.lang.String> pDiscountOffers)
Deprecated.Method adds all passed objects todiscountOffers.- Parameters:
pDiscountOffers- Collection with all objects that should be added todiscountOffers. The parameter must not be null.
-
removeFromDiscountOffers
@Deprecated public void removeFromDiscountOffers(java.lang.String pDiscountOffers)
Deprecated.Method removes the passed object fromdiscountOffers.- Parameters:
pDiscountOffers- Object that should be removed fromdiscountOffers. The parameter must not be null.
-
clearDiscountOffers
@Deprecated public void clearDiscountOffers()
Deprecated.Method removes all objects fromdiscountOffers.
-
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.
-
-