public class EPPOrgExtId extends java.lang.Object implements EPPCodecComponent
EPPOrgExtId is used to define an organization identifier with a
required role. The organization identifier can be empty in the case of a
delete.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPOrgExtId. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPOrgExtId. |
| Constructor and Description |
|---|
EPPOrgExtId()
Default constructor for
EPPOrgExtId. |
EPPOrgExtId(java.lang.String aRole)
Constructor for
EPPOrgExtId that takes the role. |
EPPOrgExtId(java.lang.String aRole,
java.lang.String aOrgId)
Constructor for
EPPOrgExtId that takes the role and the
organization identifier value. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
clone an
EPPCodecComponent. |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPOrgExt with this instance. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.lang.String |
getOrgId()
Gets the organization identifier.
|
java.lang.String |
getRole()
Gets the organization role.
|
boolean |
hasOrgId()
Is the organization identifier defined?
|
void |
setOrgId(java.lang.String aOrgId)
Sets the organization identifier.
|
void |
setRole(java.lang.String aRole)
Sets the organization role.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String ELM_LOCALNAME
EPPOrgExtId.public static final java.lang.String ELM_NAME
EPPOrgExtId.public EPPOrgExtId()
EPPOrgExtId.public EPPOrgExtId(java.lang.String aRole)
EPPOrgExtId that takes the role.aRole - Organization rolepublic EPPOrgExtId(java.lang.String aRole,
java.lang.String aOrgId)
EPPOrgExtId that takes the role and the
organization identifier value.aRole - Organization roleaOrgId - Organization identifierpublic boolean hasOrgId()
true if the organization identifier is defined;
false otherwise.public java.lang.String getOrgId()
null
otherwise.public void setOrgId(java.lang.String aOrgId)
aOrgId - The organization identifierpublic java.lang.String getRole()
null otherwise.public void setRole(java.lang.String aRole)
aRole - The organization rolepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factoryEPPEncodeException - Error encoding EPPOrgExtIdpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
aElement argument represents the root DOM element and is used
to traverse the DOM nodes for instance attribute values.decode in interface EPPCodecComponentaElement - Element to decodeEPPDecodeException - Error decoding Elementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPOrgExtjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPOrgExt with this instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.