public class EPPOrgCreateCmd extends EPPCreateCmd
EPPOrgCreateResp
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPOrgCreateCmd . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPOrgCreateCmd . |
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 and Description |
---|
EPPOrgCreateCmd()
EPPOrgCreateCmd default constructor with the default form of
Form.LIST_FORM . |
EPPOrgCreateCmd(java.lang.String aTransId)
EPPOrgCreateCmd constructor that takes the client transaction
identifier. |
Modifier and Type | Method and Description |
---|---|
void |
addContact(EPPOrgContact aContact)
Adds a contact to the list of contacts.
|
void |
addPostalInfo(EPPOrgPostalDefinition aPostalInfo)
Adds a postal definition to the postal information for the org.
|
void |
addRole(EPPOrgRole aRole)
Add a role to list of org roles.
|
void |
addStatus(EPPOrgStatus aStatus)
Add a status to list of org statuses.
|
java.lang.Object |
clone()
Clone
EPPOrgCreateCmd . |
protected void |
doDecode(org.w3c.dom.Element aElement)
Decode the
EPPOrgCreateCmd 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
EPPOrgCreateCmd instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPOrgCreateCmd with this instance. |
java.util.List<EPPOrgContact> |
getContacts()
Gets the list of org contacts.
|
java.lang.String |
getEmail() |
java.lang.String |
getFax() |
java.lang.String |
getFaxExt() |
java.lang.String |
getNamespace()
Gets the EPP command namespace associated with
EPPOrgCreateCmd . |
java.lang.String |
getOrgId()
Gets the org identifier.
|
java.lang.String |
getParentId() |
java.util.List<EPPOrgPostalDefinition> |
getPostalInfo()
Gets the postal information for the org.
|
java.util.List<EPPOrgRole> |
getRoles()
Gets the roles of the org.
|
java.util.List<EPPOrgStatus> |
getStatuses()
Gets the statuses of the org.
|
java.lang.String |
getType()
Gets the EPP response type associated with
EPPOrgCreateCmd . |
java.lang.String |
getUrl()
Gets the URL of the website of the org.
|
java.lang.String |
getVoice() |
java.lang.String |
getVoiceExt() |
boolean |
hasContacts()
Is there any contacts set?
|
boolean |
hasParentId()
Is the parentId defined?
|
boolean |
hasPostalInfo()
Is there any postal information set?
|
boolean |
hasRole()
Is there at least one role?
|
boolean |
hasStatus()
Is there at least one status?
|
void |
setContacts(java.util.List<EPPOrgContact> aContacts)
Sets the list of org contacts.
|
void |
setEmail(java.lang.String aEmail) |
void |
setFax(java.lang.String aFax) |
void |
setFaxExt(java.lang.String aFaxExt) |
void |
setOrgId(java.lang.String aOrgId)
Sets the org identifier.
|
void |
setParentId(java.lang.String aParentId) |
void |
setPostalInfo(java.util.List<EPPOrgPostalDefinition> aPostalInfo)
Sets the postal information for the org.
|
void |
setRoles(java.util.List<EPPOrgRole> aRoles)
Sets the roles of the org.
|
void |
setStatuses(java.util.List<EPPOrgStatus> aStatuses)
Sets the statuses of the org.
|
void |
setUrl(java.lang.String aUrl)
Sets the URL of the website of the org.
|
void |
setVoice(java.lang.String aVoice) |
void |
setVoiceExt(java.lang.String aVoiceExt) |
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
doGenDecode, doGenEncode
addExtension, decode, encode, findDuplicateExtNamespaces, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
public static final java.lang.String ELM_LOCALNAME
EPPOrgCreateCmd
.public static final java.lang.String ELM_NAME
EPPOrgCreateCmd
.public EPPOrgCreateCmd()
EPPOrgCreateCmd
default constructor with the default form of
Form.LIST_FORM
.public EPPOrgCreateCmd(java.lang.String aTransId)
EPPOrgCreateCmd
constructor that takes the client transaction
identifier.aTransId
- Client transaction identifier.public java.lang.String getOrgId()
null
otherwise.public void setOrgId(java.lang.String aOrgId)
aOrgId
- The org identifierpublic boolean hasRole()
true
if there at least one role; false
otherwise.public java.util.List<EPPOrgRole> getRoles()
public void setRoles(java.util.List<EPPOrgRole> aRoles)
aRoles
- Organization rolespublic void addRole(EPPOrgRole aRole)
aRole
- Org role to add.public boolean hasStatus()
true
if there at least one status; false
otherwise.public java.util.List<EPPOrgStatus> getStatuses()
public void setStatuses(java.util.List<EPPOrgStatus> aStatuses)
aStatuses
- Organization statusespublic void addStatus(EPPOrgStatus aStatus)
aStatus
- Org status to add.public boolean hasParentId()
true
if the parentId is defined; false
otherwise.public java.lang.String getParentId()
public void setParentId(java.lang.String aParentId)
aParentId
- the parentId to setpublic boolean hasPostalInfo()
true
if there is at least one
EPPOrgPostalDefinition
set in the postal information;
false
otherwise.public void addPostalInfo(EPPOrgPostalDefinition aPostalInfo)
aPostalInfo
- Postal definition to add to the postal information.public java.util.List<EPPOrgPostalDefinition> getPostalInfo()
EPPOrgPostalDefinition
objects in the postal information list.public void setPostalInfo(java.util.List<EPPOrgPostalDefinition> aPostalInfo)
EPPOrgPostalDefinition
objects in the postal information list.aPostalInfo
- Postal information for the org.public java.lang.String getVoice()
public void setVoice(java.lang.String aVoice)
aVoice
- the voice to setpublic java.lang.String getVoiceExt()
public void setVoiceExt(java.lang.String aVoiceExt)
aVoiceExt
- the voiceExt to setpublic java.lang.String getFax()
public void setFax(java.lang.String aFax)
aFax
- the fax to setpublic java.lang.String getFaxExt()
public void setFaxExt(java.lang.String aFaxExt)
aFaxExt
- the faxExt to setpublic java.lang.String getEmail()
public void setEmail(java.lang.String aEmail)
aEmail
- the email to setpublic java.lang.String getUrl()
public void setUrl(java.lang.String aUrl)
aUrl
- URL of the website of the org.public boolean hasContacts()
true
if there is at least one EPPOrgContact
set; false
otherwise.public void addContact(EPPOrgContact aContact)
aContact
- Contact add to the list of contacts.public java.util.List<EPPOrgContact> getContacts()
public void setContacts(java.util.List<EPPOrgContact> aContacts)
aContacts
- List of org contacts. If null
will set to an empty
list.protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPOrgCreateCmd
instance.doEncode
in class EPPCreateCmd
aDocument
- DOM Document that is being built. Used as an Element factory.EPPEncodeException
- Unable to encode EPPOrgCreateCmd instance.protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPOrgCreateCmd
attributes from the aElement DOM
Element tree.doDecode
in class EPPCreateCmd
aElement
- Root DOM Element to decode EPPOrgCreateCmd
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPOrgCreateCmd
.clone
in interface EPPCodecComponent
clone
in class EPPCommand
EPPOrgCreateCmd
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String getType()
EPPOrgCreateCmd
.getType
in class EPPCreateCmd
EPPOrgCreateCmd.ELM_NAME
public java.lang.String getNamespace()
EPPOrgCreateCmd
.getNamespace
in interface EPPCodecComponent
getNamespace
in interface EPPMessage
getNamespace
in class EPPCommand
EPPOrgMapFactory.NS
public boolean equals(java.lang.Object aObject)
EPPOrgCreateCmd
with this instance.equals
in class EPPCreateCmd
aObject
- Object to compare with.true
if this object is the same as the aObject argument;
false
otherwisepublic 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.