Class EPPLaunchPolicyZone
java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyZone
- All Implemented Interfaces:
EPPCodecComponent,EPPRegistryZoneInterface,Serializable,Cloneable
public class EPPLaunchPolicyZone
extends Object
implements EPPCodecComponent, EPPRegistryZoneInterface
EPPLaunchPolicyZone contains all of the policy information associated
with the zone.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLaunchPolicyZone.Constructor forEPPLaunchPolicyZonethat takes a single phase.EPPLaunchPolicyZone(List<EPPLaunchPolicyPhase> aPhases) Constructor forEPPLaunchPolicyZonethat takes a list of phases. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPhase(EPPLaunchPolicyPhase aPhase) Adds a phase to the list of phases.clone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPLaunchPolicyZonewith this instance.Returns the XML namespace associated with theEPPCodecComponent.Gets the list of phases if defined.booleanAre the phases defined?voidsetPhases(List<EPPLaunchPolicyPhase> aPhases) Sets the list of phases.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLaunchPolicyZone.- See Also:
-
ELM_NAME
XML root tag forEPPLaunchPolicyZone.- See Also:
-
-
Constructor Details
-
EPPLaunchPolicyZone
public EPPLaunchPolicyZone()Default constructor forEPPLaunchPolicyZone. -
EPPLaunchPolicyZone
Constructor forEPPLaunchPolicyZonethat takes a single phase.- Parameters:
aPhase- Zone phase
-
EPPLaunchPolicyZone
Constructor forEPPLaunchPolicyZonethat takes a list of phases.- Parameters:
aPhases- List of phases
-
-
Method Details
-
hasPhases
public boolean hasPhases()Are the phases defined?- Returns:
trueif the phases are defined;falseotherwise.
-
getPhases
Gets the list of phases if defined.- Returns:
- List of phases if defined; empty list otherwise.
-
addPhase
Adds a phase to the list of phases.- Parameters:
aPhase- The phase to add.
-
setPhases
Sets the list of phases.- Parameters:
aPhases- The phases to set.
-
encode
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:
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
Decode 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
Clone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPLaunchPolicyZone - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPLaunchPolicyZonewith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-