Package com.verisign.epp.codec.contact
Class EPPContactUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- com.verisign.epp.codec.contact.EPPContactUpdateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPContactUpdateCmd extends EPPUpdateCmd
Represents an EPP Host <update> command. The EPP <update> command provides a transform operation that allows a client to modify the attributes of a contact object. In addition to the standard EPP command elements, the <update> command MUST contain a <contact:update> element that identifies the contact namespace and the location of the contact schema. The <contact:update> element SHALL contain the following child elements:
- A <contact:id> element that contains the server-unique identifier
of the contact object to be updated. Use
getIdandsetIdto get and set the element. - An OPTIONAL <contact:add> element that contains attribute values to
be added to the host object. Use
getAddandsetAddto get and set the element. - An OPTIONAL <contact:rem> element that contains attribute values to
be removed from the host object. Use
getRemoveandsetRemoveto get and set the element. - An OPTIONAL <contact:chg> element that contains attribute values to
be changed to the host object. Use
getChangeandsetChangeto get and set the element.
EPPReponseis the response associated withEPPContactUpdateCmd.
- See Also:
EPPResponse,EPPContactAddChange, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.verisign.epp.codec.gen.EPPCommand
extensions, OP_APPROVE, OP_CANCEL, OP_QUERY, OP_REJECT, OP_REQUEST, transId, TYPE_CHECK, TYPE_CREATE, TYPE_DELETE, TYPE_INFO, TYPE_LOGIN, TYPE_LOGOUT, TYPE_POLL, TYPE_RENEW, TYPE_TRANSFER, TYPE_UPDATE
-
-
Constructor Summary
Constructors Constructor Description EPPContactUpdateCmd()EPPContactUpdateCmddefault constructor.EPPContactUpdateCmd(java.lang.String aTransId, java.lang.String aId)EPPContactUpdateCmdconstructor.EPPContactUpdateCmd(java.lang.String aTransId, java.lang.String aId, EPPContactAddChange aAdd, EPPContactAddChange aRemove, EPPContactAddChange aChange)EPPContactUpdateCmdconstructor that takes the required attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPContactUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPContactUpdateCmdattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPContactUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPContactUpdateCmdwith this instance.EPPContactAddChangegetAdd()Gets the items to add to the contact.EPPContactAddChangegetChange()Gets the items to change to the contact.java.lang.StringgetId()Get contact id.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPContactUpdateCmd.EPPContactAddChangegetRemove()Gets the items to remove to the contact.voidsetAdd(EPPContactAddChange newAdd)Sets the items to add to the contact.voidsetChange(EPPContactAddChange newChange)Sets the items to change to the contact.voidsetId(java.lang.String newId)Set contact id.voidsetRemove(EPPContactAddChange newRemove)Sets the items to remove to the contact.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.-
Methods inherited from class com.verisign.epp.codec.gen.EPPUpdateCmd
doGenDecode, doGenEncode, getType
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
EPPContactUpdateCmd
public EPPContactUpdateCmd()
EPPContactUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.
-
EPPContactUpdateCmd
public EPPContactUpdateCmd(java.lang.String aTransId, java.lang.String aId)EPPContactUpdateCmdconstructor.- Parameters:
aTransId- Transaction Id associated with the command.aId- Contact ID
-
EPPContactUpdateCmd
public EPPContactUpdateCmd(java.lang.String aTransId, java.lang.String aId, EPPContactAddChange aAdd, EPPContactAddChange aRemove, EPPContactAddChange aChange)EPPContactUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aId- Contact ID.aAdd- Attributes to add to the contact.nullif no additions.aRemove- Attributes to remove from the contact.nullif no removals.aChange- Attributes to remove from the contact.nullif no changes.
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPContactUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPHostMapFactory.NS
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPContactUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPContactUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPContactUpdateCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPContactUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPContactUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPContactUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPContactUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPContactUpdateCmd - 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 classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getAdd
public EPPContactAddChange getAdd()
Gets the items to add to the contact.- Returns:
- Object that contains the list of elements to add to the contact if
defined;
nullotherwise.
-
getChange
public EPPContactAddChange getChange()
Gets the items to change to the contact.- Returns:
- Object that contains the list of elements to change to the contact
if defined;
nullotherwise.
-
getId
public java.lang.String getId()
Get contact id.- Returns:
- String Contact ID
-
getRemove
public EPPContactAddChange getRemove()
Gets the items to remove to the contact.- Returns:
- Object that contains the list of elements to remove to the contact
if defined;
nullotherwise.
-
setAdd
public void setAdd(EPPContactAddChange newAdd)
Sets the items to add to the contact.- Parameters:
newAdd- Object that contains the list of elements to add to the contact.
-
setChange
public void setChange(EPPContactAddChange newChange)
Sets the items to change to the contact.- Parameters:
newChange- Object that contains the list of elements to change to the contact.
-
setId
public void setId(java.lang.String newId)
Set contact id.- Parameters:
newId- String
-
setRemove
public void setRemove(EPPContactAddChange newRemove)
Sets the items to remove to the contact.- Parameters:
newRemove- Object that contains the list of elements to remove to the contact.
-
-