Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeCredit
java.lang.Object
com.verisign.epp.codec.fee.v1_0.EPPFeeCredit
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPFeeCredit represents the credit value information returned by
the server.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.EPPFeeCredit(BigDecimal aCredit) CreateEPPFeeCreditinstance with the required credit value.EPPFeeCredit(BigDecimal aCredit, String aDescription) CreateEPPFeeCreditinstance with the required credit value and the optional description.EPPFeeCredit(BigDecimal aCredit, String aDescription, String aLanguage) CreateEPPFeeCreditinstance with all attributes -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPFeeCredit.voidDecode theEPPFeeCreditelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPFeeCreditinstance.booleanimplements a deepEPPFeeCreditcompare.Gets the credit value.Gets the description value.Gets description language.Returns the XML namespace associated with theEPPCodecComponent.booleanIs the description defined?voidsetCredit(BigDecimal aCredit) Sets the credit value.voidsetDescription(String aDescription) Sets the description value.voidsetLanguage(String aLanguage) Sets description language.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
DEFAULT_LANG
Default value for the description language.- See Also:
-
-
Constructor Details
-
EPPFeeCredit
public EPPFeeCredit()Default constructor. The command value MUST be set using thesetCredit(BigDecimal)method. -
EPPFeeCredit
CreateEPPFeeCreditinstance with the required credit value.- Parameters:
aCredit- The credit value
-
EPPFeeCredit
CreateEPPFeeCreditinstance with the required credit value and the optional description.- Parameters:
aCredit- The credit valueaDescription- Human-readable description
-
EPPFeeCredit
CreateEPPFeeCreditinstance with all attributes- Parameters:
aCredit- The credit valueaDescription- Human-readable descriptionaLanguage- Optional language ofaDescription. Set tonullto set the default language, which is "en".
-
-
Method Details
-
hasDescription
public boolean hasDescription()Is the description defined?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the description value.- Returns:
- Description if defined;
nullotherwise.
-
setDescription
Sets the description value.- Parameters:
aDescription- Description value.
-
getLanguage
Gets description language.- Returns:
- Description language with the default of
DEFAULT_LANG.
-
setLanguage
Sets description language.- Parameters:
aLanguage- Sets description language. Set tonullto set to the default value.
-
getCredit
Gets the credit value.- Returns:
- Credit value
-
setCredit
Sets the credit value.- Parameters:
aCredit- Credit value
-
clone
CloneEPPFeeCredit.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPFeeCredit - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPFeeCreditelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPFeeCreditfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of theEPPFeeCreditinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPFeeCreditinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPFeeCreditinstance.
-
equals
implements a deepEPPFeeCreditcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-