public class EPPRegistryExternalHost extends EPPRegistryAbstractMinMax
EPPRegistryHost,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
EPPRegistryExternalHost.SharePolicy
Possible values for the
sharePolicy attribute. |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryExternalHost. |
protected static java.lang.String |
ELM_MAX_IP
XML Element Name of
max attribute. |
protected static java.lang.String |
ELM_MIN_IP
XML Element Name of
min attribute. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryExternalHost. |
static java.lang.String |
ELM_SHARE_POLICY
XML Element Name of
sharePolicy attribute. |
static java.lang.String |
ELM_UNIQUE_IP_ADDRESSES_REQUIRED
XML Element Name of
uniqueIpAddressesRequired attribute. |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH| Constructor and Description |
|---|
EPPRegistryExternalHost()
Creates a new
EPPRegistryExternalHost object. |
EPPRegistryExternalHost(java.lang.Integer aMin,
java.lang.Integer aMax,
EPPRegistryExternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
Constructor that takes
min, max, sharePolicy, and
uniqueIpAddressesRequired using Integer's. |
EPPRegistryExternalHost(int aMin,
int aMax,
EPPRegistryExternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
Constructor that takes
min, max, sharePolicy, and
uniqueIpAddressesRequired using int's. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPRegistryExternalHost. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryExternalHost 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
EPPRegistryExternalHost instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryExternalHost compare. |
protected java.lang.String |
getElmMax()
Gets the maximum element local name.
|
protected java.lang.String |
getElmMin()
Gets the minimum element local name.
|
protected org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
protected java.lang.String |
getRootName()
Gets the root element local name.
|
EPPRegistryExternalHost.SharePolicy |
getSharePolicy()
Gets the share policy.
|
java.lang.Boolean |
getUniqueIpAddressesRequired()
Gets the OPTIONAL boolean value that indicates that all of the IP
addresses for the host object must be unique, with a default value of
"false".
|
boolean |
hasSharePolicy()
Is the share policy defined?
|
void |
setSharePolicy(EPPRegistryExternalHost.SharePolicy aSharePolicy)
Sets the share policy.
|
void |
setUniqueIpAddressesRequired(java.lang.Boolean aUniqueIpAddressesRequired)
Sets the OPTIONAL boolean value that indicates that all of the IP
addresses for the host object must be unique, with a default value of
"false".
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
getMax, getMin, getNamespace, setMax, setMin, validateStatepublic static final java.lang.String ELM_LOCALNAME
EPPRegistryExternalHost.public static final java.lang.String ELM_NAME
EPPRegistryExternalHost.protected static final java.lang.String ELM_MIN_IP
min attribute.protected static final java.lang.String ELM_MAX_IP
max attribute.public static final java.lang.String ELM_SHARE_POLICY
sharePolicy attribute.public static final java.lang.String ELM_UNIQUE_IP_ADDRESSES_REQUIRED
uniqueIpAddressesRequired attribute.public EPPRegistryExternalHost()
EPPRegistryExternalHost object.public EPPRegistryExternalHost(java.lang.Integer aMin,
java.lang.Integer aMax,
EPPRegistryExternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
min, max, sharePolicy, and
uniqueIpAddressesRequired using Integer's.aMin - minimum number of IPs supported for an external hostaMax - maximum number of IPs supported for an external hostaSharePolicy - Share policy to set. Set to null if undefined.aUniqueIpAddressesRequired - Indicates that all of the IP addresses for the host object must
be unique, with a default value of "false". Set to null
to set the default.public EPPRegistryExternalHost(int aMin,
int aMax,
EPPRegistryExternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
min, max, sharePolicy, and
uniqueIpAddressesRequired using int's.aMin - minimum number of IPs supported for an external hostaMax - maximum number of IPs supported for an external hostaSharePolicy - Share policy to set. Set to null if undefined.aUniqueIpAddressesRequired - Indicates that all of the IP addresses for the host object must
be unique, with a default value of "false". Set to null
to set the default.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryExternalHost instance.encode in interface EPPCodecComponentencode in class EPPRegistryAbstractMinMaxaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryExternalHost instance.EPPEncodeException - - Unable to encode EPPRegistryExternalHost instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryExternalHost attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentdecode in class EPPRegistryAbstractMinMaxaElement - Root DOM Element to decode EPPRegistryExternalHost from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryExternalHost.clone in interface EPPCodecComponentclone in class EPPRegistryAbstractMinMaxEPPRegistryExternalHostjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryExternalHost compare.equals in class EPPRegistryAbstractMinMaxaObject - EPPRegistryExternalHost instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic boolean hasSharePolicy()
true if the share policy is defined; false
otherwise.public EPPRegistryExternalHost.SharePolicy getSharePolicy()
null otherwise.public void setSharePolicy(EPPRegistryExternalHost.SharePolicy aSharePolicy)
aSharePolicy - Share policy. Set to null to clear it.public java.lang.Boolean getUniqueIpAddressesRequired()
uniqueIpAddressesRequired boolean value.public void setUniqueIpAddressesRequired(java.lang.Boolean aUniqueIpAddressesRequired)
aUniqueIpAddressesRequired - Set the boolean value. If set to null the default value
of "false" will be set.public java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class EPPRegistryAbstractMinMaxString if successful; ERROR
otherwise.protected java.lang.String getRootName()
getRootName in class EPPRegistryAbstractMinMaxprotected java.lang.String getElmMin()
getElmMin in class EPPRegistryAbstractMinMaxprotected java.lang.String getElmMax()
getElmMax in class EPPRegistryAbstractMinMaxprotected org.apache.log4j.Logger getLogger()
Logger to use.getLogger in class EPPRegistryAbstractMinMaxLogger instance to use for logging.