Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeCheck
- java.lang.Object
-
- com.verisign.epp.codec.fee.v1_0.EPPFeeCheck
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPFeeCheck extends java.lang.Object implements EPPCodecComponent
Fee Check Extension that enables a client to pass a command along with optionally the currency, period, and fee class to apply to the objects in the check command.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPFeeCheck.static java.lang.StringELM_NAMEXML root tag forEPPFeeCheck.
-
Constructor Summary
Constructors Constructor Description EPPFeeCheck()Default constructor forEPPFeeCheck.EPPFeeCheck(EPPFeeCommand aCommand)Constructor forEPPFeeCheckthat takes a single command.EPPFeeCheck(EPPFeeCommand aCommand, java.lang.String aCurrency)Constructor forEPPFeeCheckthat takes a single command attribute and the optional currency.EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands)Constructor forEPPFeeCheckthat takes a list of commands.EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands, java.lang.String aCurrency)Constructor forEPPFeeCheckthat takes a list of commands attribute and the optional currency.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCommand(EPPFeeCommand aCommand)Adds a command to the list of commands.java.lang.Objectclone()Clone anEPPCodecComponentinstance.voiddecode(org.w3c.dom.Element aElement)Decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPFeeCheckwith this instance.java.util.List<EPPFeeCommand>getCommands()Gets the list of commands if defined.java.lang.StringgetCurrency()Gets the currency value.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanhasCommands()Are the commands defined?booleanhasCurrency()Is the currency defined?voidsetCommands(java.util.List<EPPFeeCommand> aCommands)Sets the list of commands.voidsetCurrency(java.lang.String aCurrency)Sets the currency value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPFeeCheck.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPFeeCheck.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPFeeCheck
public EPPFeeCheck()
Default constructor forEPPFeeCheck.
-
EPPFeeCheck
public EPPFeeCheck(EPPFeeCommand aCommand)
Constructor forEPPFeeCheckthat takes a single command.- Parameters:
aCommand- Command to check
-
EPPFeeCheck
public EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands)
Constructor forEPPFeeCheckthat takes a list of commands.- Parameters:
aCommands- List of commands to check
-
EPPFeeCheck
public EPPFeeCheck(EPPFeeCommand aCommand, java.lang.String aCurrency)
Constructor forEPPFeeCheckthat takes a single command attribute and the optional currency.- Parameters:
aCommand- Command to checkaCurrency- OPTIONAL desired currency to return
-
EPPFeeCheck
public EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands, java.lang.String aCurrency)
Constructor forEPPFeeCheckthat takes a list of commands attribute and the optional currency.- Parameters:
aCommands- List of commands to checkaCurrency- OPTIONAL desired currency to return
-
-
Method Detail
-
hasCommands
public boolean hasCommands()
Are the commands defined?- Returns:
trueif the commands are defined;falseotherwise.
-
getCommands
public java.util.List<EPPFeeCommand> getCommands()
Gets the list of commands if defined.- Returns:
- List of commands if defined; empty list otherwise.
-
addCommand
public void addCommand(EPPFeeCommand aCommand)
Adds a command to the list of commands.- Parameters:
aCommand- The command to add.
-
setCommands
public void setCommands(java.util.List<EPPFeeCommand> aCommands)
Sets the list of commands.- Parameters:
aCommands- The commands to set.
-
hasCurrency
public boolean hasCurrency()
Is the currency defined?- Returns:
trueif the currency is defined;falseotherwise.
-
getCurrency
public java.lang.String getCurrency()
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
public void setCurrency(java.lang.String aCurrency)
Sets the currency value.- Parameters:
aCurrency- Currency value
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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 encodingEPPFeeCheck
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPFeeCheck - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPFeeCheckwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-