Package com.verisign.epp.codec.launch
Class EPPLaunchUpdate
- java.lang.Object
-
- com.verisign.epp.codec.launch.EPPLaunchUpdate
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPLaunchUpdate extends java.lang.Object implements EPPCodecComponent
Extension to the domain update command to update a launch phase application.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
Constant for the launch phase update extension local namestatic java.lang.String
ELM_NAME
Constant for the launch phase info extension tag
-
Constructor Summary
Constructors Constructor Description EPPLaunchUpdate()
Create an EPPLaunchUpdate instanceEPPLaunchUpdate(EPPLaunchPhase aPhase, java.lang.String aApplicationId)
Create aEPPLaunchUpdate
instance with both the required phase and required application identifier attribute values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPLaunchUpdate
.void
decode(org.w3c.dom.Element aElement)
Decode the DOM element to theEPPLaunchUpdate
.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode theEPPLaunchUpdate
to a DOM Elementboolean
equals(java.lang.Object aObject)
implements a deepEPPLaunchUpdate
compare.java.lang.String
getApplicationId()
Gets the application identifier of the launch application.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.EPPLaunchPhase
getPhase()
Gets phase during which the application was submitted or is associated with.void
setApplicationId(java.lang.String aApplicationId)
Sets the application identifier of the launch application.void
setPhase(EPPLaunchPhase aPhase)
Sets the phase during which the application was submitted or is associated with.void
setPhase(java.lang.String aPhaseString)
Sets the phase with one of theEPPLaunchPhase
PHASE
constants.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the launch phase update extension local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the launch phase info extension tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchUpdate
public EPPLaunchUpdate()
Create an EPPLaunchUpdate instance
-
EPPLaunchUpdate
public EPPLaunchUpdate(EPPLaunchPhase aPhase, java.lang.String aApplicationId)
Create aEPPLaunchUpdate
instance with both the required phase and required application identifier attribute values.- Parameters:
aPhase
- Phase during which the application was submitted or is associated withaApplicationId
- Application identifier of the launch application
-
-
Method Detail
-
getPhase
public EPPLaunchPhase getPhase()
Gets phase during which the application was submitted or is associated with.- Returns:
- phase during which the application was submitted
or is associated with if defined;
null
otherwise.
-
setPhase
public void setPhase(EPPLaunchPhase aPhase)
Sets the phase during which the application was submitted or is associated with.- Parameters:
aPhase
- Phase during which the application was submitted or is associated with
-
setPhase
public void setPhase(java.lang.String aPhaseString)
Sets the phase with one of theEPPLaunchPhase
PHASE
constants.- Parameters:
aPhaseString
- One of theEPPLaunchPhase
PHASE
constants.
-
getApplicationId
public java.lang.String getApplicationId()
Gets the application identifier of the launch application.- Returns:
- Application identifier if defined;
null
otherwise.
-
setApplicationId
public void setApplicationId(java.lang.String aApplicationId)
Sets the application identifier of the launch application.- Parameters:
aApplicationId
- Application identifier of the launch application
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPLaunchUpdate
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPLaunchUpdate
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode theEPPLaunchUpdate
to a DOM Element- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException
- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode the DOM element to theEPPLaunchUpdate
.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- DOM Element to decode the attribute values- Throws:
EPPDecodeException
- Error decoding the DOM Element
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchUpdate
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPLaunchUpdate
instance to compare with- Returns:
- true if equal false otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-