Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeChkData
- java.lang.Object
-
- com.verisign.epp.codec.fee.v1_0.EPPFeeChkData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPFeeChkData extends java.lang.Object implements EPPCodecComponent
The extension to a response to a check command with the fee check extension.- See Also:
EPPFeeCheck,EPPFeeCheckResult, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPFeeChkData.static java.lang.StringELM_NAMEXML root tag forEPPFeeChkData.
-
Constructor Summary
Constructors Constructor Description EPPFeeChkData()EPPFeeChkDatadefault constructor.EPPFeeChkData(java.lang.String aCurrency)EPPFeeChkDataconstructor that only sets the currency.EPPFeeChkData(java.lang.String aCurrency, EPPFeeCheckResult aResult)EPPFeeChkDataconstructor that sets a single result.EPPFeeChkData(java.lang.String aCurrency, java.util.List<EPPFeeCheckResult> aResults)EPPFeeChkDataconstructor that sets a list of results.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCheckResult(EPPFeeCheckResult aResult)Adds a check result to the list of results.java.lang.Objectclone()CloneEPPFeeChkDatainstance.voiddecode(org.w3c.dom.Element aElement)Decode theEPPFeeChkDataattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPFeeChkDatainstance.booleanequals(java.lang.Object aObject)Implements a deepEPPFeeChkDatacompare.java.util.List<EPPFeeCheckResult>getCheckResults()Get the results of aEPPFeeChkDataResponse.java.lang.StringgetCurrency()Gets the currency value.java.lang.StringgetNamespace()Get the EPP command Namespace associated withEPPFeeChkData.voidsetCheckResult(EPPFeeCheckResult aResult)Sets the result of an individual domain name.voidsetCheckResults(java.util.List<EPPFeeCheckResult> aResults)Set the results of aEPPFeeChkDataResponse.voidsetCurrency(java.lang.String aCurrency)Sets the currency value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPFeeChkData.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPFeeChkData.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPFeeChkData
public EPPFeeChkData()
EPPFeeChkDatadefault constructor. The results list will be empty.
-
EPPFeeChkData
public EPPFeeChkData(java.lang.String aCurrency)
EPPFeeChkDataconstructor that only sets the currency. At least one result must be set.- Parameters:
aCurrency- Currency code of fees using a three-character currency code from ISO4217.
-
EPPFeeChkData
public EPPFeeChkData(java.lang.String aCurrency, EPPFeeCheckResult aResult)EPPFeeChkDataconstructor that sets a single result.- Parameters:
aCurrency- Currency code of fees using a three-character currency code from ISO4217.aResult- A single result
-
EPPFeeChkData
public EPPFeeChkData(java.lang.String aCurrency, java.util.List<EPPFeeCheckResult> aResults)EPPFeeChkDataconstructor that sets a list of results.- Parameters:
aCurrency- Currency code of fees using a three-character currency code from ISO4217.aResults- List of check results
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Get the EPP command Namespace associated withEPPFeeChkData.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPFeeExtFactory.NS
-
getCurrency
public java.lang.String getCurrency()
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
public void setCurrency(java.lang.String aCurrency)
Sets the currency value.- Parameters:
aCurrency- Currency value
-
getCheckResults
public java.util.List<EPPFeeCheckResult> getCheckResults()
Get the results of aEPPFeeChkDataResponse. There is oneEPPFeeDomainResultinstance inthis.resultsfor each domain requested in the Check Command.- Returns:
- List of results if defined; empty list otherwise.
-
setCheckResults
public void setCheckResults(java.util.List<EPPFeeCheckResult> aResults)
Set the results of aEPPFeeChkDataResponse. There is oneEPPFeeDomainResultinstance inthis.resultsfor each domain requested in the Check Command.- Parameters:
aResults- List of claims check results
-
addCheckResult
public void addCheckResult(EPPFeeCheckResult aResult)
Adds a check result to the list of results.- Parameters:
aResult- Check result to add to the list.
-
setCheckResult
public void setCheckResult(EPPFeeCheckResult aResult)
Sets the result of an individual domain name.- Parameters:
aResult- Check result to set
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPFeeChkDatainstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPFeeChkDatainstance. - Throws:
EPPEncodeException- Unable to encodeEPPFeeChkDatainstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPFeeChkDataattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPFeeChkDatafrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
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.
-
equals
public boolean equals(java.lang.Object aObject)
Implements a deepEPPFeeChkDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPFeeChkDatainstance to compare with- Returns:
trueif equalfalseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPFeeChkDatainstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPFeeChkData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
-