|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.defReg.EPPDefRegCreateCmd
public class EPPDefRegCreateCmd
Represents an EPPDefReg <create> command, which provides a transform
operation that allows a client to create a defReg object. In addition to
the standard EPP command elements, the <create> command MUST contain
a <defReg:create> element that identifies the defReg namespace and
the location of the defReg schema. The <defReg:create> element
MUST contain the following child elements:
getName
and setName
to
get and set the defReg object.
getRegistrant
and setRegistrant
to get and
set the elements.
getPeriod
and
setPeriod
to get and set the element. If return
null
, period has not been specified yet.
EPPDefRegCreateResp
is the concrete EPPReponse
associated with EPPDefRegCreateCmd
.
EPPDefRegCreateResp
,
Serialized FormField Summary | |
---|---|
protected static java.lang.String |
ATTR_LEVELID
XML Element roid attribute name of EPPAuthInfo root
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 | |
---|---|
EPPDefRegCreateCmd()
Allocates a new EPPDefRegCreateCmd with default attribute
values. |
|
EPPDefRegCreateCmd(java.lang.String aTransId,
EPPDefRegName aDefRegName,
java.lang.String aRegistrant,
java.lang.String aTm,
java.lang.String aTmCountry,
java.util.Date aTmDate,
java.lang.String aAdminContact,
EPPDefRegPeriod aPeriod,
EPPAuthInfo aAuthInfo)
Allocates a new EPPDefRegCreateCmd with all attributes
specified by the arguments. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPDefRegCreateCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the EPPDefRegCreateCmd attributes from the aElement DOM Element tree. |
protected org.w3c.dom.Element |
doEncode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPDefRegCreateCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of EPPDefRegCreateCmd with this
instance. |
java.lang.String |
getAdminContact()
Get the AdminContact information. |
EPPAuthInfo |
getAuthInfo()
Get authorization information |
EPPDefRegName |
getDefRegName()
Get the EPPDefRegName information. |
java.lang.String |
getNamespace()
Get the EPP command Namespace associated with EPPDefRegCreateCmd. |
EPPDefRegPeriod |
getPeriod()
Gets the registration period in years. |
java.lang.String |
getRegistrant()
Get the registrant information. |
java.lang.String |
getTm()
Get the trademark information. |
java.lang.String |
getTmCountry()
Get the trademark country information. |
java.util.Date |
getTmDate()
Get the trademark date information. |
void |
setAuthInfo(EPPAuthInfo newAuthInfo)
Set authorization information |
void |
setDefRegName(EPPDefRegName aName)
Set the defRegName information. |
void |
setPeriod(EPPDefRegPeriod aPeriod)
Sets the registration period in years. |
void |
setRegistrant(java.lang.String aRegistrant)
Set the registrant information. |
void |
setTm(java.lang.String aTm)
Set the trademark information. |
void |
setTmCountry(java.lang.String aTmCountry)
Set the trademark country information. |
void |
setTmDate(java.util.Date aTmDate)
Set the trademark date information. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd |
---|
doGenDecode, doGenEncode, getType |
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand |
---|
addExtension, decode, encode, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String ATTR_LEVELID
EPPAuthInfo
root
element.
Constructor Detail |
---|
public EPPDefRegCreateCmd()
EPPDefRegCreateCmd
with default attribute
values. the defaults include the following: null
null
UNSPEC_PERIOD
null
.
null
.
null
.
null
.
encode
.
public EPPDefRegCreateCmd(java.lang.String aTransId, EPPDefRegName aDefRegName, java.lang.String aRegistrant, java.lang.String aTm, java.lang.String aTmCountry, java.util.Date aTmDate, java.lang.String aAdminContact, EPPDefRegPeriod aPeriod, EPPAuthInfo aAuthInfo)
EPPDefRegCreateCmd
with all attributes
specified by the arguments.
aTransId
- Transaction Id associated with command.aDefRegName
- EPPDefRegName nameaRegistrant
- DefReg RegistrantaTm
- DefReg TradeMarkaTmCountry
- DefReg TradeMarkCountryaTmDate
- DefReg TradeMarkDateaAdminContact
- DefReg AdminContactaPeriod
- DefReg Registration Period.aAuthInfo
- EPPAuthInfo authorization informationMethod Detail |
---|
public java.lang.String getNamespace()
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPDefRegMapFactory.NS
public EPPDefRegName getDefRegName()
public void setDefRegName(EPPDefRegName aName)
aName
- EPPDefRegName name objectpublic java.lang.String getRegistrant()
public void setRegistrant(java.lang.String aRegistrant)
aRegistrant
- DefReg registrantpublic java.lang.String getTm()
public void setTm(java.lang.String aTm)
aTm
- DefReg registrantpublic java.lang.String getTmCountry()
public void setTmCountry(java.lang.String aTmCountry)
aTmCountry
- DefReg trademark countrypublic java.util.Date getTmDate()
public void setTmDate(java.util.Date aTmDate)
aTmDate
- DefReg trademark datepublic java.lang.String getAdminContact()
public EPPAuthInfo getAuthInfo()
public EPPDefRegPeriod getPeriod()
public void setAuthInfo(EPPAuthInfo newAuthInfo)
newAuthInfo
- java.lang.Stringpublic void setPeriod(EPPDefRegPeriod aPeriod)
aPeriod
- Registration Period in years.public boolean equals(java.lang.Object aObject)
EPPDefRegCreateCmd
with this
instance.
equals
in class EPPCreateCmd
aObject
- Object to compare with.
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDefRegCreateCmd
.
clone
in interface EPPCodecComponent
clone
in class EPPCommand
EPPDefRegCreateCmd
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class EPPCommand
String
if successful;
ERROR
otherwise.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
doEncode
in class EPPCreateCmd
aDocument
- DOM Document that is being built. Used as an Element
factory.
EPPEncodeException
- Unable to encode EPPDefRegCreateCmd
instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
doDecode
in class EPPCreateCmd
aElement
- Root DOM Element to decode EPPDefELM_DEFREGRegCreateCmd
from.
EPPDecodeException
- Unable to decode aElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |