Package com.verisign.epp.codec.domain
Class EPPDomainUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- com.verisign.epp.codec.domain.EPPDomainUpdateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPDomainUpdateCmd extends EPPUpdateCmd
Represents an EPP Domain <update> command. The EPP <update> command provides a transform operation that allows a client to modify the attributes of a domain object. In addition to the standard EPP command elements, the <update> command MUST contain a <domain:update> element that identifies the domain namespace and the location of the domain schema. In addition to The <domain:update> element SHALL contain the following child elements:
- A <domain:name> element that contains the fully qualified domain
name of the object to be updated. Use
getNameandsetNameto get and set the element. - An OPTIONAL <domain:add> element that contains attribute values to
be added to the domain object. Use
getAddandsetAddto get and set the element. - An OPTIONAL <domain:chg> element that contains attribute values to
be change to the domain object. Use
getChangeandsetChangeto get and set the element. - An OPTIONAL <domain:rem> element that contains attribute values to
be removed from the domain object. Use
getRemoveandsetRemoveto get and set the element.
EPPReponseis the response associated withEPPDomainUpdateCmd.
- See Also:
EPPResponse,EPPDomainAddRemove, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPDomainUpdateCmd.static java.lang.StringELM_NAMEXML Element Name ofEPPDomainUpdateCmdroot element.-
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 EPPDomainUpdateCmd()EPPDomainUpdateCmddefault constructor.EPPDomainUpdateCmd(java.lang.String aName)EPPDomainUpdateCmddefault constructor.EPPDomainUpdateCmd(java.lang.String aTransId, java.lang.String aName, EPPDomainAddRemove aAdd, EPPDomainAddRemove aRemove, EPPDomainAddRemove aChange)EPPDomainUpdateCmdconstructor that takes the required attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPDomainUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPDomainUpdateCmdattributes 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 theEPPDomainUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPDomainUpdateCmdwith this instance.EPPDomainAddRemovegetAdd()Gets the items to add to the domain.EPPDomainAddRemovegetChange()Gets the items to change to the domain.java.lang.StringgetName()Gets the domain name to update.java.lang.StringgetNamespace()Gets the EPP command Namespace associated withEPPDomainUpdateCmd.EPPDomainAddRemovegetRemove()Gets the items to remove from the domain.booleanhasAdd()Has the add been set?booleanhasChange()Has the change been set?booleanhasRemove()Has the remove been set?voidsetAdd(EPPDomainAddRemove aAdd)Sets the items to add to the domain.voidsetChange(EPPDomainAddRemove newChange)Sets the items to change to the domain.voidsetName(java.lang.String aName)Sets the domain name to update.voidsetRemove(EPPDomainAddRemove aRemove)Sets the items to remove from the domain.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
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPDomainUpdateCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPDomainUpdateCmdroot element.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPDomainUpdateCmd
public EPPDomainUpdateCmd()
EPPDomainUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.
-
EPPDomainUpdateCmd
public EPPDomainUpdateCmd(java.lang.String aName)
EPPDomainUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.- Parameters:
aName- Domain name to update
-
EPPDomainUpdateCmd
public EPPDomainUpdateCmd(java.lang.String aTransId, java.lang.String aName, EPPDomainAddRemove aAdd, EPPDomainAddRemove aRemove, EPPDomainAddRemove aChange)EPPDomainUpdateCmdconstructor that takes the required attributes as arguments.- Parameters:
aTransId- Transaction Id associated with the command.aName- Domain name to update.aAdd- Attributes to add to the domain.nullif no additions.aRemove- Attributes to remove from the domain.nullif no removals.aChange- Attribute to change.nullif no changes.
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command Namespace associated withEPPDomainUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDomainMapFactory.NS
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPDomainUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDomainUpdateCmdinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainUpdateCmdinstance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPDomainUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPDomainUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPDomainUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
truewhen equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPDomainUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPDomainUpdateCmd - 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 domain name to update.- Returns:
- Domain Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the domain name to update.- Parameters:
aName- Domain Name
-
hasAdd
public boolean hasAdd()
Has the add been set?- Returns:
trueif the add has been set;falseotherwise.
-
getAdd
public EPPDomainAddRemove getAdd()
Gets the items to add to the domain.- Returns:
- Object that contains the list of elements to add to the domain if
defined;
nullotherwise.
-
setAdd
public void setAdd(EPPDomainAddRemove aAdd)
Sets the items to add to the domain.- Parameters:
aAdd- Object that contains the list of elements to add to the domain.
-
hasRemove
public boolean hasRemove()
Has the remove been set?- Returns:
trueif the remove has been set;falseotherwise.
-
getRemove
public EPPDomainAddRemove getRemove()
Gets the items to remove from the domain.- Returns:
- Object that contains the list of elements to remove from the
domain if defined;
nullotherwise.
-
setRemove
public void setRemove(EPPDomainAddRemove aRemove)
Sets the items to remove from the domain.- Parameters:
aRemove- Object that contains the list of elements to remove from the domain.
-
hasChange
public boolean hasChange()
Has the change been set?- Returns:
trueif the change has been set;falseotherwise.
-
getChange
public EPPDomainAddRemove getChange()
Gets the items to change to the domain.- Returns:
- Object that contains the list of elements to change to the domain
if defined;
nullotherwise.
-
setChange
public void setChange(EPPDomainAddRemove newChange)
Sets the items to change to the domain.- Parameters:
newChange- Object that contains the list of elements to change to the domain.
-
-