Class EPPLaunchPolicyZone
- java.lang.Object
-
- com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyZone
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPRegistryZoneInterface
,java.io.Serializable
,java.lang.Cloneable
public class EPPLaunchPolicyZone extends java.lang.Object implements EPPCodecComponent, EPPRegistryZoneInterface
EPPLaunchPolicyZone
contains all of the policy information associated with the zone.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPLaunchPolicyZone
.static java.lang.String
ELM_NAME
XML root tag forEPPLaunchPolicyZone
.
-
Constructor Summary
Constructors Constructor Description EPPLaunchPolicyZone()
Default constructor forEPPLaunchPolicyZone
.EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)
Constructor forEPPLaunchPolicyZone
that takes a single phase.EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)
Constructor forEPPLaunchPolicyZone
that takes a list of phases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPhase(EPPLaunchPolicyPhase aPhase)
Adds a phase to the list of phases.java.lang.Object
clone()
Clone anEPPCodecComponent
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 ofEPPLaunchPolicyZone
with this instance.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.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 ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPLaunchPolicyZone
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPLaunchPolicyZone
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchPolicyZone
public EPPLaunchPolicyZone()
Default constructor forEPPLaunchPolicyZone
.
-
EPPLaunchPolicyZone
public EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)
Constructor forEPPLaunchPolicyZone
that takes a single phase.- Parameters:
aPhase
- Zone phase
-
EPPLaunchPolicyZone
public EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)
Constructor forEPPLaunchPolicyZone
that takes a list of phases.- Parameters:
aPhases
- List of phases
-
-
Method Detail
-
hasPhases
public boolean hasPhases()
Are the phases defined?- Returns:
true
if the phases are defined;false
otherwise.
-
getPhases
public java.util.List<EPPLaunchPolicyPhase> getPhases()
Gets the list of phases if defined.- Returns:
- List of phases if defined; empty list otherwise.
-
addPhase
public void addPhase(EPPLaunchPolicyPhase aPhase)
Adds a phase to the list of phases.- Parameters:
aPhase
- The phase to add.
-
setPhases
public void setPhases(java.util.List<EPPLaunchPolicyPhase> aPhases)
Sets the list of phases.- Parameters:
aPhases
- The phases to set.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException
- Error encodingEPPLaunchPolicyZone
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode a DOM element tree to initialize the instance attributes. TheaElement
argument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
-Element
to decode- Throws:
EPPDecodeException
- Error decodingElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
Clone anEPPCodecComponent
instance.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of concrete
EPPLaunchPolicyZone
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPLaunchPolicyZone
with this instance.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
- Object to compare with.- Returns:
true
if equal;false
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-