Package com.verisign.epp.codec.orgext
Class EPPOrgExtId
java.lang.Object
com.verisign.epp.codec.orgext.EPPOrgExtId
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPOrgExtId is used to define an organization identifier with a
required role. The organization identifier can be empty in the case of a
delete.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPOrgExtId.EPPOrgExtId(String aRole) Constructor forEPPOrgExtIdthat takes the role.EPPOrgExtId(String aRole, String aOrgId) Constructor forEPPOrgExtIdthat takes the role and the organization identifier value. -
Method Summary
Modifier and TypeMethodDescriptionclone()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.Returns the XML namespace associated with theEPPCodecComponent.getOrgId()Gets the organization identifier.getRole()Gets the organization role.booleanhasOrgId()Is the organization identifier defined?voidSets the organization identifier.voidSets the organization role.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgExtId.- See Also:
-
ELM_NAME
XML root tag forEPPOrgExtId.- See Also:
-
-
Constructor Details
-
EPPOrgExtId
public EPPOrgExtId()Default constructor forEPPOrgExtId. -
EPPOrgExtId
Constructor forEPPOrgExtIdthat takes the role.- Parameters:
aRole- Organization role
-
EPPOrgExtId
Constructor forEPPOrgExtIdthat takes the role and the organization identifier value.- Parameters:
aRole- Organization roleaOrgId- Organization identifier
-
-
Method Details
-
hasOrgId
public boolean hasOrgId()Is the organization identifier defined?- Returns:
trueif the organization identifier is defined;falseotherwise.
-
getOrgId
Gets the organization identifier.- Returns:
- The organization identifier if defined;
nullotherwise.
-
setOrgId
Sets the organization identifier.- Parameters:
aOrgId- The organization identifier
-
getRole
Gets the organization role.- Returns:
- The organization role if defined;
nullotherwise.
-
setRole
Sets the organization role.- Parameters:
aRole- The organization role
-
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 encodingEPPOrgExtId
-
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.
-