Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeTransform
java.lang.Object
com.verisign.epp.codec.fee.v1_0.EPPFeeTransform
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
- Direct Known Subclasses:
EPPFeeCreate,EPPFeeRenew,EPPFeeTransfer,EPPFeeUpdate
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.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPFeeTransform.EPPFeeTransform(EPPFeeValue aFee) Constructor forEPPFeeTransformthat takes a single fee.EPPFeeTransform(EPPFeeValue aFee, String aCurrency) Constructor forEPPFeeTransformthat takes a single fee and the optional currency.EPPFeeTransform(List<EPPFeeValue> aFees, String aCurrency) Constructor forEPPFeeTransformthat takes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFee(EPPFeeValue aFee) Adds a fee to the list of fees.clone()clone anEPPCodecComponent.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPFeeTransformwith this instance.Gets the currency value.getFees()Gets the list of fees if defined.protected abstract StringAbstract method that the sub-class must define to return the local name for the root element.booleanIs the currency defined?booleanhasFees()Are the fees defined?voidsetCurrency(String aCurrency) Sets the currency value.voidsetFees(List<EPPFeeValue> aFees) Sets the list of fees.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.verisign.epp.codec.gen.EPPCodecComponent
getNamespace
-
Constructor Details
-
EPPFeeTransform
public EPPFeeTransform()Default constructor forEPPFeeTransform. -
EPPFeeTransform
Constructor forEPPFeeTransformthat takes a single fee.- Parameters:
aFee- A single fee of the transform command
-
EPPFeeTransform
Constructor forEPPFeeTransformthat takes a single fee and the optional currency.- Parameters:
aFee- A single fee of the transform commandaCurrency- Currency of the fee
-
EPPFeeTransform
Constructor forEPPFeeTransformthat takes all attributes.- Parameters:
aFees- The fees of the transform commandaCurrency- Currency of the fees
-
-
Method Details
-
getLocalName
Abstract method that the sub-class must define to return the local name for the root element.- Returns:
- Local name of the root element of the transform command.
-
hasCurrency
public boolean hasCurrency()Is the currency defined?- Returns:
trueif the currency is defined;falseotherwise.
-
getCurrency
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
Sets the currency value.- Parameters:
aCurrency- Currency value
-
hasFees
public boolean hasFees()Are the fees defined?- Returns:
trueif the fees are defined;falseotherwise.
-
getFees
Gets the list of fees if defined.- Returns:
- List of fees if defined; empty list otherwise.
-
addFee
Adds a fee to the list of fees.- Parameters:
aFee- The fee to add.
-
setFees
Sets the list of fees.- Parameters:
aFees- The fees to set.
-
encode
Encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPFeeTransform
-
decode
Decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPFeeTransform - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPFeeTransformwith this instance.
-