@CodingStyleguideUnaware public class Policy extends Object implements Serializable, com.helger.commons.lang.IExplicitlyCloneable
Java class for Policy complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Policy">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence maxOccurs="unbounded" minOccurs="0">
<element ref="{http://www.w3.org/ns/odrl/2/}permission" maxOccurs="unbounded" minOccurs="0"/>
<element ref="{http://www.w3.org/ns/odrl/2/}prohibition" maxOccurs="unbounded" minOccurs="0"/>
<any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/>
</sequence>
<attribute name="uid" use="required" type="{http://www.w3.org/ns/odrl/2/}URIQnameQcode" />
<attribute name="type" use="required" type="{http://www.w3.org/ns/odrl/2/}URIQnameQcode" />
<attribute name="conflict" type="{http://www.w3.org/ns/odrl/2/}ConflictTerm" />
<attribute name="undefined" type="{http://www.w3.org/ns/odrl/2/}UndefinedTerm" />
<attribute name="inheritAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean" />
<attribute name="inheritFrom" type="{http://www.w3.org/ns/odrl/2/}URIQnameQcode" />
<attribute name="inheritRelation" type="{http://www.w3.org/ns/odrl/2/}URIQnameQcode" />
<attribute name="profile" 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 |
|---|
Policy()
Default constructor
Note: automatically created by ph-jaxb22-plugin -Xph-value-extender |
| Modifier and Type | Method and Description |
|---|---|
void |
addPermissionAndProhibitionAndAny(Object elem)
Created by ph-jaxb22-plugin -Xph-list-extension
|
Policy |
clone()
Created by ph-jaxb22-plugin -Xph-cloneable2
|
void |
cloneTo(Policy ret)
This method clones all values from
this to the passed object. |
boolean |
equals(Object o)
Created by ph-jaxb22-plugin -Xph-equalshashcode
|
ConflictTerm |
getConflict()
Gets the value of the conflict property.
|
String |
getInheritFrom()
Gets the value of the inheritFrom property.
|
String |
getInheritRelation()
Gets the value of the inheritRelation property.
|
Map<QName,String> |
getOtherAttributes()
Gets a map that contains attributes that aren't bound to any typed property on this class.
|
List<Object> |
getPermissionAndProhibitionAndAny()
Gets the value of the permissionAndProhibitionAndAny property.
|
Object |
getPermissionAndProhibitionAndAnyAtIndex(int index)
Created by ph-jaxb22-plugin -Xph-list-extension
|
int |
getPermissionAndProhibitionAndAnyCount()
Created by ph-jaxb22-plugin -Xph-list-extension
|
String |
getProfile()
Gets the value of the profile property.
|
String |
getType()
Gets the value of the type property.
|
String |
getUid()
Gets the value of the uid property.
|
UndefinedTerm |
getUndefined()
Gets the value of the undefined property.
|
int |
hashCode()
Created by ph-jaxb22-plugin -Xph-equalshashcode
|
boolean |
hasNoPermissionAndProhibitionAndAnyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
boolean |
hasPermissionAndProhibitionAndAnyEntries()
Created by ph-jaxb22-plugin -Xph-list-extension
|
Boolean |
isInheritAllowed()
Gets the value of the inheritAllowed property.
|
void |
setConflict(ConflictTerm value)
Sets the value of the conflict property.
|
void |
setInheritAllowed(Boolean value)
Sets the value of the inheritAllowed property.
|
void |
setInheritFrom(String value)
Sets the value of the inheritFrom property.
|
void |
setInheritRelation(String value)
Sets the value of the inheritRelation property.
|
void |
setPermissionAndProhibitionAndAny(List<Object> aList)
Created by ph-jaxb22-plugin -Xph-list-extension
|
void |
setProfile(String value)
Sets the value of the profile property.
|
void |
setType(String value)
Sets the value of the type property.
|
void |
setUid(String value)
Sets the value of the uid property.
|
void |
setUndefined(UndefinedTerm value)
Sets the value of the undefined property.
|
String |
toString()
Created by ph-jaxb22-plugin -Xph-tostring
|
public Policy()
@Nonnull @ReturnsMutableObject(value="JAXB implementation style") public List<Object> getPermissionAndProhibitionAndAny()
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 permissionAndProhibitionAndAny property.
For example, to add a new item, do as follows:
getPermissionAndProhibitionAndAny().add(newItem);
Objects of the following type(s) are allowed in the list
JAXBElement<Permission>
JAXBElement<Prohibition>
Element
Object
@Nullable public String getUid()
Stringpublic void setUid(@Nullable String value)
value - allowed object is
String@Nullable public String getType()
Stringpublic void setType(@Nullable String value)
value - allowed object is
String@Nullable public ConflictTerm getConflict()
ConflictTermpublic void setConflict(@Nullable ConflictTerm value)
value - allowed object is
ConflictTerm@Nullable public UndefinedTerm getUndefined()
UndefinedTermpublic void setUndefined(@Nullable UndefinedTerm value)
value - allowed object is
UndefinedTermpublic Boolean isInheritAllowed()
Booleanpublic void setInheritAllowed(@Nullable Boolean value)
value - allowed object is
Boolean@Nullable public String getInheritFrom()
Stringpublic void setInheritFrom(@Nullable String value)
value - allowed object is
String@Nullable public String getInheritRelation()
Stringpublic void setInheritRelation(@Nullable String value)
value - allowed object is
String@Nullable public String getProfile()
Stringpublic void setProfile(@Nullable String value)
value - allowed object is
String@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 setPermissionAndProhibitionAndAny(@Nullable List<Object> aList)
aList - The new list member to set. May be null.public boolean hasPermissionAndProhibitionAndAnyEntries()
true if at least one item is contained, false otherwise.public boolean hasNoPermissionAndProhibitionAndAnyEntries()
true if no item is contained, false otherwise.@Nonnegative public int getPermissionAndProhibitionAndAnyCount()
@Nullable public Object getPermissionAndProhibitionAndAnyAtIndex(@Nonnegative int index) throws IndexOutOfBoundsException
index - The index to retrievenullIndexOutOfBoundsException - if the index is invalid!public void addPermissionAndProhibitionAndAny(@Nonnull Object elem)
elem - The element to be added. May not be null.public void cloneTo(@Nonnull Policy 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.