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
EPPLaunchPolicyZonecontains all of the policy information associated with the zone.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPLaunchPolicyZone.static java.lang.StringELM_NAMEXML root tag forEPPLaunchPolicyZone.
-
Constructor Summary
Constructors Constructor Description EPPLaunchPolicyZone()Default constructor forEPPLaunchPolicyZone.EPPLaunchPolicyZone(EPPLaunchPolicyPhase aPhase)Constructor forEPPLaunchPolicyZonethat takes a single phase.EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)Constructor forEPPLaunchPolicyZonethat takes a list of phases.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPhase(EPPLaunchPolicyPhase aPhase)Adds a phase to the list of phases.java.lang.Objectclone()Clone anEPPCodecComponentinstance.voiddecode(org.w3c.dom.Element aElement)Decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPLaunchPolicyZonewith this instance.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.List<EPPLaunchPolicyPhase>getPhases()Gets the list of phases if defined.booleanhasPhases()Are the phases defined?voidsetPhases(java.util.List<EPPLaunchPolicyPhase> aPhases)Sets the list of phases.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation 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 forEPPLaunchPolicyZonethat takes a single phase.- Parameters:
aPhase- Zone phase
-
EPPLaunchPolicyZone
public EPPLaunchPolicyZone(java.util.List<EPPLaunchPolicyPhase> aPhases)
Constructor forEPPLaunchPolicyZonethat takes a list of phases.- Parameters:
aPhases- List of phases
-
-
Method Detail
-
hasPhases
public boolean hasPhases()
Are the phases defined?- Returns:
trueif the phases are defined;falseotherwise.
-
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 EPPEncodeExceptionEncode 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:
encodein 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 EPPDecodeExceptionDecode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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 XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPLaunchPolicyZonewith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-