Package com.verisign.epp.codec.org
Class EPPOrgRole
java.lang.Object
com.verisign.epp.codec.org.EPPOrgRole
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPOrgRole contains the role type and optional role id of the
organization.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPOrgRole.EPPOrgRole(String aType) Constructor forEPPOrgRolethat takes the role type.EPPOrgRole(String aRole, EPPOrgRoleStatus aStatus, String aRoleId) Constructor forEPPOrgRolethat takes the role, a single status, and a role identifier.EPPOrgRole(String aRole, List<EPPOrgRoleStatus> aStatuses) Constructor forEPPOrgRolethat takes the role with a list of statuses.EPPOrgRole(String aRole, List<EPPOrgRoleStatus> aStatuses, String aRoleId) Constructor forEPPOrgRolethat takes the role, a list of statuses, and a role identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStatus(EPPOrgRoleStatus aStatus) Add a role status to list of role statuses.clone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPOrgExtwith this instance.Gets the OPTIONAL organization role identifier such as IANA ID for registrars..Returns the XML namespace associated with theEPPCodecComponent.Gets the role statuses of the role.getType()Gets the organization role type.booleanIs the organization role identifier defined?booleanIs there at least one status?voidSets the OPTIONAL organization role identifier such as IANA ID for registrars..voidsetStatuses(List<EPPOrgRoleStatus> aStatuses) Sets the role statuses of the role.voidSets the organization role type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgRole.- See Also:
-
ELM_NAME
XML root tag forEPPOrgRole.- See Also:
-
-
Constructor Details
-
EPPOrgRole
public EPPOrgRole()Default constructor forEPPOrgRole. -
EPPOrgRole
Constructor forEPPOrgRolethat takes the role type.- Parameters:
aType- Organization role type
-
EPPOrgRole
Constructor forEPPOrgRolethat takes the role with a list of statuses.- Parameters:
aRole- Organization roleaStatuses- Organization role statuses
-
EPPOrgRole
Constructor forEPPOrgRolethat takes the role, a single status, and a role identifier.- Parameters:
aRole- Organization roleaStatus- Single organization role statusesaRoleId- Role identifier
-
EPPOrgRole
Constructor forEPPOrgRolethat takes the role, a list of statuses, and a role identifier.- Parameters:
aRole- Organization roleaStatuses- Organization role statusesaRoleId- Role identifier
-
-
Method Details
-
getType
Gets the organization role type.- Returns:
- The organization role type if defined;
nullotherwise.
-
setType
Sets the organization role type.- Parameters:
aType- The organization role type
-
hasStatus
public boolean hasStatus()Is there at least one status?- Returns:
trueif there at least one status;falseotherwise.
-
getStatuses
Gets the role statuses of the role.- Returns:
- List of role statuses of the role.
-
setStatuses
Sets the role statuses of the role.- Parameters:
aStatuses- Role statuses
-
addStatus
Add a role status to list of role statuses.- Parameters:
aStatus- Role status to add.
-
hasRoleId
public boolean hasRoleId()Is the organization role identifier defined?- Returns:
trueif the organization role identifier is defined;falseotherwise.
-
gerRoleId
Gets the OPTIONAL organization role identifier such as IANA ID for registrars..- Returns:
- The organization role identifier if defined;
nullotherwise.
-
setRoleId
Sets the OPTIONAL organization role identifier such as IANA ID for registrars..- Parameters:
aRoleId- The organization identifier
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPOrgRole
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPOrgExt - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPOrgExtwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-