Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeCheckResult
java.lang.Object
com.verisign.epp.codec.fee.v1_0.EPPFeeCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPFeeCheckResult represents a fee result to a check.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPFeeCheckResult.EPPFeeCheckResult(String aObjID, boolean aAvailable) Constructor forEPPFeeCheckResultthat only takes the identifier (domain name) and the available flag.EPPFeeCheckResult(String aObjID, EPPFeeCommandData aCommand) Constructor forEPPFeeCheckResultthat takes the identifier (domain name) and a single command for an available fee.EPPFeeCheckResult(String aObjID, String aReason) Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and the reason that the fee data is unavailable.EPPFeeCheckResult(String aObjID, String aReason, String aLanguage) Constructor forEPPFeeCheckResultthat takes the object identifier (domain name), the reason that the fee data is unavailable, and the language of the reason.EPPFeeCheckResult(String aObjID, String aClassification, String aReason, String aLanguage) Constructor forEPPFeeCheckResultthat takes all attributes.EPPFeeCheckResult(String aObjID, List<EPPFeeCommandData> aCommands) Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and a list of commands for an available fee. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommand(EPPFeeCommandData 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 ofEPPFeeCheckResultwith this instance.Gets the classification.Gets the list of commands if defined.Gets reason languageReturns the XML namespace associated with theEPPCodecComponent.getObjID()Gets the object identifier value.Gets the reason value.booleanIs the classification defined?booleanAre the commands defined?booleanIs the reason defined if the available attribute isfalse?booleanIs the fee information available? SeegetReason()to get the optional reason when available isfalse.voidsetAvailable(boolean aAvailable) Sets the fee information available value.voidsetClassification(String aClassification) Sets the classification.voidsetCommands(List<EPPFeeCommandData> aCommands) Sets the list of commands.voidsetLanguage(String aLanguage) Sets language attribute.voidSets the name value.voidSets the reason value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPFeeCheckResult.- See Also:
-
ELM_NAME
XML root tag forEPPFeeCheckResult.- See Also:
-
-
Constructor Details
-
EPPFeeCheckResult
public EPPFeeCheckResult()Default constructor forEPPFeeCheckResult. -
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat only takes the identifier (domain name) and the available flag.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aAvailable- Fee available flag. Iftrue, at least one fee command data element must be set and iffalsea reason should be set.
-
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat takes the identifier (domain name) and a single command for an available fee.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aCommand- Command fee data
-
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and a list of commands for an available fee.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aCommands- Command fee data
-
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and the reason that the fee data is unavailable.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aReason- Reason that the fee data is unavailable.
-
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat takes the object identifier (domain name), the reason that the fee data is unavailable, and the language of the reason.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aReason- Reason that the fee data is unavailable.aLanguage- Language of theaReasonvalue.
-
EPPFeeCheckResult
Constructor forEPPFeeCheckResultthat takes all attributes.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aClassification- Fee classification for object. Set tonullfor no classification.aReason- Reason that the fee data is unavailable.aLanguage- Language of theaReasonvalue.
-
-
Method Details
-
getObjID
Gets the object identifier value.- Returns:
- Object identifier value if defined;
nullotherwise.
-
setObjID
Sets the name value.- Parameters:
aObjID- Object identifier value
-
hasClassification
public boolean hasClassification()Is the classification defined?- Returns:
trueif the classification is defined;falseotherwise.
-
getClassification
Gets the classification.- Returns:
- The classification value if defined;
nullotherwise.
-
setClassification
Sets the classification.- Parameters:
aClassification- the classification to set
-
isAvailable
public boolean isAvailable()Is the fee information available? SeegetReason()to get the optional reason when available isfalse.- Returns:
trueif the fee information is available;falseotherwise.
-
setAvailable
public void setAvailable(boolean aAvailable) Sets the fee information available value. SeesetReason(String)to set the optional reason when available isfalse.- Parameters:
aAvailable-trueif the fee is available;falseotherwise.
-
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.
-
hasReason
public boolean hasReason()Is the reason defined if the available attribute isfalse?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
Gets the reason value.- Returns:
- Reason if defined;
nullotherwise.
-
setReason
Sets the reason value.- Parameters:
aReason- reason value
-
getLanguage
Gets reason language- Returns:
- Reason language
-
setLanguage
Sets language attribute.- Parameters:
aLanguage- Sets reason language attribute.
-
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 encodingEPPFeeCheckResult
-
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
EPPFeeCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPFeeCheckResultwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-