Class EPPLaunchPolicyInfoPhase
java.lang.Object
com.verisign.epp.codec.launchpolicy.v01.EPPLaunchPolicyInfoPhase
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPLaunchPolicyInfoPhase defines a supported <launch:phase>
value that can be passed in the phase.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLaunchPolicyInfoPhase.Constructor forEPPLaunchPolicyInfoPhasethat takes the required phase attribute.EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase, String aName) Constructor forEPPLaunchPolicyInfoPhasethat takes the required phase attribute and the optional name attribute. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPOrgExtwith this instance.getName()Gets the OPTIONAL phase name or sub-phase name.Returns the XML namespace associated with theEPPCodecComponent.getPhase()Gets the phase value.booleanhasName()Is the name defined?booleanhasPhase()Is the phase defined?voidSets the OPTIONAL phase name or sub-phase name.voidsetPhase(EPPLaunchPolicyPhase.Phase aPhase) Sets the phase value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPLaunchPolicyInfoPhase.- See Also:
-
ELM_NAME
XML root tag forEPPLaunchPolicyInfoPhase.- See Also:
-
-
Constructor Details
-
EPPLaunchPolicyInfoPhase
public EPPLaunchPolicyInfoPhase()Default constructor forEPPLaunchPolicyInfoPhase. -
EPPLaunchPolicyInfoPhase
Constructor forEPPLaunchPolicyInfoPhasethat takes the required phase attribute.- Parameters:
aPhase- The launch phase
-
EPPLaunchPolicyInfoPhase
Constructor forEPPLaunchPolicyInfoPhasethat takes the required phase attribute and the optional name attribute.- Parameters:
aPhase- The launch phaseaName- The sub-phase name or the custom name ifaPhaseisEPPLaunchPolicyPhase.Phase.custom. Set tonullif undefined.
-
-
Method Details
-
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 encodingEPPLaunchPolicyInfoPhase
-
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 anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPOrgExt - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPOrgExtwith this instance. -
hasPhase
public boolean hasPhase()Is the phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getPhase
Gets the phase value.- Returns:
EPPLaunchPolicyPhase.Phaseenumerated value if set;nullotherwise.
-
setPhase
Sets the phase value.- Parameters:
aPhase- Sets the phase value.
-
hasName
public boolean hasName()Is the name defined?- Returns:
trueif the name is defined;falseotherwise.
-
getName
Gets the OPTIONAL phase name or sub-phase name.- Returns:
- The phase name or sub-phase name if defined;
nullotherwise.
-
setName
Sets the OPTIONAL phase name or sub-phase name.- Parameters:
aName- Phase name
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-