Package com.verisign.epp.codec.defReg
Class EPPDefRegAddRemove
- java.lang.Object
-
- com.verisign.epp.codec.defReg.EPPDefRegAddRemove
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPDefRegAddRemove extends java.lang.Object implements EPPCodecComponent
Represents attributes to add, remove or change with aEPPDefRegUpdateCmd. InEPPDefRegUpdateCmd, an instance ofEPPDefRegAddRemoveis used to specify the attributes to add; an instance ofEPPDefRegAddRemoveis used to specify the attributes to remove, and an instance ofEPPDefRegAddRemoveis used to specify the attributes to change.
The DefRegReg Mapping Specification describes the following attributes:-
For
addandremoveonly, zero or more<defReg:status>elements that contain status values to be applied to or removed from the defReg object, respectively. When specifying a value to be removed, only the attribute value is significant; element text is not required to match a value for removal. -
For
changeonly, A optional<defReg:registrant>element that contains the identifier for the human or organizational social information (contact) object to be associated with the defReg object as the object registrant. This object identifier MUST be known to the server before the contact object can be associated with the defReg object. -
For
changeonly, A optional<defReg:tm>element that contains trademark identifier (ID) associated with the defReg object. -
For
changeonly, A optional<defReg:tmCountry>element that indicates the country which issued the trademark associated with the defReg object. -
For
changeonly, A optional<defReg:tmDate>element that contains indicates the date when the trademark was issued for the defReg object. -
For
changeonly, An OPTIONAL<defReg:adminContact>element that contains the identifier for the administrator associated with the defReg object. -
For
changeonly, An OPTIONAL<defReg:authInfo>element that contains authorization information to be associated with the defReg object.
It is important to note that the maximum number of defReg attribute elements is subject to the number of values currently associated with the defReg object.EPPDefRegAddRemovewill delegate the validation of the cardinality of the defReg attributes elements to the EPP Server.- See Also:
EPPDefRegUpdateCmd, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPDefRegAddRemove()Default constructor forEPPDefRegAddRemove.EPPDefRegAddRemove(java.lang.String aRegistrant, java.lang.String aTm, java.lang.String aTmCountry, java.util.Date aTmDate, java.lang.String aAdminContact, EPPAuthInfo aAuthInfo)Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.EPPDefRegAddRemove(java.util.Vector aStatuses)Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPDefRegAddRemove.voiddecode(org.w3c.dom.Element aElement)Decode theEPPDefRegAddRemoveattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPDefRegAddRemoveinstance.booleanequals(java.lang.Object aObject)implements a deepEPPDefRegAddRemovecompare.java.lang.StringgetAdminContact()Get AdminContact AddressEPPAuthInfogetAuthInfo()Get authorization information for the change modejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRegistrant()Get registrant for the change modejava.util.VectorgetStatuses()Gets the statuses to add or remove.java.lang.StringgetTm()Get the trademark informnation.java.lang.StringgetTmCountry()Get the trademark country informnation.java.util.DategetTmDate()Get the trademark date informnation.voidsetAdminContact(java.lang.String newAdminContact)Set forwardTo Address for the change modevoidsetAuthInfo(EPPAuthInfo newAuthInfo)Set authorization information for the change modevoidsetRegistrant(java.lang.String newRegistrant)Set registrant for the change modevoidsetStatuses(java.util.Vector aStatuses)Sets the statuses to add or remove.voidsetTm(java.lang.String aTm)Set the trademark informnation.voidsetTmCountry(java.lang.String aTmCountry)Set the trademark country informnation.voidsetTmDate(java.util.Date aTmDate)Set the trademark date informnation.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
EPPDefRegAddRemove
public EPPDefRegAddRemove()
Default constructor forEPPDefRegAddRemove. All of the attribute default tonullto indicate no modification.
-
EPPDefRegAddRemove
public EPPDefRegAddRemove(java.util.Vector aStatuses)
Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.- Parameters:
aStatuses-Vectorstatuses
-
EPPDefRegAddRemove
public EPPDefRegAddRemove(java.lang.String aRegistrant, java.lang.String aTm, java.lang.String aTmCountry, java.util.Date aTmDate, java.lang.String aAdminContact, EPPAuthInfo aAuthInfo)Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.- Parameters:
aRegistrant-Stringregistrant for the change modeaTm- DefReg TradeMarkaTmCountry- DefReg TradeMarkCountryaTmDate- DefReg TradeMarkDateaAdminContact-Stringregistrant AdminContactaAuthInfo-EPPAuthInfoauthorization information for the change mode
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPDefRegAddRemoveinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Root DOM Element representing the
EPPDefRegAddRemoveinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDefRegAddRemoveinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPDefRegAddRemoveattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPDefRegAddRemovefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPDefRegAddRemovecompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPDefRegAddRemoveinstance to compare with- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPDefRegAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPDefRegAddRemove - 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.
-
getAuthInfo
public EPPAuthInfo getAuthInfo()
Get authorization information for the change mode- Returns:
- com.verisign.epp.codec.defReg.EPPDefRegAuthInfo
-
getRegistrant
public java.lang.String getRegistrant()
Get registrant for the change mode- Returns:
- java.lang.String
-
getTm
public java.lang.String getTm()
Get the trademark informnation.- Returns:
- DefReg tradeMark
-
setTm
public void setTm(java.lang.String aTm)
Set the trademark informnation.- Parameters:
aTm- DefReg registrant
-
getTmCountry
public java.lang.String getTmCountry()
Get the trademark country informnation.- Returns:
- DefReg trademark country
-
setTmCountry
public void setTmCountry(java.lang.String aTmCountry)
Set the trademark country informnation.- Parameters:
aTmCountry- DefReg trademark country
-
getTmDate
public java.util.Date getTmDate()
Get the trademark date informnation.- Returns:
- DefReg trademark date
-
setTmDate
public void setTmDate(java.util.Date aTmDate)
Set the trademark date informnation.- Parameters:
aTmDate- DefReg trademark date
-
getAdminContact
public java.lang.String getAdminContact()
Get AdminContact Address- Returns:
- java.lang.String
-
setAuthInfo
public void setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information for the change mode- Parameters:
newAuthInfo- com.verisign.epp.codec.defReg.EPPDefRegAuthInfo
-
setRegistrant
public void setRegistrant(java.lang.String newRegistrant)
Set registrant for the change mode- Parameters:
newRegistrant- java.lang.String
-
setAdminContact
public void setAdminContact(java.lang.String newAdminContact)
Set forwardTo Address for the change mode- Parameters:
newAdminContact- java.lang.String
-
getStatuses
public java.util.Vector getStatuses()
Gets the statuses to add or remove. TheEPPDefRegStatus.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets the statuses to add or remove. TheEPPDefRegStatus.STATUS_constants can be used for the statuses.- Parameters:
aStatuses- Vector of statusStringinstances.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-