public class EPPOrgContact extends java.lang.Object implements EPPCodecComponent
EPPOrgContact.Type enumeration.| Modifier and Type | Class and Description |
|---|---|
static class |
EPPOrgContact.Type
Contact type enumeration.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPOrgContact. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPOrgContact. |
| Constructor and Description |
|---|
EPPOrgContact()
Default constructor for
EPPOrgContact. |
EPPOrgContact(java.lang.String aContactId,
EPPOrgContact.Type aType)
EPPOrgContact that takes all attributes as arguments
(contactId and type). |
EPPOrgContact(java.lang.String aContactId,
EPPOrgContact.Type aType,
java.lang.String aTypeName)
EPPOrgContact that takes all attributes as arguments
(contactId and type). |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPOrgContact. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPOrgContact attributes from the aElement DOM
Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPOrgContact instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPOrgContact compare. |
java.lang.String |
getContactId()
Gets the contact identifier of the contact.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPOrgContact.Type |
getType()
Gets the contact type using the
EPPOrgContact.Type enumeration. |
java.lang.String |
getTypeName()
Gets the optional type name for the
CUSTOM type. |
boolean |
hasTypeName()
Is the type name defined?
|
void |
setContactId(java.lang.String aContactId)
Sets the contact identifier of the contact.
|
void |
setType(EPPOrgContact.Type aType)
Sets the contact type using the
EPPOrgContact.Type enumeration. |
void |
setTypeName(java.lang.String aTypeName)
Gets the optional type name for the
CUSTOM type. |
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
EPPOrgContact.public static final java.lang.String ELM_NAME
EPPOrgContact.public EPPOrgContact()
EPPOrgContact.public EPPOrgContact(java.lang.String aContactId,
EPPOrgContact.Type aType)
EPPOrgContact that takes all attributes as arguments
(contactId and type).aContactId - Contact IdentifieraType - Contact Type using EPPOrgContact.Type enumeration.public EPPOrgContact(java.lang.String aContactId,
EPPOrgContact.Type aType,
java.lang.String aTypeName)
EPPOrgContact that takes all attributes as arguments
(contactId and type).aContactId - Contact IdentifieraType - Contact Type using EPPOrgContact.Type enumeration.aTypeName - Name of a "custom" typepublic EPPOrgContact.Type getType()
EPPOrgContact.Type enumeration.null otherwise.public void setType(EPPOrgContact.Type aType)
EPPOrgContact.Type enumeration.aType - Contact typepublic java.lang.String getContactId()
null otherwise.public void setContactId(java.lang.String aContactId)
aContactId - Contact identifier of the contactpublic boolean hasTypeName()
true if the type name is defined;
false otherwise.public java.lang.String getTypeName()
CUSTOM type.public void setTypeName(java.lang.String aTypeName)
CUSTOM type.aTypeName - the parentId to setpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPOrgContact instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPOrgContact instance.EPPEncodeException - Unable to encode EPPOrgContact instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPOrgContact attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPOrgContact from.EPPDecodeException - Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPOrgContact compare.equals in class java.lang.ObjectaObject - EPPOrgContact instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPOrgContact.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPOrgContactjava.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 java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.