|
||||||||||
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.EPPRegistryInternalHost
public class EPPRegistryInternalHost
Defines the minimum and maximum number of IP addresses supported for an
internal host. The <registry:internal> 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
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 |
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 | |
---|---|
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 . |
Method Summary | |
---|---|
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. |
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
sharePolicy
attribute
public static final java.util.List VALID_POLICIES
List
of valid share policies
public static final java.lang.String TYPE_PER_ZONE
public static final java.lang.String TYPE_PER_SYSTEM
Constructor Detail |
---|
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"Method Detail |
---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryInternalHost
instance.
encode
in interface EPPCodecComponent
encode
in class EPPRegistryMinMaxLength
aDocument
- 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 EPPCodecComponent
decode
in class EPPRegistryMinMaxLength
aElement
- Root DOM Element to decode EPPRegistryInternalHost
from.
EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryInternalHost
.
clone
in interface EPPCodecComponent
clone
in class EPPRegistryMinMaxLength
EPPRegistryInternalHost
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryInternalHost
compare.
equals
in class EPPRegistryMinMaxLength
aObject
- EPPRegistryInternalHost
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
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 EPPRegistryMinMaxLength
EPPCodecException
EPPEncodeException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |