Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- com.verisign.epp.codec.emailFwd.EPPEmailFwdUpdateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPEmailFwdUpdateCmd extends EPPUpdateCmd
Represents an EPP EmailFwd <update> command. The EPP <update> command provides a transform operation that allows a client to modify the attributes of a emailFwd object. In addition to the standard EPP command elements, the <update> command MUST contain a <emailFwd:update> element that identifies the emailFwd namespace and the location of the emailFwd schema. In addition to The <emailFwd:update> element SHALL contain the following child elements:
-
A <emailFwd:name> element that contains the fully qualified emailFwd
name of the object to be updated. Use
getNameandsetNameto get and set the element. -
An OPTIONAL <emailFwd:add> element that contains attribute values to
be added to the emailFwd object. Use
getAddandsetAddto get and set the element. -
An OPTIONAL <emailFwd:chg> element that contains attribute values to
be change to the emailFwd object. Use
getChangeandsetChangeto get and set the element. -
An OPTIONAL <emailFwd:rem> element that contains attribute values to
be removed from the emailFwd object. Use
getRemoveandsetRemoveto get and set the element.
EPPReponseis the response associated withEPPEmailFwdUpdateCmd.- See Also:
EPPResponse,EPPEmailFwdAddRemove, 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 EPPEmailFwdUpdateCmd()EPPEmailFwdUpdateCmddefault constructor.EPPEmailFwdUpdateCmd(java.lang.String aName)EPPEmailFwdUpdateCmddefault constructor.EPPEmailFwdUpdateCmd(java.lang.String aTransId, java.lang.String aName, EPPEmailFwdAddRemove aAdd, EPPEmailFwdAddRemove aRemove, EPPEmailFwdAddRemove aChange)EPPEmailFwdUpdateCmdconstructor that takes the required attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPEmailFwdUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPEmailFwdUpdateCmdattributes 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 theEPPEmailFwdUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPEmailFwdUpdateCmdwith this instance.EPPEmailFwdAddRemovegetAdd()Gets the items to add to the emailFwd.EPPEmailFwdAddRemovegetChange()Gets the items to change to the emailFwd.java.lang.StringgetKey()Gets the key for the emailFwd object, which is the emailFwd name.java.lang.StringgetName()Gets the emailFwd name to update.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPEmailFwdUpdateCmd.EPPEmailFwdAddRemovegetRemove()Gets the items to remove from the emailFwd.voidsetAdd(EPPEmailFwdAddRemove aAdd)Sets the items to add to the emailFwd.voidsetChange(EPPEmailFwdAddRemove newChange)Sets the items to change to the emailFwd.voidsetName(java.lang.String aName)Sets the emailFwd name to update.voidsetRemove(EPPEmailFwdAddRemove aRemove)Sets the items to remove from the emailFwd.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, hasKey, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Constructor Detail
-
EPPEmailFwdUpdateCmd
public EPPEmailFwdUpdateCmd()
EPPEmailFwdUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.
-
EPPEmailFwdUpdateCmd
public EPPEmailFwdUpdateCmd(java.lang.String aTransId, java.lang.String aName, EPPEmailFwdAddRemove aAdd, EPPEmailFwdAddRemove aRemove, EPPEmailFwdAddRemove aChange)EPPEmailFwdUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aName- EmailFwd name to update.aAdd- Attributes to add to the emailFwd.nullif no additions.aRemove- Attributes to remove from the emailFwd.nullif no removals.aChange- DOCUMENT ME!
-
EPPEmailFwdUpdateCmd
public EPPEmailFwdUpdateCmd(java.lang.String aName)
EPPEmailFwdUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.- Parameters:
aName- DOCUMENT ME!
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPEmailFwdUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPEmailFwdMapFactory.NS
-
getKey
public java.lang.String getKey()
Gets the key for the emailFwd object, which is the emailFwd name.- Overrides:
getKeyin classEPPCommand- Returns:
- The emailFwd name if set;
nullotherwise.
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPEmailFwdUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPEmailFwdUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPEmailFwdUpdateCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPEmailFwdUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPEmailFwdUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPEmailFwdUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPEmailFwdUpdateCmd - 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.
-
getName
public java.lang.String getName()
Gets the emailFwd name to update.- Returns:
- EmailFwd Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the emailFwd name to update.- Parameters:
aName- EmailFwd Name
-
getAdd
public EPPEmailFwdAddRemove getAdd()
Gets the items to add to the emailFwd.- Returns:
- Object that contains the list of elements to add to the emailFwd
if defined;
nullotherwise.
-
setAdd
public void setAdd(EPPEmailFwdAddRemove aAdd)
Sets the items to add to the emailFwd.- Parameters:
aAdd- Object that contains the list of elements to add to the emailFwd.
-
getRemove
public EPPEmailFwdAddRemove getRemove()
Gets the items to remove from the emailFwd.- Returns:
- Object that contains the list of elements to remove from the
emailFwd if defined;
nullotherwise.
-
setRemove
public void setRemove(EPPEmailFwdAddRemove aRemove)
Sets the items to remove from the emailFwd.- Parameters:
aRemove- Object that contains the list of elements to remove from the emailFwd.
-
getChange
public EPPEmailFwdAddRemove getChange()
Gets the items to change to the emailFwd.- Returns:
- Object that contains the list of elements to change to the
emailFwd if defined;
nullotherwise.
-
setChange
public void setChange(EPPEmailFwdAddRemove newChange)
Sets the items to change to the emailFwd.- Parameters:
newChange- Object that contains the list of elements to change to the emailFwdemailFwdemailFwd.
-
-