Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeCommand
- java.lang.Object
-
- com.verisign.epp.codec.fee.v1_0.EPPFeeCommand
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
- Direct Known Subclasses:
EPPFeeCommandData
public class EPPFeeCommand extends java.lang.Object implements EPPCodecComponent
The command along with the optional phase, sub-phase, and custom name that the fee is associated with.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTR_CUSTOMNAMEOPTIONAL customName attribute name used when the command is set toCommand.CUSTOM.static java.lang.StringATTR_NAMEname attribute that is set with the Command value.static java.lang.StringATTR_PHASEOPTIONAL phase attribute name that defines the phase of the command.static java.lang.StringATTR_SUBPHASEOPTIONAL subphase attribute name that defines the sub-phase of the command.static java.lang.StringELM_LOCALNAMEConstant for the phase local namestatic java.lang.StringELM_NAMEConstant for the phase qualified name (prefix and local name)
-
Constructor Summary
Constructors Constructor Description EPPFeeCommand()Default constructor.EPPFeeCommand(Command aCommand)CreateEPPFeeCommandinstance with a defined command value.EPPFeeCommand(Command aCommand, EPPFeePeriod aPeriod)CreateEPPFeeCommandinstance with a defined command value and period.EPPFeeCommand(Command aCommand, Phase aPhase)CreateEPPFeeCommandinstance with a defined command and phase value.EPPFeeCommand(Command aCommand, Phase aPhase, java.lang.String aSubPhase)CreateEPPFeeCommandinstance with a defined command, phase, and sub-phase value.EPPFeeCommand(Command aCommand, java.lang.String aCustomName)CreateEPPFeeCommandinstance with a defined command value and custom name value.EPPFeeCommand(Command aCommand, java.lang.String aCustomName, Phase aPhase, java.lang.String aSubPhase, EPPFeePeriod aPeriod)CreateEPPFeeCommandinstance with a defined command value and custom name value.EPPFeeCommand(EPPFeeCommand aCommand)Instantiate instance using an existingEPPFeeCommandinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPFeeCommandinstance.voiddecode(org.w3c.dom.Element aElement)Decode theEPPFeeCommandelement aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPFeeCommandinstance.booleanequals(java.lang.Object aObject)Implements a deepEPPFeeCommandcompare.CommandgetCommand()Gets the command value.java.lang.StringgetCustomName()Gets the custom name value.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPFeePeriodgetPeriod()Gets the period value.PhasegetPhase()Gets the OPTIONAL phase value.java.lang.StringgetSubPhase()Gets the OPTIONAL sub-phase value.booleanhasCommand()Is the command defined?booleanhasCustomName()Is the custom name defined?booleanhasPeriod()Is the period defined?booleanhasPhase()Is the phase defined?booleanhasSubPhase()Is the sub-phase defined?voidsetCommand(Command aCommand)Sets the command value.voidsetCustomName(java.lang.String aCustomName)Sets the custom name value when the command is set toCommand.CUSTOM.voidsetPeriod(EPPFeePeriod aPeriod)Sets the optional period value.voidsetPhase(Phase aPhase)Sets the OPTIONAL phase value.voidsetSubPhase(java.lang.String aSubPhase)Sets the OPTIONAL sub-phase 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
Constant for the phase local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
- Constant Field Values
-
ATTR_PHASE
public static final java.lang.String ATTR_PHASE
OPTIONAL phase attribute name that defines the phase of the command.- See Also:
- Constant Field Values
-
ATTR_SUBPHASE
public static final java.lang.String ATTR_SUBPHASE
OPTIONAL subphase attribute name that defines the sub-phase of the command.- See Also:
- Constant Field Values
-
ATTR_NAME
public static final java.lang.String ATTR_NAME
name attribute that is set with the Command value.- See Also:
- Constant Field Values
-
ATTR_CUSTOMNAME
public static final java.lang.String ATTR_CUSTOMNAME
OPTIONAL customName attribute name used when the command is set toCommand.CUSTOM.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPFeeCommand
public EPPFeeCommand()
Default constructor.
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand)
CreateEPPFeeCommandinstance with a defined command value.- Parameters:
aCommand- Command value.
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand, EPPFeePeriod aPeriod)
CreateEPPFeeCommandinstance with a defined command value and period.- Parameters:
aCommand- Command value.aPeriod- Command period
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand, java.lang.String aCustomName)
CreateEPPFeeCommandinstance with a defined command value and custom name value.- Parameters:
aCommand- Command value, which should beCommand.CUSTOM.aCustomName- Custom name of the command.
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand, Phase aPhase)
CreateEPPFeeCommandinstance with a defined command and phase value.- Parameters:
aCommand- Command value.aPhase- Phase value.
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand, Phase aPhase, java.lang.String aSubPhase)
CreateEPPFeeCommandinstance with a defined command, phase, and sub-phase value.- Parameters:
aCommand- Command value.aPhase- Phase value.aSubPhase- Sub-phase value
-
EPPFeeCommand
public EPPFeeCommand(Command aCommand, java.lang.String aCustomName, Phase aPhase, java.lang.String aSubPhase, EPPFeePeriod aPeriod)
CreateEPPFeeCommandinstance with a defined command value and custom name value.- Parameters:
aCommand- Command value, which should beCommand.CUSTOM.aCustomName- Custom name of the command.aPhase- Phase value.aSubPhase- Sub-phase valueaPeriod- Command period
-
EPPFeeCommand
public EPPFeeCommand(EPPFeeCommand aCommand)
Instantiate instance using an existingEPPFeeCommandinstance. This is equivalent to cloning theEPPFeeCommandinstance.- Parameters:
aCommand- instance to initialize theEPPFeeCommandinstance with.
-
-
Method Detail
-
hasCommand
public boolean hasCommand()
Is the command defined?- Returns:
trueif the command is defined;falseotherwise.
-
getCommand
public Command getCommand()
Gets the command value.- Returns:
- Command value if defined;
nullotherwise.
-
setCommand
public void setCommand(Command aCommand)
Sets the command value.- Parameters:
aCommand- Command value.
-
hasCustomName
public boolean hasCustomName()
Is the custom name defined?- Returns:
trueif the custom name is defined;falseotherwise.
-
getCustomName
public java.lang.String getCustomName()
Gets the custom name value.- Returns:
- Custom name value if defined;
nullotherwise.
-
setCustomName
public void setCustomName(java.lang.String aCustomName)
Sets the custom name value when the command is set toCommand.CUSTOM.- Parameters:
aCustomName- Custom name value.
-
hasPhase
public boolean hasPhase()
Is the phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getPhase
public Phase getPhase()
Gets the OPTIONAL phase value.- Returns:
- Phase value if defined;
nullotherwise.
-
setPhase
public void setPhase(Phase aPhase)
Sets the OPTIONAL phase value.- Parameters:
aPhase- Phase value
-
hasSubPhase
public boolean hasSubPhase()
Is the sub-phase defined?- Returns:
trueif the phase is defined;falseotherwise.
-
getSubPhase
public java.lang.String getSubPhase()
Gets the OPTIONAL sub-phase value.- Returns:
- Sub-phase value if defined;
nullotherwise.
-
setSubPhase
public void setSubPhase(java.lang.String aSubPhase)
Sets the OPTIONAL sub-phase value.- Parameters:
aSubPhase- Sub-phase value.
-
hasPeriod
public boolean hasPeriod()
Is the period defined?- Returns:
trueif the period is defined;falseotherwise.
-
getPeriod
public EPPFeePeriod getPeriod()
Gets the period value.- Returns:
- Period if defined;
nullotherwise.
-
setPeriod
public void setPeriod(EPPFeePeriod aPeriod)
Sets the optional period value.- Parameters:
aPeriod- Period value. Set tonullto specify no period.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPFeeCommandinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPFeeCommand - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPFeeCommandelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPFeeCommandfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPFeeCommandinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the
EPPFeeCommandinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPFeeCommandinstance.
-
equals
public boolean equals(java.lang.Object aObject)
Implements a deepEPPFeeCommandcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPFeeCommandinstance to compare with- Returns:
trueif equal;falseotherwise
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-