Package com.verisign.epp.codec.launch
Class EPPLaunchPhase
- java.lang.Object
-
- com.verisign.epp.codec.launch.EPPLaunchPhase
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPLaunchPhase extends java.lang.Object implements EPPCodecComponent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_NAMEOPTIONAL attribute name that can define a sub-phase or the full name of the phase when the <launch:phase> element has the "custom" value.static java.lang.StringELM_LOCALNAMEConstant for the phase local namestatic java.lang.StringELM_NAMEConstant for the phase qualified name (prefix and local name)static java.lang.StringPHASE_CLAIMSTrademark claims phase 1 as defined by Trademark Clearinghouse model of displaying a claims notice to clients for domain names that match trademarks.static java.lang.StringPHASE_CUSTOMPost launch phase that is also referred to as "steady state".static java.lang.StringPHASE_LANDRUSHPost sunrise phase when non-trademark holders are allowed to register domain names with steps taken to address a large volume of initial registrations.static java.lang.StringPHASE_OPENPost launch phase that is also referred to as "steady state".static java.lang.StringPHASE_SUNRISEPhase when trademark holders can submit registrations or applications with trademark information that can be validated by.
-
Constructor Summary
Constructors Constructor Description EPPLaunchPhase()Default constructor.EPPLaunchPhase(java.lang.String aPhase)CreateEPPLaunchPhaseinstance with a defined phase value.EPPLaunchPhase(java.lang.String aPhase, java.lang.String aName)CreateEPPLaunchPhaseinstance with a defined phase value and with the phase name value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPLaunchPhase.voiddecode(org.w3c.dom.Element aElement)Decode theEPPLaunchPhaseelement aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPLaunchPhaseinstance.booleanequals(java.lang.Object aObject)implements a deepEPPLaunchPhasecompare.java.lang.StringgetName()Gets the OPTIONAL phase name or sub-phase name.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetPhase()Gets the phase value, which should match one of thePHASEconstants.voidsetName(java.lang.String aName)Sets the OPTIONAL phase name or sub-phase name.voidsetPhase(java.lang.String aPhase)Sets the phase value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
PHASE_SUNRISE
public static final java.lang.String PHASE_SUNRISE
Phase when trademark holders can submit registrations or applications with trademark information that can be validated by.- See Also:
- Constant Field Values
-
PHASE_LANDRUSH
public static final java.lang.String PHASE_LANDRUSH
Post sunrise phase when non-trademark holders are allowed to register domain names with steps taken to address a large volume of initial registrations.- See Also:
- Constant Field Values
-
PHASE_CLAIMS
public static final java.lang.String PHASE_CLAIMS
Trademark claims phase 1 as defined by Trademark Clearinghouse model of displaying a claims notice to clients for domain names that match trademarks.- See Also:
- Constant Field Values
-
PHASE_OPEN
public static final java.lang.String PHASE_OPEN
Post launch phase that is also referred to as "steady state". Servers MAY require additional trademark protection with this phase.- See Also:
- Constant Field Values
-
PHASE_CUSTOM
public static final java.lang.String PHASE_CUSTOM
Post launch phase that is also referred to as "steady state". Servers MAY require additional trademark protection with this phase.- See Also:
- Constant Field Values
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the phase local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
- Constant Field Values
-
ATTR_NAME
public static final java.lang.String ATTR_NAME
OPTIONAL attribute name that can define a sub-phase or the full name of the phase when the <launch:phase> element has the "custom" value.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchPhase
public EPPLaunchPhase()
Default constructor. The phase value MUST be set using thesetPhase(String)method.
-
EPPLaunchPhase
public EPPLaunchPhase(java.lang.String aPhase)
CreateEPPLaunchPhaseinstance with a defined phase value.- Parameters:
aPhase- Phase value using one of thePHASEconstants.
-
EPPLaunchPhase
public EPPLaunchPhase(java.lang.String aPhase, java.lang.String aName)CreateEPPLaunchPhaseinstance with a defined phase value and with the phase name value.- Parameters:
aPhase- Phase value using one of thePHASEconstants.aName- Name of sub-phase or full name of phase whenaPhaseis set toPHASE_CUSTOM.
-
-
Method Detail
-
getPhase
public java.lang.String getPhase()
Gets the phase value, which should match one of thePHASEconstants.- Returns:
- Phase value
-
setPhase
public void setPhase(java.lang.String aPhase)
Sets the phase value.- Parameters:
aPhase- Phase value, which should be one of thePHASEconstants.
-
getName
public java.lang.String getName()
Gets the OPTIONAL phase name or sub-phase name.- Returns:
- The phase name or sub-phase name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the OPTIONAL phase name or sub-phase name.- Parameters:
aName- Phase name
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLaunchPhase.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPLaunchPhase - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPLaunchPhaseelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPLaunchPhasefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPLaunchPhaseinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPLaunchPhaseinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPLaunchPhaseinstance.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchPhasecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLaunchPhaseinstance to compare with- Returns:
trueif equal;falseotherwise
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-