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,java.io.Serializable,java.lang.Cloneable
public class EPPOrgInfoResp extends EPPResponse
Response information associated with an org object.- See Also:
EPPOrgInfoCmd, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPOrgInfoResp.static java.lang.StringELM_NAMEXML 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
Constructors Constructor Description EPPOrgInfoResp()EPPOrgInfoRespdefault constructor.EPPOrgInfoResp(EPPTransId aTransId)EPPOrgInfoRespconstructor that only takes the transaction identifier.EPPOrgInfoResp(EPPTransId aTransId, java.lang.String aOrgId)EPPOrgInfoRespconstructor that only takes the transaction identifier and the org identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddContact(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.java.lang.Objectclone()CloneEPPOrgInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPOrgInfoRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPOrgInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPOrgInfoRespwith this instance.java.lang.StringgetClientId()java.util.List<EPPOrgContact>getContacts()java.lang.StringgetCreatedBy()java.util.DategetCreatedDate()java.lang.StringgetEmail()java.lang.StringgetFax()java.lang.StringgetFaxExt()java.lang.StringgetLastUpdatedBy()java.util.DategetLastUpdatedDate()Gets the last updated date.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPOrgInfoResp.java.lang.StringgetOrgId()Gets the org identifier.java.lang.StringgetParentId()Gets the parent organization id.java.util.List<EPPOrgPostalDefinition>getPostalInfo()Gets the postal information for the org.java.lang.StringgetRoid()java.util.List<EPPOrgRole>getRoles()Gets the roles of the org.java.util.List<EPPOrgStatus>getStatuses()Gets the statuses of the org.java.lang.StringgetType()Gets the EPP response type associated withEPPOrgInfoResp.java.lang.StringgetUrl()Gets the URL of the website of the org.java.lang.StringgetVoice()java.lang.StringgetVoiceExt()booleanhasContacts()Is there any contacts set?booleanhasParentId()Is the parentId defined?booleanhasPostalInfo()Is there any postal information set?booleanhasRole()Is there at least one role?booleanhasStatus()Is there at least one status?voidsetClientId(java.lang.String aClientId)voidsetContacts(java.util.List<EPPOrgContact> aContacts)voidsetCreatedBy(java.lang.String aCreatedBy)voidsetCreatedDate(java.util.Date aCreatedDate)voidsetEmail(java.lang.String aEmail)voidsetFax(java.lang.String aFax)voidsetFaxExt(java.lang.String aFaxExt)voidsetLastUpdatedBy(java.lang.String aLastUpdatedBy)voidsetLastUpdatedDate(java.util.Date aLastUpdatedDate)Sets the last updated date.voidsetOrgId(java.lang.String aOrgId)Sets the org identifier.voidsetParentId(java.lang.String aParentId)Sets the parent organization id.voidsetPostalInfo(java.util.List<EPPOrgPostalDefinition> aPostalInfo)Sets the postal information for the org.voidsetRoid(java.lang.String aRoid)voidsetRoles(java.util.List<EPPOrgRole> aRoles)Sets the roles of the org.voidsetStatuses(java.util.List<EPPOrgStatus> aStatuses)Sets the statuses of the org.voidsetUrl(java.lang.String aUrl)Sets the URL of the website of the org.voidsetVoice(java.lang.String aVoice)voidsetVoiceExt(java.lang.String aVoiceExt)java.lang.StringtoString()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 Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPOrgInfoResp.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPOrgInfoResp.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPOrgInfoResp
public EPPOrgInfoResp()
EPPOrgInfoRespdefault constructor.
-
EPPOrgInfoResp
public EPPOrgInfoResp(EPPTransId aTransId)
EPPOrgInfoRespconstructor that only takes the transaction identifier.- Parameters:
aTransId- Transaction Id associated with response.
-
EPPOrgInfoResp
public EPPOrgInfoResp(EPPTransId aTransId, java.lang.String aOrgId)
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 Detail
-
getOrgId
public java.lang.String getOrgId()
Gets the org identifier.- Returns:
- The org identifier if defined;
nullotherwise.
-
setOrgId
public void setOrgId(java.lang.String aOrgId)
Sets the org identifier.- Parameters:
aOrgId- The org identifier
-
getRoid
public java.lang.String getRoid()
- Returns:
- the roid
-
setRoid
public void setRoid(java.lang.String aRoid)
- 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
public java.util.List<EPPOrgRole> getRoles()
Gets the roles of the org.- Returns:
- List of roles of the org.
-
setRoles
public void setRoles(java.util.List<EPPOrgRole> aRoles)
Sets the roles of the org.- Parameters:
aRoles- Organization roles
-
addRole
public void addRole(EPPOrgRole aRole)
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
public java.util.List<EPPOrgStatus> getStatuses()
Gets the statuses of the org.- Returns:
- List of statuses of the org.
-
setStatuses
public void setStatuses(java.util.List<EPPOrgStatus> aStatuses)
Sets the statuses of the org.- Parameters:
aStatuses- Organization statuses
-
addStatus
public void addStatus(EPPOrgStatus aStatus)
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
public java.lang.String getParentId()
Gets the parent organization id.- Returns:
- The parent organization id if defined;
nullotherwise.
-
setParentId
public void setParentId(java.lang.String aParentId)
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
public void addPostalInfo(EPPOrgPostalDefinition aPostalInfo)
Adds a postal definition to the postal information for the org.- Parameters:
aPostalInfo- Postal definition to add to the postal information.
-
getPostalInfo
public java.util.List<EPPOrgPostalDefinition> 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
public void setPostalInfo(java.util.List<EPPOrgPostalDefinition> aPostalInfo)
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
public java.lang.String getVoice()
- Returns:
- the voice
-
setVoice
public void setVoice(java.lang.String aVoice)
- Parameters:
aVoice- the voice to set
-
getVoiceExt
public java.lang.String getVoiceExt()
- Returns:
- the voiceExt
-
setVoiceExt
public void setVoiceExt(java.lang.String aVoiceExt)
- Parameters:
aVoiceExt- the voiceExt to set
-
getFax
public java.lang.String getFax()
- Returns:
- the fax
-
setFax
public void setFax(java.lang.String aFax)
- Parameters:
aFax- the fax to set
-
getFaxExt
public java.lang.String getFaxExt()
- Returns:
- the faxExt
-
setFaxExt
public void setFaxExt(java.lang.String aFaxExt)
- Parameters:
aFaxExt- the faxExt to set
-
getEmail
public java.lang.String getEmail()
- Returns:
- the email
-
setEmail
public void setEmail(java.lang.String aEmail)
- Parameters:
aEmail- the email to set
-
getUrl
public java.lang.String getUrl()
Gets the URL of the website of the org.- Returns:
- URL of the website of the org.
-
setUrl
public void setUrl(java.lang.String aUrl)
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
public void addContact(EPPOrgContact aContact)
Adds a contact to the list of contacts.- Parameters:
aContact- Contact add to the list of contacts.
-
getContacts
public java.util.List<EPPOrgContact> getContacts()
- Returns:
- the contacts
-
setContacts
public void setContacts(java.util.List<EPPOrgContact> aContacts)
- Parameters:
aContacts- the contacts to set
-
getClientId
public java.lang.String getClientId()
- Returns:
- the clientId
-
setClientId
public void setClientId(java.lang.String aClientId)
- Parameters:
aClientId- the clientId to set
-
getCreatedBy
public java.lang.String getCreatedBy()
- Returns:
- the createdBy
-
setCreatedBy
public void setCreatedBy(java.lang.String aCreatedBy)
- Parameters:
aCreatedBy- the createdBy to set
-
getCreatedDate
public java.util.Date getCreatedDate()
- Returns:
- the createdDate
-
setCreatedDate
public void setCreatedDate(java.util.Date aCreatedDate)
- Parameters:
aCreatedDate- the createdDate to set
-
getLastUpdatedBy
public java.lang.String getLastUpdatedBy()
- Returns:
- the lastUpdatedBy
-
setLastUpdatedBy
public void setLastUpdatedBy(java.lang.String aLastUpdatedBy)
- Parameters:
aLastUpdatedBy- the lastUpdatedBy to set
-
getLastUpdatedDate
public java.util.Date getLastUpdatedDate()
Gets the last updated date.- Returns:
- the lastUpdatedDate Last updated date if set;
nullotherwise.
-
setLastUpdatedDate
public void setLastUpdatedDate(java.util.Date aLastUpdatedDate)
Sets the last updated date.- Parameters:
aLastUpdatedDate- Last updated date and time
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPOrgInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPOrgInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPOrgInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPOrgInfoResp - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPOrgInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPOrgInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPOrgInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPOrgMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
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
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-