Class EPPChangeData
- java.lang.Object
-
- com.verisign.epp.codec.changepoll.EPPChangeData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPChangeData extends java.lang.Object implements EPPCodecComponent
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPChangePoll.static java.lang.StringELM_NAMEXML root tag forEPPChangePoll.static java.lang.StringSTATE_AFTERObject reflects the state after the operation.static java.lang.StringSTATE_BEFOREObject reflects the state before the operation.
-
Constructor Summary
Constructors Constructor Description EPPChangeData()Default constructor forEPPChangePoll.EPPChangeData(EPPChangeOperation aOperation, java.util.Date aDate, java.lang.String aSvrTrid, java.lang.String aWho)Constructor forEPPChangePollthat takes the required attributes.EPPChangeData(EPPChangeOperation aOperation, java.util.Date aDate, java.lang.String aSvrTrid, java.lang.String aWho, java.lang.String aState, EPPChangeCaseId aCaseId, java.lang.String aReason, java.lang.String aReasonLang)Constructor forEPPChangePollthat takes the all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()clone anEPPCodecComponent.voiddecode(org.w3c.dom.Element aElement)decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPChangePollwith this instance.EPPChangeCaseIdgetCaseId()Gets the case identifier for the change.java.util.DategetDate()Gets the date and time when the operation was executed.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPChangeOperationgetOperation()Gets the transform operation executed on the object.java.lang.StringgetReason()Gets the reason value.java.lang.StringgetReasonLang()Gets the reason language value.java.lang.StringgetState()Gets whether the object reflects the state before or after the operation.java.lang.StringgetSvrTrid()Gets the server transaction identifier of the operation.java.lang.StringgetWho()Gets who executed the operation.booleanhasCaseId()Is the case identifier defined?booleanhasReason()Is the reason defined?booleanhasReasonLang()Is the reason language defined?voidsetCaseId(EPPChangeCaseId aCaseId)Sets the case identifier for the change.voidsetDate(java.util.Date aDate)Sets the date and time when the operation was executed.voidsetOperation(EPPChangeOperation aOperation)Sets the transform operation executed on the object.voidsetReason(java.lang.String aReason)Sets the reason value.voidsetReasonLang(java.lang.String aReasonLang)Sets the reason language value.voidsetState(java.lang.String aState)Sets whether the object reflects the state before or after the operation.voidsetSvrTrid(java.lang.String aSvrTrid)Sets the server transaction identifier of the operation.voidsetWho(java.lang.String aWho)Sets who executed the operation.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
XML local name forEPPChangePoll.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPChangePoll.- See Also:
- Constant Field Values
-
STATE_BEFORE
public static final java.lang.String STATE_BEFORE
Object reflects the state before the operation.- See Also:
- Constant Field Values
-
STATE_AFTER
public static final java.lang.String STATE_AFTER
Object reflects the state after the operation.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPChangeData
public EPPChangeData()
Default constructor forEPPChangePoll.
-
EPPChangeData
public EPPChangeData(EPPChangeOperation aOperation, java.util.Date aDate, java.lang.String aSvrTrid, java.lang.String aWho)
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, java.util.Date aDate, java.lang.String aSvrTrid, java.lang.String aWho, java.lang.String aState, EPPChangeCaseId aCaseId, java.lang.String aReason, java.lang.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 Detail
-
getState
public java.lang.String 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
public void setState(java.lang.String aState)
Sets whether the object reflects the state before or after the operation.- Parameters:
aState-STATE_BEFOREconstant for before state andSTATE_AFTERfor after state.
-
getOperation
public EPPChangeOperation getOperation()
Gets the transform operation executed on the object.- Returns:
- The transform operation if defined;
nullotherwise.
-
setOperation
public void setOperation(EPPChangeOperation aOperation)
Sets the transform operation executed on the object.- Parameters:
aOperation- The transform operation executed on the object..
-
getDate
public java.util.Date 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
public void setDate(java.util.Date aDate)
Sets the date and time when the operation was executed.- Parameters:
aDate- The date and time when the operation was executed.
-
getSvrTrid
public java.lang.String getSvrTrid()
Gets the server transaction identifier of the operation.- Returns:
- the svrTrid Server transaction identifier of the operation if
defined;
nullotherwise.
-
setSvrTrid
public void setSvrTrid(java.lang.String aSvrTrid)
Sets the server transaction identifier of the operation.- Parameters:
aSvrTrid- The server transaction identifier of the operation.
-
getWho
public java.lang.String getWho()
Gets who executed the operation.- Returns:
- Who executed the operation if defined;
nullotherwise.
-
setWho
public void setWho(java.lang.String aWho)
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
public EPPChangeCaseId getCaseId()
Gets the case identifier for the change.- Returns:
- Case identifier if defined;
nullotherwise.
-
setCaseId
public void setCaseId(EPPChangeCaseId aCaseId)
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
public java.lang.String getReason()
Gets the reason value.- Returns:
- Reason value if defined;
nullotherwise.
-
setReason
public void setReason(java.lang.String aReason)
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
public java.lang.String getReasonLang()
Gets the reason language value.- Returns:
- Reason language if defined;
nullotherwise.
-
setReasonLang
public void setReasonLang(java.lang.String aReasonLang)
Sets the reason language value.- Parameters:
aReasonLang- Reason language for reason value.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPChangePoll - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
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.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPChangePollwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-