public class EPPFeeCheck extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPFeeCheck. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPFeeCheck. |
| Constructor and Description |
|---|
EPPFeeCheck()
Default constructor for
EPPFeeCheck. |
EPPFeeCheck(EPPFeeCommand aCommand)
Constructor for
EPPFeeCheck that takes a single command. |
EPPFeeCheck(EPPFeeCommand aCommand,
java.lang.String aCurrency)
Constructor for
EPPFeeCheck that takes a single command
attribute and the optional currency. |
EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands)
Constructor for
EPPFeeCheck that takes a list of commands. |
EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands,
java.lang.String aCurrency)
Constructor for
EPPFeeCheck that takes a list of commands
attribute and the optional currency. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCommand(EPPFeeCommand aCommand)
Adds a command to the list of commands.
|
java.lang.Object |
clone()
Clone an
EPPCodecComponent instance. |
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
EPPFeeCheck with this instance. |
java.util.List<EPPFeeCommand> |
getCommands()
Gets the list of commands if defined.
|
java.lang.String |
getCurrency()
Gets the currency value.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
boolean |
hasCommands()
Are the commands defined?
|
boolean |
hasCurrency()
Is the currency defined?
|
void |
setCommands(java.util.List<EPPFeeCommand> aCommands)
Sets the list of commands.
|
void |
setCurrency(java.lang.String aCurrency)
Sets the currency 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
EPPFeeCheck.public static final java.lang.String ELM_NAME
EPPFeeCheck.public EPPFeeCheck()
EPPFeeCheck.public EPPFeeCheck(EPPFeeCommand aCommand)
EPPFeeCheck that takes a single command.aCommand - Command to checkpublic EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands)
EPPFeeCheck that takes a list of commands.aCommands - List of commands to checkpublic EPPFeeCheck(EPPFeeCommand aCommand, java.lang.String aCurrency)
EPPFeeCheck that takes a single command
attribute and the optional currency.aCommand - Command to checkaCurrency - OPTIONAL desired currency to returnpublic EPPFeeCheck(java.util.List<EPPFeeCommand> aCommands, java.lang.String aCurrency)
EPPFeeCheck that takes a list of commands
attribute and the optional currency.aCommands - List of commands to checkaCurrency - OPTIONAL desired currency to returnpublic boolean hasCommands()
true if the commands are defined; false
otherwise.public java.util.List<EPPFeeCommand> getCommands()
public void addCommand(EPPFeeCommand aCommand)
aCommand - The command to add.public void setCommands(java.util.List<EPPFeeCommand> aCommands)
aCommands - The commands to set.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 org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - DOM Document, which acts is an Element factoryEPPEncodeException - Error encoding EPPFeeCheckpublic 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 EPPCodecComponentaElement - Element to decodeEPPDecodeException - Error decoding Elementpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponent instance.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPFeeCheckjava.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.ObjectString if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPFeeCheck with this instance.equals in class java.lang.ObjectaObject - Object to compare with.true if equal; false otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.