public class EPPRegistryExternalHost 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 |
static java.lang.String |
TYPE_PER_REGISTRAR
Constant for perRegistrar policy
|
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 |
|---|
EPPRegistryExternalHost()
Default constructor
|
EPPRegistryExternalHost(java.lang.Integer min,
java.lang.Integer max,
java.lang.String sharePolicy)
Constructor that takes
min, max and sharePolicy. |
EPPRegistryExternalHost(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
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. |
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
EPPRegistryExternalHost 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
public static final java.util.List VALID_POLICIES
List of valid share policiespublic static final java.lang.String TYPE_PER_REGISTRAR
public static final java.lang.String TYPE_PER_ZONE
public static final java.lang.String TYPE_PER_SYSTEM
public EPPRegistryExternalHost()
public EPPRegistryExternalHost(java.lang.Integer min,
java.lang.Integer max,
java.lang.String sharePolicy)
min, max and sharePolicy.min - minimum number of IPs supported for an external hostmax - maximum number of IPs supported for an external hostsharePolicy - "perRegistrar", "perZone" or "perSystem"public EPPRegistryExternalHost(int min,
int max,
java.lang.String sharePolicy)
min, max and sharePolicy.min - minimum number of IPs supported for an external hostmax - maximum number of IPs supported for an external hostsharePolicy - "perRegistrar", "perZone" or "perSystem"public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryExternalHost instance.encode in interface EPPCodecComponentencode in class EPPRegistryMinMaxLengthaDocument - 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 EPPRegistryMinMaxLengthaElement - 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 EPPRegistryMinMaxLengthEPPRegistryExternalHostjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryExternalHost compare.equals in class EPPRegistryMinMaxLengthaObject - EPPRegistryExternalHost 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
EPPRegistryExternalHost 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 EPPRegistryMinMaxLengthEPPEncodeException - On invalid state