public class EPPRegistryInternalHost extends EPPRegistryAbstractMinMax
EPPRegistryHost,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
EPPRegistryInternalHost.SharePolicy |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryInternalHost. |
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
EPPRegistryInternalHost. |
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 |
|---|
EPPRegistryInternalHost()
Creates a new
EPPRegistryInternalHost object. |
EPPRegistryInternalHost(java.lang.Integer aMin,
java.lang.Integer aMax,
EPPRegistryInternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
Constructor that takes
min, max, sharePolicy, and
uniqueIpAddressesRequired using Integer's. |
EPPRegistryInternalHost(int aMin,
int aMax,
EPPRegistryInternalHost.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
EPPRegistryInternalHost. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryInternalHost 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
EPPRegistryInternalHost instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryInternalHost 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.
|
EPPRegistryInternalHost.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(EPPRegistryInternalHost.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
EPPRegistryInternalHost.public static final java.lang.String ELM_NAME
EPPRegistryInternalHost.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 EPPRegistryInternalHost()
EPPRegistryInternalHost object.public EPPRegistryInternalHost(java.lang.Integer aMin,
java.lang.Integer aMax,
EPPRegistryInternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
min, max, sharePolicy, and
uniqueIpAddressesRequired using Integer's.aMin - minimum number of IPs supported for an internal hostaMax - maximum number of IPs supported for an internal 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 EPPRegistryInternalHost(int aMin,
int aMax,
EPPRegistryInternalHost.SharePolicy aSharePolicy,
java.lang.Boolean aUniqueIpAddressesRequired)
min, max, sharePolicy, and
uniqueIpAddressesRequired using int's.aMin - minimum number of IPs supported for an internal hostaMax - maximum number of IPs supported for an internal 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
EPPRegistryInternalHost instance.encode in interface EPPCodecComponentencode in class EPPRegistryAbstractMinMaxaDocument - DOM Document that is being built. Used as an Element factory.EPPRegistryInternalHost instance.EPPEncodeException - - Unable to encode EPPRegistryInternalHost instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPRegistryInternalHost attributes from the aElement
DOM Element tree.decode in interface EPPCodecComponentdecode in class EPPRegistryAbstractMinMaxaElement - Root DOM Element to decode EPPRegistryInternalHost from.EPPDecodeException - Unable to decode aElementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryInternalHost.clone in interface EPPCodecComponentclone in class EPPRegistryAbstractMinMaxEPPRegistryInternalHostjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryInternalHost compare.equals in class EPPRegistryAbstractMinMaxaObject - EPPRegistryInternalHost 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 EPPRegistryInternalHost.SharePolicy getSharePolicy()
null otherwise.public void setSharePolicy(EPPRegistryInternalHost.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.Copyright © VeriSign Inc. All Rights Reserved.