Package com.verisign.epp.codec.domain
Class EPPHostAttr
java.lang.Object
com.verisign.epp.codec.domain.EPPHostAttr
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPHostAttr is used to support the host attribute model.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPHostAttrdefault constructor.EPPHostAttr(String aName) EPPHostAttrconstructor the takes the host name.EPPHostAttr(String aName, Vector<EPPHostAddress> aAddresses) EPPHostAttrconstructor the takes the host name and aVectorof host addresses. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddress(EPPHostAddress aAddress) Add a address to the list of addresses.clone()CloneEPPHostAttr.voidDecode the EPPHostAttr attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPHostAttr instance.booleanimplements a deepEPPHostAttrcompare.Gets the host addresses.getName()Get the host name.Returns the XML namespace associated with theEPPCodecComponent.booleanAre addresses set?voidsetAddresses(Vector<EPPHostAddress> aAddresses) Sets the host addresses.voidSet the host name.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPHostAttr.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostAttrroot element.- See Also:
-
-
Constructor Details
-
EPPHostAttr
public EPPHostAttr()EPPHostAttrdefault constructor. -
EPPHostAttr
EPPHostAttrconstructor the takes the host name.- Parameters:
aName- the fully qualified name of a host
-
EPPHostAttr
EPPHostAttrconstructor the takes the host name and aVectorof host addresses.- Parameters:
aName- the fully qualified name of a hostaAddresses-VectorofEPPHostAddressinstances
-
-
Method Details
-
getName
Get the host name.- Returns:
- Host Name
-
setName
Set the host name.- Parameters:
aName- Host Name
-
hasAddresses
public boolean hasAddresses()Are addresses set?- Returns:
trueif addresses are set;falseotherwise.
-
addAddress
Add a address to the list of addresses.- Parameters:
aAddress- Address to add
-
getAddresses
Gets the host addresses.- Returns:
- Vector of
EPPHostAddressinstances if defined;nullotherwise.
-
setAddresses
Sets the host addresses.- Parameters:
aAddresses- Vector ofEPPHostAddressinstances.
-
clone
CloneEPPHostAttr.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPHostAttr - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode 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
Encode 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
implements a deepEPPHostAttrcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-