|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.fee.v11.EPPFeeTransform
public abstract class EPPFeeTransform
Abstract base class for the transform commands (create, renew, update, transfer) for enabling the client to pass the expected fee for a billable transform command.
Constructor Summary | |
---|---|
EPPFeeTransform()
Default constructor for EPPFeeTransform . |
|
EPPFeeTransform(EPPFeeValue aFee)
Constructor for EPPFeeTransform that takes a single fee. |
|
EPPFeeTransform(EPPFeeValue aFee,
java.lang.String aCurrency)
Constructor for EPPFeeTransform that takes a single fee
and the optional currency. |
|
EPPFeeTransform(java.util.List<EPPFeeValue> aFees,
java.lang.String aCurrency)
Constructor for EPPFeeTransform that takes all attributes. |
Method Summary | |
---|---|
void |
addFee(EPPFeeValue aFee)
Adds a fee to the list of fees. |
java.lang.Object |
clone()
clone an EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
Decode a DOM element tree to initialize the instance attributes. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode instance into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPFeeTransform with this instance. |
java.lang.String |
getCurrency()
Gets the currency value. |
java.util.List<EPPFeeValue> |
getFees()
Gets the list of fees if defined. |
protected abstract java.lang.String |
getLocalName()
Abstract method that the sub-class must define to return the local name for the root element. |
boolean |
hasCurrency()
Is the currency defined? |
boolean |
hasFees()
Are the fees defined? |
void |
setCurrency(java.lang.String aCurrency)
Sets the currency value. |
void |
setFees(java.util.List<EPPFeeValue> aFees)
Sets the list of fees. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EPPFeeTransform()
EPPFeeTransform
.
public EPPFeeTransform(EPPFeeValue aFee)
EPPFeeTransform
that takes a single fee.
aFee
- A single fee of the transform commandpublic EPPFeeTransform(EPPFeeValue aFee, java.lang.String aCurrency)
EPPFeeTransform
that takes a single fee
and the optional currency.
aFee
- A single fee of the transform commandaCurrency
- Currency of the feepublic EPPFeeTransform(java.util.List<EPPFeeValue> aFees, java.lang.String aCurrency)
EPPFeeTransform
that takes all attributes.
aFees
- The fees of the transform commandaCurrency
- Currency of the feesMethod Detail |
---|
protected abstract java.lang.String getLocalName()
public boolean hasCurrency()
true
if the currency is defined; false
otherwise.public java.lang.String getCurrency()
null
otherwise.public void setCurrency(java.lang.String aCurrency)
aCurrency
- Currency valuepublic boolean hasFees()
true
if the fees are defined; false
otherwise.public java.util.List<EPPFeeValue> getFees()
public void addFee(EPPFeeValue aFee)
aFee
- The fee to add.public void setFees(java.util.List<EPPFeeValue> aFees)
aFees
- The fees to set.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factory
EPPEncodeException
- Error encoding EPPFeeTransform
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values.
decode
in interface EPPCodecComponent
aElement
- Element
to decode
EPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPFeeTransform
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPFeeTransform
with this instance.
equals
in class java.lang.Object
aObject
- Object to compare with.
true
if equal; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |