public class EPPLaunchCheck extends java.lang.Object implements EPPCodecComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the launch phase check extension local name
|
static java.lang.String |
ELM_NAME
Constant for the launch phase info extension tag
|
static java.lang.String |
TYPE_AVAILABILITY
Constant used to specify the availability check form type
|
static java.lang.String |
TYPE_CLAIMS
Constant used to specify the claims check form type
|
static java.lang.String |
TYPE_TRADEMARK
Constant used to specify the trademark check form type
|
Constructor and Description |
---|
EPPLaunchCheck()
Create an EPPLaunchInf instance
|
EPPLaunchCheck(EPPLaunchPhase aPhase)
Create a
EPPLaunchCheck instance with the required phase
attribute value. |
EPPLaunchCheck(EPPLaunchPhase aPhase,
java.lang.String aType)
Create a
EPPLaunchCheck instance with the phase and optional
type attribute value. |
EPPLaunchCheck(java.lang.String aType)
Create a
EPPLaunchCheck instance with the type attribute
value. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPLaunchCheck . |
void |
decode(org.w3c.dom.Element aElement)
Decode the DOM element to the
EPPLaunchCheck . |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode the
EPPLaunchCheck to a DOM Element |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPLaunchCheck compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
EPPLaunchPhase |
getPhase()
Gets phase of the check command.
|
java.lang.String |
getType()
Gets the check form type, which should be either
TYPE_CLAIMS ,
TYPE_AVAILABILITY , or null for undefined. |
boolean |
hasPhase()
Is the phase defined?
|
boolean |
hasType()
Is the check form type defined?
|
boolean |
isAvailabilityCheckForm()
Is the Availability Check Form being used?
|
boolean |
isClaimsCheckForm()
Is the Claims Check Form being used?
|
boolean |
isTrademarkCheckForm()
Is the Trademark Check Form being used?
|
void |
setPhase(EPPLaunchPhase aPhase)
Sets the phase of the check command.
|
void |
setPhase(java.lang.String aPhaseString)
Sets the phase with one of the
EPPLaunchPhase
PHASE constants. |
void |
setType(java.lang.String aType)
Sets the check form type.
|
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 TYPE_CLAIMS
public static final java.lang.String TYPE_AVAILABILITY
public static final java.lang.String TYPE_TRADEMARK
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPLaunchCheck()
public EPPLaunchCheck(EPPLaunchPhase aPhase)
EPPLaunchCheck
instance with the required phase
attribute value.aPhase
- The phase with the value of to execute the check against.public EPPLaunchCheck(EPPLaunchPhase aPhase, java.lang.String aType)
EPPLaunchCheck
instance with the phase and optional
type attribute value.aPhase
- The phase with the value of to execute the check against.aType
- Claims form type using either TYPE_CLAIMS
or
TYPE_AVAILABILITY
or TYPE_TRADEMARK
.public EPPLaunchCheck(java.lang.String aType)
EPPLaunchCheck
instance with the type attribute
value.aType
- Claims form type using either TYPE_CLAIMS
or
TYPE_AVAILABILITY
or TYPE_TRADEMARK
.public boolean hasType()
true
if the type is defined; false
otherwise.public java.lang.String getType()
TYPE_CLAIMS
,
TYPE_AVAILABILITY
, or null
for undefined.TYPE_CLAIMS
, TYPE_AVAILABILITY
, or
null
for undefined.public void setType(java.lang.String aType)
TYPE_CLAIMS
if undefined.aType
- TYPE_CLAIMS
or TYPE_AVAILABILITY
public boolean hasPhase()
true
if the phase is defined; false
otherwise.public EPPLaunchPhase getPhase()
null
otherwise.public void setPhase(EPPLaunchPhase aPhase)
aPhase
- The phase with the value of to execute the check against.public void setPhase(java.lang.String aPhaseString)
EPPLaunchPhase
PHASE
constants.aPhaseString
- One of the EPPLaunchPhase
PHASE
constants.public boolean isClaimsCheckForm()
true
if Claims Check Form is defined;
false
otherwise.public boolean isAvailabilityCheckForm()
true
if Availability Check Form is defined;
false
otherwise.public boolean isTrademarkCheckForm()
true
if Trademark Check Form is defined;
false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPLaunchCheck
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPLaunchCheck
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPLaunchCheck
to a DOM Elementencode
in interface EPPCodecComponent
aDocument
- a DOM Document to attach data to.EPPEncodeException
- Thrown if any errors prevent encoding.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPLaunchCheck
.decode
in interface EPPCodecComponent
aElement
- DOM Element to decode the attribute valuesEPPDecodeException
- Error decoding the DOM Elementpublic boolean equals(java.lang.Object aObject)
EPPLaunchCheck
compare.equals
in class java.lang.Object
aObject
- EPPLaunchCheck
instance to compare withpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.