public class EPPPremiumDomainCheckResult extends java.lang.Object implements EPPCodecComponent
EPPPremiumDomainCheckResult
represents the result of an
individual premium domain name check.
The attributes of EPPPremiumDomainCheckResult include the domain name
and a boolean value indicating if the domain name is premium.
The domain price
must be set before invoking encode
if the isPremium flag is set to true
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_NAME
XML tag name of
EPPPremiumDomainCheckResult root element |
static java.lang.String |
PRICE_UNIT_USD
The constant value for USD
|
Constructor and Description |
---|
EPPPremiumDomainCheckResult()
Create an
EPPPremiumDomainCheckResp instance |
EPPPremiumDomainCheckResult(java.lang.String aName,
boolean aIsPremium)
Create a
EPPPremiumDomainCheckResp instance that will set
the attribute. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPPremiumDomainCheckResp . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPPremiumDomainCheckResp attributes from the
aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPPremiumDomainCheckResp instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPPremiumDomainCheckResp with this
instance. |
java.lang.String |
getName()
Gets the domain name associated with the result.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.math.BigDecimal |
getPrice() |
java.lang.String |
getPriceUnit() |
java.math.BigDecimal |
getRenewalPrice() |
boolean |
isPremium() |
void |
setIsPremium(boolean aIsPremium) |
void |
setName(java.lang.String aName)
Sets the domain name associated with the result.
|
void |
setPrice(java.math.BigDecimal aPrice) |
void |
setPriceUnit(java.lang.String aPriceUnit) |
void |
setRenewalPrice(java.math.BigDecimal aRenewalPrice) |
public static final java.lang.String PRICE_UNIT_USD
public static final java.lang.String ELM_NAME
EPPPremiumDomainCheckResult
root elementpublic EPPPremiumDomainCheckResult()
EPPPremiumDomainCheckResp
instancepublic EPPPremiumDomainCheckResult(java.lang.String aName, boolean aIsPremium)
EPPPremiumDomainCheckResp
instance that will set
the attribute.aIsPremium
- isPremium flagpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPPremiumDomainCheckResp
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPPremiumDomainCheckResp
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPPremiumDomainCheckResp
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being builtEPPPremiumDomainCheckResp
instance.EPPEncodeException
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPPremiumDomainCheckResp
attributes from the
aElement
DOM Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPPremiumDomainCheckResp
from.EPPDecodeException
- Unable to decode aElement
public boolean equals(java.lang.Object aObject)
EPPPremiumDomainCheckResp
with this
instance.equals
in class java.lang.Object
aObject
- Object to compare with.public java.lang.String getName()
null
otherwise.public void setName(java.lang.String aName)
aName
- Domain Name associated with the result.public boolean isPremium()
public void setIsPremium(boolean aIsPremium)
aIsPremium
- the isPremium to setpublic java.math.BigDecimal getPrice()
public void setPrice(java.math.BigDecimal aPrice)
aPrice
- the price to setpublic java.math.BigDecimal getRenewalPrice()
public void setRenewalPrice(java.math.BigDecimal aRenewalPrice)
aRenewalPrice
- the renewalPrice to setpublic java.lang.String getPriceUnit()
null
otherwise.public void setPriceUnit(java.lang.String aPriceUnit)
aPriceUnit
- Unit associated with the price.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.Copyright © VeriSign Inc. All Rights Reserved.