public class EPPHostAttr extends java.lang.Object implements EPPCodecComponent
EPPHostAttr is used to support the host attribute model.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPHostAttr. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPHostAttr root element. |
| Constructor and Description |
|---|
EPPHostAttr()
EPPHostAttr default constructor. |
EPPHostAttr(java.lang.String aName)
EPPHostAttr constructor the takes the host name. |
EPPHostAttr(java.lang.String aName,
java.util.Vector aAddresses)
EPPHostAttr constructor the takes the host name and a
Vector of host addresses. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPHostAttr. |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPHostAttr 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 EPPHostAttr instance.
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPHostAttr compare. |
java.util.Vector |
getAddresses()
Gets the host addresses.
|
java.lang.String |
getName()
Get the host name.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
void |
setAddresses(java.util.Vector aAddresses)
Sets the host addresses.
|
void |
setName(java.lang.String aName)
Set the host name.
|
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
EPPHostAttr.public static final java.lang.String ELM_NAME
EPPHostAttr root element.public EPPHostAttr()
EPPHostAttr default constructor.public EPPHostAttr(java.lang.String aName)
EPPHostAttr constructor the takes the host name.aName - the fully qualified name of a hostpublic EPPHostAttr(java.lang.String aName,
java.util.Vector aAddresses)
EPPHostAttr constructor the takes the host name and a
Vector of host addresses.aName - the fully qualified name of a hostaAddresses - Vector of EPPHostAddress instancespublic java.lang.String getName()
public void setName(java.lang.String aName)
aName - Host Namepublic java.util.Vector getAddresses()
EPPHostAddress instances if defined;
null otherwise.public void setAddresses(java.util.Vector aAddresses)
aAddresses - Vector of EPPHostAddress instances.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPHostAttr.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPHostAttrjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
decode in interface EPPCodecComponentaElement - - Root DOM Element to decode EPPHostAttr from.EPPDecodeException - Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - - DOM Document that is being built. Used as an Element factory.EPPEncodeException - - Unable to encode EPPHostAttr instance.public boolean equals(java.lang.Object aObject)
EPPHostAttr compare.equals in class java.lang.ObjectaObject - EPPHostAttr instance to compare withtrue if equal; false otherwise.public 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.