public class EPPFeeChkData extends java.lang.Object implements EPPCodecComponent
EPPFeeCheck,
EPPFeeCheckResult,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPFeeChkData. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPFeeChkData. |
| Constructor and Description |
|---|
EPPFeeChkData()
EPPFeeChkData default constructor. |
EPPFeeChkData(java.lang.String aCurrency)
EPPFeeChkData constructor that only sets the currency. |
EPPFeeChkData(java.lang.String aCurrency,
EPPFeeCheckResult aResult)
EPPFeeChkData constructor that sets a single result. |
EPPFeeChkData(java.lang.String aCurrency,
java.util.List<EPPFeeCheckResult> aResults)
EPPFeeChkData constructor that sets a list of results. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCheckResult(EPPFeeCheckResult aResult)
Adds a check result to the list of results.
|
java.lang.Object |
clone()
Clone
EPPFeeChkData instance. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPFeeChkData 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
EPPFeeChkData instance. |
boolean |
equals(java.lang.Object aObject)
Implements a deep
EPPFeeChkData compare. |
java.util.List<EPPFeeCheckResult> |
getCheckResults()
Get the results of a
EPPFeeChkData Response. |
java.lang.String |
getCurrency()
Gets the currency value.
|
java.lang.String |
getNamespace()
Get the EPP command Namespace associated with
EPPFeeChkData. |
void |
setCheckResult(EPPFeeCheckResult aResult)
Sets the result of an individual domain name.
|
void |
setCheckResults(java.util.List<EPPFeeCheckResult> aResults)
Set the results of a
EPPFeeChkData Response. |
void |
setCurrency(java.lang.String aCurrency)
Sets the currency 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
EPPFeeChkData.public static final java.lang.String ELM_NAME
EPPFeeChkData.public EPPFeeChkData()
EPPFeeChkData default constructor. The results list will be
empty.public EPPFeeChkData(java.lang.String aCurrency)
EPPFeeChkData constructor that only sets the currency. At
least one result must be set.aCurrency - Currency code of fees using a three-character currency code from
ISO4217.public EPPFeeChkData(java.lang.String aCurrency,
EPPFeeCheckResult aResult)
EPPFeeChkData constructor that sets a single result.aCurrency - Currency code of fees using a three-character currency code from
ISO4217.aResult - A single resultpublic EPPFeeChkData(java.lang.String aCurrency,
java.util.List<EPPFeeCheckResult> aResults)
EPPFeeChkData constructor that sets a list of results.aCurrency - Currency code of fees using a three-character currency code from
ISO4217.aResults - List of check resultspublic java.lang.String getNamespace()
EPPFeeChkData.getNamespace in interface EPPCodecComponentEPPFeeExtFactory.NSpublic java.lang.String getCurrency()
null otherwise.public void setCurrency(java.lang.String aCurrency)
aCurrency - Currency valuepublic java.util.List<EPPFeeCheckResult> getCheckResults()
EPPFeeChkData Response. There is one
EPPFeeDomainResult instance in this.results for
each domain requested in the Check Command.public void setCheckResults(java.util.List<EPPFeeCheckResult> aResults)
EPPFeeChkData Response. There is one
EPPFeeDomainResult instance in this.results for
each domain requested in the Check Command.aResults - List of claims check resultspublic void addCheckResult(EPPFeeCheckResult aResult)
aResult - Check result to add to the list.public void setCheckResult(EPPFeeCheckResult aResult)
aResult - Check result to setpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPFeeChkData instance.encode in interface EPPCodecComponentaDocument - DOM Document that is being built. Used as an Element factory.EPPFeeChkData instance.EPPEncodeException - Unable to encode EPPFeeChkData instance.public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPFeeChkData attributes from the aElement DOM
Element tree.decode in interface EPPCodecComponentaElement - Root DOM Element to decode EPPFeeChkData from.EPPDecodeException - Unable to decode aElementpublic 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)
EPPFeeChkData compare.equals in class java.lang.ObjectaObject - EPPFeeChkData instance to compare withtrue if equal false otherwise.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPFeeChkData instance.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPFeeChkDatajava.lang.CloneNotSupportedException - standard Object.clone exception