public class EPPFeeCredit extends java.lang.Object implements EPPCodecComponent
EPPFeeCredit represents the credit value information returned by
the server.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the phase local name
|
static java.lang.String |
ELM_NAME
Constant for the phase qualified name (prefix and local name)
|
| Constructor and Description |
|---|
EPPFeeCredit()
Default constructor.
|
EPPFeeCredit(java.math.BigDecimal aCredit)
Create
EPPFeeCredit instance with the required credit value. |
EPPFeeCredit(java.math.BigDecimal aCredit,
java.lang.String aDescription)
Create
EPPFeeCredit instance with the required credit value
and the optional description. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clone
EPPFeeCredit. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPFeeCredit element aElement DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPFeeCredit instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPFeeCredit compare. |
java.math.BigDecimal |
getCredit()
Gets the credit value.
|
java.lang.String |
getDescription()
Gets the description value.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
boolean |
hasDescription()
Is the description defined?
|
void |
setCredit(java.math.BigDecimal aCredit)
Sets the credit value.
|
void |
setDescription(java.lang.String aDescription)
Sets the description 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
public static final java.lang.String ELM_NAME
public EPPFeeCredit()
setCredit(BigDecimal) method.public EPPFeeCredit(java.math.BigDecimal aCredit)
EPPFeeCredit instance with the required credit value.aCredit - The credit valuepublic EPPFeeCredit(java.math.BigDecimal aCredit,
java.lang.String aDescription)
EPPFeeCredit instance with the required credit value
and the optional description.aCredit - The credit valueaDescription - Human-readable descriptionpublic boolean hasDescription()
true if the description is defined;
false otherwise.public java.lang.String getDescription()
null otherwise.public void setDescription(java.lang.String aDescription)
aDescription - Description value.public java.math.BigDecimal getCredit()
public void setCredit(java.math.BigDecimal aCredit)
aCredit - Credit valuepublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPFeeCredit.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPFeeCreditjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPFeeCredit element aElement DOM Element tree.decode in interface EPPCodecComponentaElement - - Root DOM Element to decode EPPFeeCredit from.EPPDecodeException - Unable to decode aElementpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPFeeCredit instance.encode in interface EPPCodecComponentaDocument - - DOM Document that is being built. Used as an Element
factory.EPPFeeCredit instance.EPPEncodeException - - Unable to encode EPPFeeCredit instance.public boolean equals(java.lang.Object aObject)
EPPFeeCredit compare.equals in class java.lang.ObjectaObject - EPPFeeCredit instance to compare withtrue if equal; false otherwisepublic 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 java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.