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,Serializable,Cloneable
The extension to a response to a check command with the fee check extension.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPFeeChkDatadefault constructor.EPPFeeChkData(String aCurrency) EPPFeeChkDataconstructor that only sets the currency.EPPFeeChkData(String aCurrency, EPPFeeCheckResult aResult) EPPFeeChkDataconstructor that sets a single result.EPPFeeChkData(String aCurrency, List<EPPFeeCheckResult> aResults) EPPFeeChkDataconstructor that sets a list of results. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCheckResult(EPPFeeCheckResult aResult) Adds a check result to the list of results.clone()CloneEPPFeeChkDatainstance.voidDecode theEPPFeeChkDataattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPFeeChkDatainstance.booleanImplements a deepEPPFeeChkDatacompare.Get the results of aEPPFeeChkDataResponse.Gets the currency value.Get the EPP command Namespace associated withEPPFeeChkData.voidsetCheckResult(EPPFeeCheckResult aResult) Sets the result of an individual domain name.voidsetCheckResults(List<EPPFeeCheckResult> aResults) Set the results of aEPPFeeChkDataResponse.voidsetCurrency(String aCurrency) Sets the currency value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPFeeChkData.- See Also:
-
ELM_NAME
XML root tag forEPPFeeChkData.- See Also:
-
-
Constructor Details
-
EPPFeeChkData
public EPPFeeChkData()EPPFeeChkDatadefault constructor. The results list will be empty. -
EPPFeeChkData
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
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
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 Details
-
getNamespace
Get the EPP command Namespace associated withEPPFeeChkData.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPFeeExtFactory.NS
-
getCurrency
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
Sets the currency value.- Parameters:
aCurrency- Currency value
-
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
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
Adds a check result to the list of results.- Parameters:
aResult- Check result to add to the list.
-
setCheckResult
Sets the result of an individual domain name.- Parameters:
aResult- Check result to set
-
encode
Encode 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
Decode 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
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Implements a deepEPPFeeChkDatacompare. -
clone
CloneEPPFeeChkDatainstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPFeeChkData - Throws:
CloneNotSupportedException- standard Object.clone exception
-