Package com.verisign.epp.codec.org
Class EPPOrgInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.org.EPPOrgInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Response information associated with an org object.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPOrgInfoResp.static final StringXML root tag forEPPOrgInfoResp.Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionEPPOrgInfoRespdefault constructor.EPPOrgInfoResp(EPPTransId aTransId) EPPOrgInfoRespconstructor that only takes the transaction identifier.EPPOrgInfoResp(EPPTransId aTransId, String aOrgId) EPPOrgInfoRespconstructor that only takes the transaction identifier and the org 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()CloneEPPOrgInfoResp.protected voidDecode theEPPOrgInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPOrgInfoRespinstance.booleanCompare an instance ofEPPOrgInfoRespwith this instance.getEmail()getFax()Gets the last updated date.Gets the EPP command namespace associated withEPPOrgInfoResp.getOrgId()Gets the org identifier.Gets the parent organization id.Gets the postal information for the org.getRoid()getRoles()Gets the roles of the org.Gets the statuses of the org.getType()Gets the EPP response type associated withEPPOrgInfoResp.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?voidsetClientId(String aClientId) voidsetContacts(List<EPPOrgContact> aContacts) voidsetCreatedBy(String aCreatedBy) voidsetCreatedDate(Date aCreatedDate) voidvoidvoidvoidsetLastUpdatedBy(String aLastUpdatedBy) voidsetLastUpdatedDate(Date aLastUpdatedDate) Sets the last updated date.voidSets the org identifier.voidsetParentId(String aParentId) Sets the parent organization id.voidsetPostalInfo(List<EPPOrgPostalDefinition> aPostalInfo) Sets the postal information for the org.voidvoidsetRoles(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.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgInfoResp.- See Also:
-
ELM_NAME
XML root tag forEPPOrgInfoResp.- See Also:
-
-
Constructor Details
-
EPPOrgInfoResp
public EPPOrgInfoResp()EPPOrgInfoRespdefault constructor. -
EPPOrgInfoResp
EPPOrgInfoRespconstructor that only takes the transaction identifier.- Parameters:
aTransId- Transaction Id associated with response.
-
EPPOrgInfoResp
EPPOrgInfoRespconstructor that only takes the transaction identifier and the org identifier.- Parameters:
aTransId- Transaction Id associated with command. Set tonullif a client transaction identifier is not desired.aOrgId- Org 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
-
getRoid
- Returns:
- the roid
-
setRoid
- Parameters:
aRoid- the roid to set
-
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
Gets the parent organization id.- Returns:
- The parent organization id if defined;
nullotherwise.
-
setParentId
Sets the parent organization id.- 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
- Returns:
- the contacts
-
setContacts
- Parameters:
aContacts- the contacts to set
-
getClientId
- Returns:
- the clientId
-
setClientId
- Parameters:
aClientId- the clientId to set
-
getCreatedBy
- Returns:
- the createdBy
-
setCreatedBy
- Parameters:
aCreatedBy- the createdBy to set
-
getCreatedDate
- Returns:
- the createdDate
-
setCreatedDate
- Parameters:
aCreatedDate- the createdDate to set
-
getLastUpdatedBy
- Returns:
- the lastUpdatedBy
-
setLastUpdatedBy
- Parameters:
aLastUpdatedBy- the lastUpdatedBy to set
-
getLastUpdatedDate
Gets the last updated date.- Returns:
- the lastUpdatedDate Last updated date if set;
nullotherwise.
-
setLastUpdatedDate
Sets the last updated date.- Parameters:
aLastUpdatedDate- Last updated date and time
-
doEncode
Encode a DOM Element tree from the attributes of theEPPOrgInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPOrgInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPOrgInfoResp instance.
-
doDecode
Decode theEPPOrgInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPOrgInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPOrgInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPOrgInfoResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getType
Gets the EPP response type associated withEPPOrgInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPOrgInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPOrgInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPOrgMapFactory.NS
-
equals
Compare an instance ofEPPOrgInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- 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 classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-