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,Serializable,Cloneable
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:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPFeeCheck.EPPFeeCheck(EPPFeeCommand aCommand) Constructor forEPPFeeCheckthat takes a single command.EPPFeeCheck(EPPFeeCommand aCommand, String aCurrency) Constructor forEPPFeeCheckthat takes a single command attribute and the optional currency.EPPFeeCheck(List<EPPFeeCommand> aCommands) Constructor forEPPFeeCheckthat takes a list of commands.EPPFeeCheck(List<EPPFeeCommand> aCommands, String aCurrency) Constructor forEPPFeeCheckthat takes a list of commands attribute and the optional currency. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(EPPFeeCommand aCommand) Adds a command to the list of commands.clone()Clone anEPPCodecComponentinstance.voidDecode a DOM element tree to initialize the instance attributes.Encode instance into a DOM element tree.booleanCompare an instance ofEPPFeeCheckwith this instance.Gets the list of commands if defined.Gets the currency value.Returns the XML namespace associated with theEPPCodecComponent.booleanAre the commands defined?booleanIs the currency defined?voidsetCommands(List<EPPFeeCommand> aCommands) Sets the list of commands.voidsetCurrency(String aCurrency) Sets the currency value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPFeeCheck.- See Also:
-
ELM_NAME
XML root tag forEPPFeeCheck.- See Also:
-
-
Constructor Details
-
EPPFeeCheck
public EPPFeeCheck()Default constructor forEPPFeeCheck. -
EPPFeeCheck
Constructor forEPPFeeCheckthat takes a single command.- Parameters:
aCommand- Command to check
-
EPPFeeCheck
Constructor forEPPFeeCheckthat takes a list of commands.- Parameters:
aCommands- List of commands to check
-
EPPFeeCheck
Constructor forEPPFeeCheckthat takes a single command attribute and the optional currency.- Parameters:
aCommand- Command to checkaCurrency- OPTIONAL desired currency to return
-
EPPFeeCheck
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 Details
-
hasCommands
public boolean hasCommands()Are the commands defined?- Returns:
trueif the commands are defined;falseotherwise.
-
getCommands
Gets the list of commands if defined.- Returns:
- List of commands if defined; empty list otherwise.
-
addCommand
Adds a command to the list of commands.- Parameters:
aCommand- The command to add.
-
setCommands
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
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
Sets the currency value.- Parameters:
aCurrency- Currency value
-
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 encodingEPPFeeCheck
-
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 anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPFeeCheck - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPFeeCheckwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-