public class EPPLaunchPolicyZone extends java.lang.Object implements EPPCodecComponent, EPPRegistryZoneInterface
EPPLaunchPolicyZone
contains all of the policy information associated
with the zone.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPLaunchPolicyZone . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPLaunchPolicyZone . |
Constructor and Description |
---|
EPPLaunchPolicyZone()
Default constructor for
EPPLaunchPolicyZone . |
EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)
Constructor for
EPPLaunchPolicyZone that takes a single phase. |
EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)
Constructor for
EPPLaunchPolicyZone that takes a list of phases. |
Modifier and Type | Method and Description |
---|---|
void |
addPhase(EPPLaunchPolicyPhase aPhase)
Adds a phase to the list of phases.
|
java.lang.Object |
clone()
Clone an
EPPCodecComponent instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPLaunchPolicyZone with this instance. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.List<EPPLaunchPolicyPhase> |
getPhases()
Gets the list of phases if defined.
|
boolean |
hasPhases()
Are the phases defined?
|
void |
setPhases(java.util.List<EPPLaunchPolicyPhase> aPhases)
Sets the list of phases.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
EPPLaunchPolicyZone
.public static final java.lang.String ELM_NAME
EPPLaunchPolicyZone
.public EPPLaunchPolicyZone()
EPPLaunchPolicyZone
.public EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)
EPPLaunchPolicyZone
that takes a single phase.aPhase
- Zone phasepublic EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)
EPPLaunchPolicyZone
that takes a list of phases.aPhases
- List of phasespublic boolean hasPhases()
true
if the phases are defined; false
otherwise.public java.util.List<EPPLaunchPolicyPhase> getPhases()
public void addPhase(EPPLaunchPolicyPhase aPhase)
aPhase
- The phase to add.public void setPhases(java.util.List<EPPLaunchPolicyPhase> aPhases)
aPhases
- The phases to set.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factoryEPPEncodeException
- Error encoding EPPLaunchPolicyZone
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is used to
traverse the DOM nodes for instance attribute values.decode
in interface EPPCodecComponent
aElement
- Element
to decodeEPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
instance.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPLaunchPolicyZone
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPLaunchPolicyZone
with this instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.