Package com.verisign.epp.codec.domain
Class EPPHostAttr
- java.lang.Object
-
- com.verisign.epp.codec.domain.EPPHostAttr
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPHostAttr extends java.lang.Object implements EPPCodecComponent
EPPHostAttris used to support the host attribute model.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPHostAttr.static java.lang.StringELM_NAMEXML Element Name ofEPPHostAttrroot element.
-
Constructor Summary
Constructors Constructor Description EPPHostAttr()EPPHostAttrdefault constructor.EPPHostAttr(java.lang.String aName)EPPHostAttrconstructor the takes the host name.EPPHostAttr(java.lang.String aName, java.util.Vector<EPPHostAddress> aAddresses)EPPHostAttrconstructor the takes the host name and aVectorof host addresses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddress(EPPHostAddress aAddress)Add a address to the list of addresses.java.lang.Objectclone()CloneEPPHostAttr.voiddecode(org.w3c.dom.Element aElement)Decode the EPPHostAttr attributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of the EPPHostAttr instance.booleanequals(java.lang.Object aObject)implements a deepEPPHostAttrcompare.java.util.Vector<EPPHostAddress>getAddresses()Gets the host addresses.java.lang.StringgetName()Get the host name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasAddresses()Are addresses set?voidsetAddresses(java.util.Vector<EPPHostAddress> aAddresses)Sets the host addresses.voidsetName(java.lang.String aName)Set the host name.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 forEPPHostAttr.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPHostAttrroot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPHostAttr
public EPPHostAttr()
EPPHostAttrdefault constructor.
-
EPPHostAttr
public EPPHostAttr(java.lang.String aName)
EPPHostAttrconstructor the takes the host name.- Parameters:
aName- the fully qualified name of a host
-
EPPHostAttr
public EPPHostAttr(java.lang.String aName, java.util.Vector<EPPHostAddress> aAddresses)EPPHostAttrconstructor the takes the host name and aVectorof host addresses.- Parameters:
aName- the fully qualified name of a hostaAddresses-VectorofEPPHostAddressinstances
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the host name.- Returns:
- Host Name
-
setName
public void setName(java.lang.String aName)
Set the host name.- Parameters:
aName- Host Name
-
hasAddresses
public boolean hasAddresses()
Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
public void addAddress(EPPHostAddress aAddress)
Add a address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
public java.util.Vector<EPPHostAddress> getAddresses()
Gets the host addresses.- Returns:
- Vector of
EPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
public void setAddresses(java.util.Vector<EPPHostAddress> aAddresses)
Sets the host addresses.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostAttr.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPHostAttr - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPHostAttr attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPHostAttr from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of the EPPHostAttr instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPHostAttr instance.
- Throws:
EPPEncodeException- - Unable to encode EPPHostAttr instance.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPHostAttrcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPHostAttrinstance to compare with- Returns:
trueif equal;falseotherwise.
-
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.
-
-