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,Serializable,Cloneable
- Direct Known Subclasses:
EPPFeeCommandData
The command along with the optional phase, sub-phase, and custom name that
the fee is associated with.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringOPTIONAL customName attribute name used when the command is set toCommand.CUSTOM.static final Stringname attribute that is set with the Command value.static final StringOPTIONAL phase attribute name that defines the phase of the command.static final StringOPTIONAL subphase attribute name that defines the sub-phase of the command.static final StringConstant for the phase local namestatic final StringConstant for the phase qualified name (prefix and local name) -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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, String aSubPhase) CreateEPPFeeCommandinstance with a defined command, phase, and sub-phase value.EPPFeeCommand(Command aCommand, String aCustomName) CreateEPPFeeCommandinstance with a defined command value and custom name value.EPPFeeCommand(Command aCommand, String aCustomName, Phase aPhase, String aSubPhase, EPPFeePeriod aPeriod) CreateEPPFeeCommandinstance with a defined command value and custom name value.EPPFeeCommand(EPPFeeCommand aCommand) Instantiate instance using an existingEPPFeeCommandinstance. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPFeeCommandinstance.voidDecode theEPPFeeCommandelement aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPFeeCommandinstance.booleanImplements a deepEPPFeeCommandcompare.Gets the command value.Gets the custom name value.Returns the XML namespace associated with theEPPCodecComponent.Gets the period value.getPhase()Gets the OPTIONAL phase value.Gets the OPTIONAL sub-phase value.booleanIs the command defined?booleanIs the custom name defined?booleanIs the period defined?booleanhasPhase()Is the phase defined?booleanIs the sub-phase defined?voidsetCommand(Command aCommand) Sets the command value.voidsetCustomName(String aCustomName) Sets the custom name value when the command is set toCommand.CUSTOM.voidsetPeriod(EPPFeePeriod aPeriod) Sets the optional period value.voidSets the OPTIONAL phase value.voidsetSubPhase(String aSubPhase) Sets the OPTIONAL sub-phase value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the phase local name- See Also:
-
ELM_NAME
Constant for the phase qualified name (prefix and local name)- See Also:
-
ATTR_PHASE
OPTIONAL phase attribute name that defines the phase of the command.- See Also:
-
ATTR_SUBPHASE
OPTIONAL subphase attribute name that defines the sub-phase of the command.- See Also:
-
ATTR_NAME
name attribute that is set with the Command value.- See Also:
-
ATTR_CUSTOMNAME
OPTIONAL customName attribute name used when the command is set toCommand.CUSTOM.- See Also:
-
-
Constructor Details
-
EPPFeeCommand
public EPPFeeCommand()Default constructor. -
EPPFeeCommand
CreateEPPFeeCommandinstance with a defined command value.- Parameters:
aCommand- Command value.
-
EPPFeeCommand
CreateEPPFeeCommandinstance with a defined command value and period.- Parameters:
aCommand- Command value.aPeriod- Command period
-
EPPFeeCommand
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
CreateEPPFeeCommandinstance with a defined command and phase value.- Parameters:
aCommand- Command value.aPhase- Phase value.
-
EPPFeeCommand
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, String aCustomName, Phase aPhase, 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
Instantiate instance using an existingEPPFeeCommandinstance. This is equivalent to cloning theEPPFeeCommandinstance.- Parameters:
aCommand- instance to initialize theEPPFeeCommandinstance with.
-
-
Method Details
-
hasCommand
public boolean hasCommand()Is the command defined?- Returns:
trueif the command is defined;falseotherwise.
-
getCommand
Gets the command value.- Returns:
- Command value if defined;
nullotherwise.
-
setCommand
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
Gets the custom name value.- Returns:
- Custom name value if defined;
nullotherwise.
-
setCustomName
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
Gets the OPTIONAL phase value.- Returns:
- Phase value if defined;
nullotherwise.
-
setPhase
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
Gets the OPTIONAL sub-phase value.- Returns:
- Sub-phase value if defined;
nullotherwise.
-
setSubPhase
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
Gets the period value.- Returns:
- Period if defined;
nullotherwise.
-
setPeriod
Sets the optional period value.- Parameters:
aPeriod- Period value. Set tonullto specify no period.
-
clone
CloneEPPFeeCommandinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPFeeCommand - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPFeeCommandelement aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decodeEPPFeeCommandfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode 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
Implements a deepEPPFeeCommandcompare. -
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-