Class EPPChangeData
java.lang.Object
com.verisign.epp.codec.changepoll.EPPChangeData
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Change Data information that is added as an extension to a poll message
containing the info response of the object that was changed to define the
what, when, who, and why for the change.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPChangePoll.EPPChangeData(EPPChangeOperation aOperation, Date aDate, String aSvrTrid, String aWho) Constructor forEPPChangePollthat takes the required attributes.EPPChangeData(EPPChangeOperation aOperation, Date aDate, String aSvrTrid, String aWho, String aState, EPPChangeCaseId aCaseId, String aReason, String aReasonLang) Constructor forEPPChangePollthat takes the all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPChangePollwith this instance.Gets the case identifier for the change.getDate()Gets the date and time when the operation was executed.Returns the XML namespace associated with theEPPCodecComponent.Gets the transform operation executed on the object.Gets the reason value.Gets the reason language value.getState()Gets whether the object reflects the state before or after the operation.Gets the server transaction identifier of the operation.getWho()Gets who executed the operation.booleanIs the case identifier defined?booleanIs the reason defined?booleanIs the reason language defined?voidsetCaseId(EPPChangeCaseId aCaseId) Sets the case identifier for the change.voidSets the date and time when the operation was executed.voidsetOperation(EPPChangeOperation aOperation) Sets the transform operation executed on the object.voidSets the reason value.voidsetReasonLang(String aReasonLang) Sets the reason language value.voidSets whether the object reflects the state before or after the operation.voidsetSvrTrid(String aSvrTrid) Sets the server transaction identifier of the operation.voidSets who executed the operation.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPChangePoll.- See Also:
-
ELM_NAME
XML root tag forEPPChangePoll.- See Also:
-
STATE_BEFORE
Object reflects the state before the operation.- See Also:
-
STATE_AFTER
Object reflects the state after the operation.- See Also:
-
-
Constructor Details
-
EPPChangeData
public EPPChangeData()Default constructor forEPPChangePoll. -
EPPChangeData
Constructor forEPPChangePollthat takes the required attributes.- Parameters:
aOperation- Transform operation executed on the object.aDate- Date and time when the operation was executed.aSvrTrid- Server transaction identifier of the operation.aWho- Who executed the operation.
-
EPPChangeData
public EPPChangeData(EPPChangeOperation aOperation, Date aDate, String aSvrTrid, String aWho, String aState, EPPChangeCaseId aCaseId, String aReason, String aReasonLang) Constructor forEPPChangePollthat takes the all attributes.- Parameters:
aOperation- Transform operation executed on the object.aDate- Date and time when the operation was executed.aSvrTrid- Server transaction identifier of the operation.aWho- Who executed the operation.aState- Does the object reflect the state before or after the operation usingSTATE_BEFOREandSTATE_AFTERconstants, respectively.aCaseId- Optional case identifier for the change. Set tonullif there is no case.aReason- Reason for executing the operation. Set tonullfor no reason.aReasonLang- Language for the reason. Set tonullto use the default value of "en".
-
-
Method Details
-
getState
Gets whether the object reflects the state before or after the operation.- Returns:
- Either
STATE_BEFOREto indicate that the object reflects the before state orSTATE_AFTERto indicate that the object reflects the after state.
-
setState
Sets whether the object reflects the state before or after the operation.- Parameters:
aState-STATE_BEFOREconstant for before state andSTATE_AFTERfor after state.
-
getOperation
Gets the transform operation executed on the object.- Returns:
- The transform operation if defined;
nullotherwise.
-
setOperation
Sets the transform operation executed on the object.- Parameters:
aOperation- The transform operation executed on the object..
-
getDate
Gets the date and time when the operation was executed.- Returns:
- The date and time when the operation was executed if defined;
nullotherwise.
-
setDate
Sets the date and time when the operation was executed.- Parameters:
aDate- The date and time when the operation was executed.
-
getSvrTrid
Gets the server transaction identifier of the operation.- Returns:
- the svrTrid Server transaction identifier of the operation if
defined;
nullotherwise.
-
setSvrTrid
Sets the server transaction identifier of the operation.- Parameters:
aSvrTrid- The server transaction identifier of the operation.
-
getWho
Gets who executed the operation.- Returns:
- Who executed the operation if defined;
nullotherwise.
-
setWho
Sets who executed the operation.- Parameters:
aWho- Who executed the operation.
-
hasCaseId
public boolean hasCaseId()Is the case identifier defined?- Returns:
trueif the case identifier is defined;falseotherwise.
-
getCaseId
Gets the case identifier for the change.- Returns:
- Case identifier if defined;
nullotherwise.
-
setCaseId
Sets the case identifier for the change.- Parameters:
aCaseId- The case identifier for the change.
-
hasReason
public boolean hasReason()Is the reason defined?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
Gets the reason value.- Returns:
- Reason value if defined;
nullotherwise.
-
setReason
Sets the reason value.- Parameters:
aReason- Reason for executing the operation.
-
hasReasonLang
public boolean hasReasonLang()Is the reason language defined?- Returns:
trueif the reason language is defined;falseotherwise.
-
getReasonLang
Gets the reason language value.- Returns:
- Reason language if defined;
nullotherwise.
-
setReasonLang
Sets the reason language value.- Parameters:
aReasonLang- Reason language for reason 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 encodingEPPChangePoll
-
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 anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPChangePoll - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPChangePollwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-