Package com.verisign.epp.codec.org
Class EPPOrgCreateCmd
java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPCreateCmd
com.verisign.epp.codec.org.EPPOrgCreateCmd
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Command used to create an org object.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPOrgCreateCmd.static final StringXML root tag forEPPOrgCreateCmd.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
ConstructorsConstructorDescriptionEPPOrgCreateCmddefault constructor with the default form ofForm.LIST_FORM.EPPOrgCreateCmd(String aTransId) EPPOrgCreateCmdconstructor that takes the client transaction identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddContact(EPPOrgContact aContact) Adds a contact to the list of contacts.voidaddPostalInfo(EPPOrgPostalDefinition aPostalInfo) Adds a postal definition to the postal information for the org.voidaddRole(EPPOrgRole aRole) Add a role to list of org roles.voidaddStatus(EPPOrgStatus aStatus) Add a status to list of org statuses.clone()CloneEPPOrgCreateCmd.protected voidDecode theEPPOrgCreateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPOrgCreateCmdinstance.booleanCompare an instance ofEPPOrgCreateCmdwith this instance.Gets the list of org contacts.getEmail()getFax()getKey()Gets the key for the organization object, which is the organization identifier.Gets the EPP command namespace associated withEPPOrgCreateCmd.getOrgId()Gets the org identifier.Gets the postal information for the org.getRoles()Gets the roles of the org.Gets the statuses of the org.getType()Gets the EPP response type associated withEPPOrgCreateCmd.getUrl()Gets the URL of the website of the org.getVoice()booleanIs there any contacts set?booleanIs the parentId defined?booleanIs there any postal information set?booleanhasRole()Is there at least one role?booleanIs there at least one status?voidsetContacts(List<EPPOrgContact> aContacts) Sets the list of org contacts.voidvoidvoidvoidSets the org identifier.voidsetParentId(String aParentId) voidsetPostalInfo(List<EPPOrgPostalDefinition> aPostalInfo) Sets the postal information for the org.voidsetRoles(List<EPPOrgRole> aRoles) Sets the roles of the org.voidsetStatuses(List<EPPOrgStatus> aStatuses) Sets the statuses of the org.voidSets the URL of the website of the org.voidvoidsetVoiceExt(String aVoiceExt) toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.gen.EPPCreateCmd
doGenDecode, doGenEncodeMethods 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 forEPPOrgCreateCmd.- See Also:
-
ELM_NAME
XML root tag forEPPOrgCreateCmd.- See Also:
-
-
Constructor Details
-
EPPOrgCreateCmd
public EPPOrgCreateCmd()EPPOrgCreateCmddefault constructor with the default form ofForm.LIST_FORM. -
EPPOrgCreateCmd
EPPOrgCreateCmdconstructor that takes the client transaction identifier.- Parameters:
aTransId- Client transaction identifier.
-
-
Method Details
-
getOrgId
Gets the org identifier.- Returns:
- The org identifier if defined;
nullotherwise.
-
setOrgId
Sets the org identifier.- Parameters:
aOrgId- The org identifier
-
hasRole
public boolean hasRole()Is there at least one role?- Returns:
trueif there at least one role;falseotherwise.
-
getRoles
Gets the roles of the org.- Returns:
- List of roles of the org.
-
setRoles
Sets the roles of the org.- Parameters:
aRoles- Organization roles
-
addRole
Add a role to list of org roles.- Parameters:
aRole- Org role to add.
-
hasStatus
public boolean hasStatus()Is there at least one status?- Returns:
trueif there at least one status;falseotherwise.
-
getStatuses
Gets the statuses of the org.- Returns:
- List of statuses of the org.
-
setStatuses
Sets the statuses of the org.- Parameters:
aStatuses- Organization statuses
-
addStatus
Add a status to list of org statuses.- Parameters:
aStatus- Org status to add.
-
hasParentId
public boolean hasParentId()Is the parentId defined?- Returns:
trueif the parentId is defined;falseotherwise.
-
getParentId
- Returns:
- the parentId
-
setParentId
- Parameters:
aParentId- the parentId to set
-
hasPostalInfo
public boolean hasPostalInfo()Is there any postal information set?- Returns:
trueif there is at least oneEPPOrgPostalDefinitionset in the postal information;falseotherwise.
-
addPostalInfo
Adds a postal definition to the postal information for the org.- Parameters:
aPostalInfo- Postal definition to add to the postal information.
-
getPostalInfo
Gets the postal information for the org. There can be one or twoEPPOrgPostalDefinitionobjects in the postal information list.- Returns:
- Postal information for the org
-
setPostalInfo
Sets the postal information for the org. There can be one or twoEPPOrgPostalDefinitionobjects in the postal information list.- Parameters:
aPostalInfo- Postal information for the org.
-
getVoice
- Returns:
- the voice
-
setVoice
- Parameters:
aVoice- the voice to set
-
getVoiceExt
- Returns:
- the voiceExt
-
setVoiceExt
- Parameters:
aVoiceExt- the voiceExt to set
-
getFax
- Returns:
- the fax
-
setFax
- Parameters:
aFax- the fax to set
-
getFaxExt
- Returns:
- the faxExt
-
setFaxExt
- Parameters:
aFaxExt- the faxExt to set
-
getEmail
- Returns:
- the email
-
setEmail
- Parameters:
aEmail- the email to set
-
getUrl
Gets the URL of the website of the org.- Returns:
- URL of the website of the org.
-
setUrl
Sets the URL of the website of the org.- Parameters:
aUrl- URL of the website of the org.
-
hasContacts
public boolean hasContacts()Is there any contacts set?- Returns:
trueif there is at least oneEPPOrgContactset;falseotherwise.
-
addContact
Adds a contact to the list of contacts.- Parameters:
aContact- Contact add to the list of contacts.
-
getContacts
Gets the list of org contacts.- Returns:
- The list of org contacts.
-
setContacts
Sets the list of org contacts.- Parameters:
aContacts- List of org contacts. Ifnullwill set to an empty list.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPOrgCreateCmdinstance.- Specified by:
doEncodein classEPPCreateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPOrgCreateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPOrgCreateCmd instance.
-
doDecode
Decode theEPPOrgCreateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPCreateCmd- Parameters:
aElement- Root DOM Element to decodeEPPOrgCreateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPOrgCreateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPOrgCreateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getType
Gets the EPP response type associated withEPPOrgCreateCmd.- Overrides:
getTypein classEPPCreateCmd- Returns:
EPPOrgCreateCmd.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPOrgCreateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPOrgMapFactory.NS
-
getKey
Gets the key for the organization object, which is the organization identifier.- Overrides:
getKeyin classEPPCommand- Returns:
- The organization identifier if set;
nullotherwise.
-
equals
Compare an instance ofEPPOrgCreateCmdwith this instance.- Overrides:
equalsin classEPPCreateCmd- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-