Package com.verisign.epp.codec.org
Class EPPOrgContact
- java.lang.Object
-
- com.verisign.epp.codec.org.EPPOrgContact
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPOrgContact extends java.lang.Object implements EPPCodecComponent
Represents an org contact. The valid contact types are defined by theEPPOrgContact.Typeenumeration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPOrgContact.TypeContact type enumeration.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPOrgContact.static java.lang.StringELM_NAMEXML root tag forEPPOrgContact.
-
Constructor Summary
Constructors Constructor Description EPPOrgContact()Default constructor forEPPOrgContact.EPPOrgContact(java.lang.String aContactId, EPPOrgContact.Type aType)EPPOrgContactthat takes all attributes as arguments (contactId and type).EPPOrgContact(java.lang.String aContactId, EPPOrgContact.Type aType, java.lang.String aTypeName)EPPOrgContactthat takes all attributes as arguments (contactId and type).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPOrgContact.voiddecode(org.w3c.dom.Element aElement)Decode theEPPOrgContactattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPOrgContactinstance.booleanequals(java.lang.Object aObject)implements a deepEPPOrgContactcompare.java.lang.StringgetContactId()Gets the contact identifier of the contact.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPOrgContact.TypegetType()Gets the contact type using theEPPOrgContact.Typeenumeration.java.lang.StringgetTypeName()Gets the optional type name for theCUSTOMtype.booleanhasTypeName()Is the type name defined?voidsetContactId(java.lang.String aContactId)Sets the contact identifier of the contact.voidsetType(EPPOrgContact.Type aType)Sets the contact type using theEPPOrgContact.Typeenumeration.voidsetTypeName(java.lang.String aTypeName)Gets the optional type name for theCUSTOMtype.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPOrgContact.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPOrgContact.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPOrgContact
public EPPOrgContact()
Default constructor forEPPOrgContact.
-
EPPOrgContact
public EPPOrgContact(java.lang.String aContactId, EPPOrgContact.Type aType)EPPOrgContactthat takes all attributes as arguments (contactId and type).- Parameters:
aContactId- Contact IdentifieraType- Contact Type usingEPPOrgContact.Typeenumeration.
-
EPPOrgContact
public EPPOrgContact(java.lang.String aContactId, EPPOrgContact.Type aType, java.lang.String aTypeName)EPPOrgContactthat takes all attributes as arguments (contactId and type).- Parameters:
aContactId- Contact IdentifieraType- Contact Type usingEPPOrgContact.Typeenumeration.aTypeName- Name of a "custom" type
-
-
Method Detail
-
getType
public EPPOrgContact.Type getType()
Gets the contact type using theEPPOrgContact.Typeenumeration.- Returns:
- Contact type if defined;
nullotherwise.
-
setType
public void setType(EPPOrgContact.Type aType)
Sets the contact type using theEPPOrgContact.Typeenumeration.- Parameters:
aType- Contact type
-
getContactId
public java.lang.String getContactId()
Gets the contact identifier of the contact.- Returns:
- Contact identifier if defined;
nullotherwise.
-
setContactId
public void setContactId(java.lang.String aContactId)
Sets the contact identifier of the contact.- Parameters:
aContactId- Contact identifier of the contact
-
hasTypeName
public boolean hasTypeName()
Is the type name defined?- Returns:
trueif the type name is defined;falseotherwise.
-
getTypeName
public java.lang.String getTypeName()
Gets the optional type name for theCUSTOMtype.- Returns:
- the parentId
-
setTypeName
public void setTypeName(java.lang.String aTypeName)
Gets the optional type name for theCUSTOMtype.- Parameters:
aTypeName- the parentId to set
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPOrgContactinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPOrgContactinstance. - Throws:
EPPEncodeException- Unable to encodeEPPOrgContactinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPOrgContactattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPOrgContactfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPOrgContactcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPOrgContactinstance to compare with- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPOrgContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPOrgContact - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-