@CodingStyleguideUnaware public class Duty extends Object implements Serializable, com.helger.commons.lang.IExplicitlyCloneable
Java class for Duty complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Duty">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.w3.org/ns/odrl/2/}action" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/odrl/2/}asset" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/odrl/2/}constraint" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/odrl/2/}party" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attGroup ref="{http://www.w3.org/ns/odrl/2/}idAttributes"/>
<attribute name="uid" type="{http://www.w3.org/ns/odrl/2/}URIQnameQcode" />
<anyAttribute processContents='lax' namespace='##other'/>
</restriction>
</complexContent>
</complexType>
This class was annotated by ph-jaxb22-plugin -Xph-annotate
This class contains methods created by ph-jaxb22-plugin -Xph-equalshashcode
This class contains methods created by ph-jaxb22-plugin -Xph-tostring
This class contains methods created by ph-jaxb22-plugin -Xph-list-extension
This class contains methods created by ph-jaxb22-plugin -Xph-cloneable2
This class contains methods created by ph-jaxb22-plugin -Xph-value-extender
| Constructor and Description |
|---|
Duty()
Default constructor
Note: automatically created by ph-jaxb22-plugin -Xph-value-extender |
| Modifier and Type | Method and Description |
|---|---|
void |
addAny(Object elem)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
addAsset(Asset elem)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
addConstraint(Constraint elem)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
addParty(Party elem)
Created by ph-jaxb22-plugin -Xph-list-extension
|
Duty |
clone()
Created by ph-jaxb22-plugin -Xph-cloneable2
|
void |
cloneTo(Duty ret)
This method clones all values from
this to the passed object. |
boolean |
equals(Object o)
Created by ph-jaxb22-plugin -Xph-equalshashcode
|
Action |
getAction()
Gets the value of the action property.
|
List<Object> |
getAny()
Gets the value of the any property.
|
Object |
getAnyAtIndex(int index)
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
getAnyCount()
Created by ph-jaxb22-plugin -Xph-list-extension
|
List<Asset> |
getAsset()
Gets the value of the asset property.
|
Asset |
getAssetAtIndex(int index)
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
getAssetCount()
Created by ph-jaxb22-plugin -Xph-list-extension
|
List<Constraint> |
getConstraint()
Gets the value of the constraint property.
|
Constraint |
getConstraintAtIndex(int index)
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
getConstraintCount()
Created by ph-jaxb22-plugin -Xph-list-extension
|
String |
getId()
Gets the value of the id property.
|
Object |
getIdref()
Gets the value of the idref property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
List<Party> |
getParty()
Gets the value of the party property.
|
Party |
getPartyAtIndex(int index)
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
getPartyCount()
Created by ph-jaxb22-plugin -Xph-list-extension
|
String |
getUid()
Gets the value of the uid property.
|
boolean |
hasAnyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasAssetEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasConstraintEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
hashCode()
Created by ph-jaxb22-plugin -Xph-equalshashcode
|
boolean |
hasNoAnyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasNoAssetEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasNoConstraintEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasNoPartyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasPartyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setAction(Action value)
Sets the value of the action property.
|
void |
setAny(List<Object> aList)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setAsset(List<Asset> aList)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setConstraint(List<Constraint> aList)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setId(String value)
Sets the value of the id property.
|
void |
setIdref(Object value)
Sets the value of the idref property.
|
void |
setParty(List<Party> aList)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setUid(String value)
Sets the value of the uid property.
|
String |
toString()
Created by ph-jaxb22-plugin -Xph-tostring
|
public Duty()
@Nullable public Action getAction()
Actionpublic void setAction(@Nullable Action value)
value - allowed object is
Action@Nonnull @ReturnsMutableObject(value="JAXB implementation style") public List<Asset> getAsset()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the asset property.
For example, to add a new item, do as follows:
getAsset().add(newItem);
Objects of the following type(s) are allowed in the list
Asset
@Nonnull @ReturnsMutableObject(value="JAXB implementation style") public List<Constraint> getConstraint()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the constraint property.
For example, to add a new item, do as follows:
getConstraint().add(newItem);
Objects of the following type(s) are allowed in the list
Constraint
@Nonnull @ReturnsMutableObject(value="JAXB implementation style") public List<Party> getParty()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the party property.
For example, to add a new item, do as follows:
getParty().add(newItem);
Objects of the following type(s) are allowed in the list
Party
@Nonnull @ReturnsMutableObject(value="JAXB implementation style") public List<Object> getAny()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the any property.
For example, to add a new item, do as follows:
getAny().add(newItem);
Objects of the following type(s) are allowed in the list
Element
Object
@Nullable public String getUid()
Stringpublic void setUid(@Nullable String value)
value - allowed object is
String@Nullable public String getId()
Stringpublic void setId(@Nullable String value)
value - allowed object is
String@Nullable public Object getIdref()
Objectpublic void setIdref(@Nullable Object value)
value - allowed object is
Object@Nullable public Map<QName,String> getOtherAttributes()
the map is keyed by the name of the attribute and the value is the string value of the attribute. the map returned by this method is live, and you can add new attribute by updating the map directly. Because of this design, there's no setter.
public boolean equals(Object o)
public int hashCode()
public String toString()
public void setAsset(@Nullable List<Asset> aList)
aList - The new list member to set. May be null.public void setConstraint(@Nullable List<Constraint> aList)
aList - The new list member to set. May be null.public void setParty(@Nullable List<Party> aList)
aList - The new list member to set. May be null.public void setAny(@Nullable List<Object> aList)
aList - The new list member to set. May be null.public boolean hasAssetEntries()
true if at least one item is contained, false otherwise.public boolean hasNoAssetEntries()
true if no item is contained, false otherwise.@Nonnegative public int getAssetCount()
@Nullable public Asset getAssetAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
index - The index to retrievenullIndexOutOfBoundsException - if the index is invalid!public void addAsset(@Nonnull Asset elem)
elem - The element to be added. May not be null.public boolean hasConstraintEntries()
true if at least one item is contained, false otherwise.public boolean hasNoConstraintEntries()
true if no item is contained, false otherwise.@Nonnegative public int getConstraintCount()
@Nullable public Constraint getConstraintAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
index - The index to retrievenullIndexOutOfBoundsException - if the index is invalid!public void addConstraint(@Nonnull Constraint elem)
elem - The element to be added. May not be null.public boolean hasPartyEntries()
true if at least one item is contained, false otherwise.public boolean hasNoPartyEntries()
true if no item is contained, false otherwise.@Nonnegative public int getPartyCount()
@Nullable public Party getPartyAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
index - The index to retrievenullIndexOutOfBoundsException - if the index is invalid!public void addParty(@Nonnull Party elem)
elem - The element to be added. May not be null.public boolean hasAnyEntries()
true if at least one item is contained, false otherwise.public boolean hasNoAnyEntries()
true if no item is contained, false otherwise.@Nonnegative public int getAnyCount()
@Nullable public Object getAnyAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
index - The index to retrievenullIndexOutOfBoundsException - if the index is invalid!public void addAny(@Nonnull Object elem)
elem - The element to be added. May not be null.public void cloneTo(@Nonnull Duty ret)
this to the passed object. All data in the parameter object is overwritten!Created by ph-jaxb22-plugin -Xph-cloneable2ret - The target object to clone to. May not be null.Copyright © 2020 toop.eu. All rights reserved.