public class EPPLaunchPolicyInfoPhase extends java.lang.Object implements EPPCodecComponent
EPPLaunchPolicyInfoPhase defines a supported <launch:phase>
value that can be passed in the phase.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPLaunchPolicyInfoPhase. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPLaunchPolicyInfoPhase. |
| Constructor and Description |
|---|
EPPLaunchPolicyInfoPhase()
Default constructor for
EPPLaunchPolicyInfoPhase. |
EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase)
Constructor for
EPPLaunchPolicyInfoPhase that takes the required
phase attribute. |
EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase,
java.lang.String aName)
Constructor for
EPPLaunchPolicyInfoPhase that takes the required
phase attribute and the optional name attribute. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
clone an
EPPCodecComponent. |
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
EPPOrgExt with this instance. |
java.lang.String |
getName()
Gets the OPTIONAL phase name or sub-phase name.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
EPPLaunchPolicyPhase.Phase |
getPhase()
Gets the phase value.
|
boolean |
hasName()
Is the name defined?
|
boolean |
hasPhase()
Is the phase defined?
|
void |
setName(java.lang.String aName)
Sets the OPTIONAL phase name or sub-phase name.
|
void |
setPhase(EPPLaunchPolicyPhase.Phase aPhase)
Sets the phase value.
|
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
EPPLaunchPolicyInfoPhase.public static final java.lang.String ELM_NAME
EPPLaunchPolicyInfoPhase.public EPPLaunchPolicyInfoPhase()
EPPLaunchPolicyInfoPhase.public EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase)
EPPLaunchPolicyInfoPhase that takes the required
phase attribute.aPhase - The launch phasepublic EPPLaunchPolicyInfoPhase(EPPLaunchPolicyPhase.Phase aPhase, java.lang.String aName)
EPPLaunchPolicyInfoPhase that takes the required
phase attribute and the optional name attribute.aPhase - The launch phaseaName - The sub-phase name or the custom name if aPhase is
EPPLaunchPolicyPhase.Phase.custom. Set to null
if undefined.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factoryEPPEncodeException - Error encoding EPPLaunchPolicyInfoPhasepublic 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 EPPCodecComponentaElement - Element to decodeEPPDecodeException - Error decoding Elementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPOrgExtjava.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.ObjectString if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPOrgExt with this instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public boolean hasPhase()
true if the phase is defined; false otherwise.public EPPLaunchPolicyPhase.Phase getPhase()
EPPLaunchPolicyPhase.Phase enumerated value if set;
null otherwise.public void setPhase(EPPLaunchPolicyPhase.Phase aPhase)
aPhase - Sets the phase value.public boolean hasName()
true if the name is defined; false otherwise.public java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName - Phase namepublic java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.