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,Serializable,Cloneable
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.
EPPReponse is the response associated with
EPPDomainUpdateCmd. - See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPDomainUpdateCmd.static final StringXML 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
ConstructorsConstructorDescriptionEPPDomainUpdateCmddefault constructor.EPPDomainUpdateCmd(String aName) EPPDomainUpdateCmddefault constructor.EPPDomainUpdateCmd(String aTransId, String aName, EPPDomainAddRemove aAdd, EPPDomainAddRemove aRemove, EPPDomainAddRemove aChange) EPPDomainUpdateCmdconstructor that takes the required attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainUpdateCmd.protected voidDecode theEPPDomainUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPDomainUpdateCmdinstance.booleanCompare an instance ofEPPDomainUpdateCmdwith this instance.getAdd()Gets the items to add to the domain.Gets the items to change to the domain.getKey()Gets the key for the domain name object, which is the domain name.getName()Gets the domain name to update.Gets the EPP command Namespace associated withEPPDomainUpdateCmd.Gets the items to remove from the domain.booleanhasAdd()Has the add been set?booleanHas the change been set?booleanHas 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.voidSets the domain name to update.voidsetRemove(EPPDomainAddRemove aRemove) Sets the items to remove from the domain.toString()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, getTypeMethods 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
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainUpdateCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainUpdateCmdroot element.- See Also:
-
-
Constructor Details
-
EPPDomainUpdateCmd
public EPPDomainUpdateCmd()EPPDomainUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode. -
EPPDomainUpdateCmd
EPPDomainUpdateCmddefault constructor. The name is initialized tonull. The name must be set before invokingencode.- Parameters:
aName- Domain name to update
-
EPPDomainUpdateCmd
public EPPDomainUpdateCmd(String aTransId, 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 Details
-
getNamespace
Gets the EPP command Namespace associated withEPPDomainUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPDomainMapFactory.NS
-
getKey
Gets the key for the domain name object, which is the domain name.- Overrides:
getKeyin classEPPCommand- Returns:
- The domain name if set;
nullotherwise.
-
doEncode
Encode 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
Decode 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
Compare an instance ofEPPDomainUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- Parameters:
aObject- Object to compare with.- Returns:
truewhen equal;falseotherwise.
-
clone
CloneEPPDomainUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPDomainUpdateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getName
Gets the domain name to update.- Returns:
- Domain Name if defined;
nullotherwise.
-
setName
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
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
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
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
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
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
Sets the items to change to the domain.- Parameters:
newChange- Object that contains the list of elements to change to the domain.
-