Package com.verisign.epp.codec.defReg
Class EPPDefRegAddRemove
java.lang.Object
com.verisign.epp.codec.defReg.EPPDefRegAddRemove
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents attributes to add, remove or change with a
The DefRegReg Mapping Specification describes the following attributes:
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.
EPPDefRegUpdateCmd. In EPPDefRegUpdateCmd, an
instance of EPPDefRegAddRemove is used to specify the
attributes to add; an instance of EPPDefRegAddRemove is used
to specify the attributes to remove, and an instance of
EPPDefRegAddRemove is 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.
EPPDefRegAddRemove will delegate the
validation of the cardinality of the defReg attributes elements to the
EPP Server.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPDefRegAddRemove.EPPDefRegAddRemove(String aRegistrant, String aTm, String aTmCountry, Date aTmDate, String aAdminContact, EPPAuthInfo aAuthInfo) Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.EPPDefRegAddRemove(Vector aStatuses) Constructor forEPPDefRegAddRemovethat includes the attributes as arguments. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDefRegAddRemove.voidDecode theEPPDefRegAddRemoveattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPDefRegAddRemoveinstance.booleanimplements a deepEPPDefRegAddRemovecompare.Get AdminContact AddressGet authorization information for the change modeReturns the XML namespace associated with theEPPCodecComponent.Get registrant for the change modeGets the statuses to add or remove.getTm()Get the trademark informnation.Get the trademark country informnation.Get the trademark date informnation.voidsetAdminContact(String newAdminContact) Set forwardTo Address for the change modevoidsetAuthInfo(EPPAuthInfo newAuthInfo) Set authorization information for the change modevoidsetRegistrant(String newRegistrant) Set registrant for the change modevoidsetStatuses(Vector aStatuses) Sets the statuses to add or remove.voidSet the trademark informnation.voidsetTmCountry(String aTmCountry) Set the trademark country informnation.voidSet the trademark date informnation.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPDefRegAddRemove
public EPPDefRegAddRemove()Default constructor forEPPDefRegAddRemove. All of the attribute default tonullto indicate no modification. -
EPPDefRegAddRemove
Constructor forEPPDefRegAddRemovethat includes the attributes as arguments.- Parameters:
aStatuses-Vectorstatuses
-
EPPDefRegAddRemove
public EPPDefRegAddRemove(String aRegistrant, String aTm, String aTmCountry, Date aTmDate, 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 Details
-
encode
Encode 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
Decode 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
implements a deepEPPDefRegAddRemovecompare. -
clone
CloneEPPDefRegAddRemove.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDefRegAddRemove - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getAuthInfo
Get authorization information for the change mode- Returns:
- com.verisign.epp.codec.defReg.EPPDefRegAuthInfo
-
getRegistrant
Get registrant for the change mode- Returns:
- java.lang.String
-
getTm
Get the trademark informnation.- Returns:
- DefReg tradeMark
-
setTm
Set the trademark informnation.- Parameters:
aTm- DefReg registrant
-
getTmCountry
Get the trademark country informnation.- Returns:
- DefReg trademark country
-
setTmCountry
Set the trademark country informnation.- Parameters:
aTmCountry- DefReg trademark country
-
getTmDate
Get the trademark date informnation.- Returns:
- DefReg trademark date
-
setTmDate
Set the trademark date informnation.- Parameters:
aTmDate- DefReg trademark date
-
getAdminContact
Get AdminContact Address- Returns:
- java.lang.String
-
setAuthInfo
Set authorization information for the change mode- Parameters:
newAuthInfo- com.verisign.epp.codec.defReg.EPPDefRegAuthInfo
-
setRegistrant
Set registrant for the change mode- Parameters:
newRegistrant- java.lang.String
-
setAdminContact
Set forwardTo Address for the change mode- Parameters:
newAdminContact- java.lang.String
-
getStatuses
Gets the statuses to add or remove. TheEPPDefRegStatus.STATUS_constants can be used for the statuses.- Returns:
- Vector of status
Stringinstances.
-
setStatuses
Sets the statuses to add or remove. TheEPPDefRegStatus.STATUS_constants can be used for the statuses.- Parameters:
aStatuses- Vector of statusStringinstances.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-