public class EPPRegistryInternalHost extends EPPRegistryMinMaxLength
EPPRegistryHost,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the status local name
|
static java.lang.String |
ELM_NAME
Constant for the external host (prefix and local name)
|
static java.lang.String |
ELM_SHARE_POLICY
XML Element Name of
sharePolicy attribute |
static java.lang.String |
TYPE_PER_SYSTEM
Constant for perSystem policy
|
static java.lang.String |
TYPE_PER_ZONE
Constant for perZone policy
|
static java.util.List |
VALID_POLICIES
List of valid share policies |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName| Constructor and Description |
|---|
EPPRegistryInternalHost()
Default constructor
|
EPPRegistryInternalHost(java.lang.Integer min,
java.lang.Integer max,
java.lang.String sharePolicy)
Constructor that takes
min, max and sharePolicy. |
EPPRegistryInternalHost(int min,
int max,
java.lang.String sharePolicy)
Constructor that takes
min, max and sharePolicy. |
| 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. |
java.lang.String |
getSharePolicy()
Gets the shared policy.
|
void |
setSharePolicy(java.lang.String sharePolicy)
Sets the shared policy.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
protected void |
validateState()
Validate the state of the
EPPRegistryInternalHost instance. |
getElmMax, getElmMin, getMax, getMin, getNamespace, getRootName, setElmMax, setElmMin, setMax, setMin, setRootNamepublic static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public static final java.lang.String ELM_SHARE_POLICY
sharePolicy attributepublic static final java.util.List VALID_POLICIES
List of valid share policiespublic static final java.lang.String TYPE_PER_ZONE
public static final java.lang.String TYPE_PER_SYSTEM
public EPPRegistryInternalHost()
public EPPRegistryInternalHost(java.lang.Integer min,
java.lang.Integer max,
java.lang.String sharePolicy)
min, max and sharePolicy.min - minimum number of IPs supported for an internal hostmax - maximum number of IPs supported for an internal hostsharePolicy - "perZone" or "perSystem"public EPPRegistryInternalHost(int min,
int max,
java.lang.String sharePolicy)
min, max and sharePolicy.min - minimum number of IPs supported for an internal hostmax - maximum number of IPs supported for an internal hostsharePolicy - "perZone" or "perSystem"public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryInternalHost instance.encode in interface EPPCodecComponentencode in class EPPRegistryMinMaxLengthaDocument - 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 EPPRegistryMinMaxLengthaElement - 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 EPPRegistryMinMaxLengthEPPRegistryInternalHostjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryInternalHost compare.equals in class EPPRegistryMinMaxLengthaObject - EPPRegistryInternalHost instance to compare withtrue if this object is the same as the aObject argument;
false otherwisepublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class EPPRegistryMinMaxLengthString if successful;
ERROR otherwise.public java.lang.String getSharePolicy()
Stringpublic void setSharePolicy(java.lang.String sharePolicy)
sharePolicy - shared policy Stringprotected void validateState()
throws EPPEncodeException
EPPRegistryInternalHost instance.
A valid state means that all of the required attributes have been set. If
validateState returns without an exception, the state is valid. If the
state is not valid, the EPPCodecException will contain a description of
the error. throws EPPCodecException State error. This will contain the
name of the attribute that is not valid.validateState in class EPPRegistryMinMaxLengthEPPCodecExceptionEPPEncodeExceptionCopyright © VeriSign Inc. All Rights Reserved.