|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryMinMaxLength
com.verisign.epp.codec.registry.EPPRegistryExternalHost
public class EPPRegistryExternalHost
Defines the policies for external hosts. The <registry:external>
elements contains the following child elements:
EPPRegistryHost
,
Serialized FormField Summary | |
---|---|
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 |
Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength |
---|
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName |
Constructor Summary | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength |
---|
getElmMax, getElmMin, getMax, getMin, getRootName, setElmMax, setElmMin, setMax, setMin, setRootName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public 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 policies
public 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
Constructor Detail |
---|
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"Method Detail |
---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryExternalHost
instance.
encode
in interface EPPCodecComponent
encode
in class EPPRegistryMinMaxLength
aDocument
- 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 EPPCodecComponent
decode
in class EPPRegistryMinMaxLength
aElement
- Root DOM Element to decode EPPRegistryExternalHost
from.
EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryExternalHost
.
clone
in interface EPPCodecComponent
clone
in class EPPRegistryMinMaxLength
EPPRegistryExternalHost
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryExternalHost
compare.
equals
in class EPPRegistryMinMaxLength
aObject
- EPPRegistryExternalHost
instance to compare with
true
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 EPPRegistryMinMaxLength
String
if successful;
ERROR
otherwise.public java.lang.String getSharePolicy()
String
public void setSharePolicy(java.lang.String sharePolicy)
sharePolicy
- shared policy String
protected 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 EPPRegistryMinMaxLength
EPPCodecException
EPPEncodeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |