Package com.verisign.epp.codec.org
Class EPPOrgUpdateCmd
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPCommand
-
- com.verisign.epp.codec.gen.EPPUpdateCmd
-
- com.verisign.epp.codec.org.EPPOrgUpdateCmd
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPOrgUpdateCmd extends EPPUpdateCmd
Command used to update a org object.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPOrgUpdateCmd.static java.lang.StringELM_NAMEXML root tag forEPPOrgUpdateCmd.-
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
Constructors Constructor Description EPPOrgUpdateCmd()EPPOrgUpdateCmddefault constructor with the default form ofForm.LIST_FORM.EPPOrgUpdateCmd(java.lang.String aTransId)EPPOrgUpdateCmdconstructor that takes the client transaction identifier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAddContact(EPPOrgContact aContact)Adds an add contact to the list of add contacts.voidaddAddRole(EPPOrgRole aRole)Adds an add role to the list of add roles.voidaddAddStatus(EPPOrgStatus aStatus)Adds an add status to the list of add statuses.voidaddPostalInfo(EPPOrgPostalDefinition aPostalInfo)Adds a postal definition to the postal information for the org.voidaddRemContact(EPPOrgContact aContact)Adds a remove contact to the list of remove contacts.voidaddRemRole(EPPOrgRole aRole)Adds a remove role to the list of remove roles.voidaddRemStatus(EPPOrgStatus aStatus)Adds a remove status to the list of remove statuses.java.lang.Objectclone()CloneEPPOrgUpdateCmd.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPOrgUpdateCmdattributes 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 theEPPOrgUpdateCmdinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPOrgUpdateCmdwith this instance.java.util.List<EPPOrgContact>getAddContacts()Gets the add contacts.java.util.List<EPPOrgRole>getAddRoles()Gets the add roles.java.util.List<EPPOrgStatus>getAddStatuses()Gets the add statuses.java.lang.StringgetEmail()java.lang.StringgetFax()java.lang.StringgetFaxExt()java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPOrgUpdateCmd.java.lang.StringgetOrgId()Gets the org identifier.java.lang.StringgetParentId()Gets the parent org identifier for a hierarchy of orgs.java.util.List<EPPOrgPostalDefinition>getPostalInfo()Gets the postal information for the org.java.util.List<EPPOrgContact>getRemContacts()Gets the remove contacts.java.util.List<EPPOrgRole>getRemRoles()Gets the remove roles.java.util.List<EPPOrgStatus>getRemStatuses()Gets the remove statuses.java.lang.StringgetType()Gets the EPP response type associated withEPPOrgUpdateCmd.java.lang.StringgetUrl()Gets the URL of the website of the org.java.lang.StringgetVoice()java.lang.StringgetVoiceExt()booleanhasAddContacts()Is there any add contacts set?booleanhasAddRoles()Is there any add roles set?booleanhasAddStatuses()Is there any add statuses set?booleanhasEmail()Has the email been set?booleanhasFax()Has the fax been set?booleanhasFaxExt()Has the fax extension been set?booleanhasParentId()Has the parent identifier been set?booleanhasPostalInfo()Is there any postal information set?booleanhasRemContacts()Is there any remove contacts set?booleanhasRemRoles()Is there any remove roles set?booleanhasRemStatuses()Is there any remove statuses set?booleanhasUrl()Has the url been set?booleanhasVoice()Has the voice been set?booleanhasVoiceExt()Has the voice extension been set?voidsetAddContacts(java.util.List<EPPOrgContact> aContacts)Sets the add contacts.voidsetAddRoles(java.util.List<EPPOrgRole> aRoles)Sets the add roles.voidsetAddStatuses(java.util.List<EPPOrgStatus> aStatuses)Sets the add statuses.voidsetEmail(java.lang.String aEmail)voidsetFax(java.lang.String aFax)voidsetFaxExt(java.lang.String aFaxExt)voidsetOrgId(java.lang.String aOrgId)Sets the org identifier.voidsetParentId(java.lang.String aParentId)voidsetPostalInfo(java.util.List<EPPOrgPostalDefinition> aPostalInfo)Sets the postal information for the org.voidsetRemContacts(java.util.List<EPPOrgContact> aContacts)Sets the remove contacts.voidsetRemRoles(java.util.List<EPPOrgRole> aRoles)Sets the remove roles.voidsetRemStatuses(java.util.List<EPPOrgStatus> aStatuses)Sets the remove statuses.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.EPPUpdateCmd
doGenDecode, doGenEncode
-
Methods inherited from class com.verisign.epp.codec.gen.EPPCommand
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getOp, getTransId, hasExtension, hasExtensions, hasTransId, setExtension, setExtensions, setTransId
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPOrgUpdateCmd.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPOrgUpdateCmd.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPOrgUpdateCmd
public EPPOrgUpdateCmd()
EPPOrgUpdateCmddefault constructor with the default form ofForm.LIST_FORM.
-
EPPOrgUpdateCmd
public EPPOrgUpdateCmd(java.lang.String aTransId)
EPPOrgUpdateCmdconstructor that takes the client transaction identifier.- Parameters:
aTransId- Client transaction 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
-
hasParentId
public boolean hasParentId()
Has the parent identifier been set?- Returns:
trueif the parent identifier has been set;falseotherwise.
-
getParentId
public java.lang.String getParentId()
Gets the parent org identifier for a hierarchy of orgs.- Returns:
- Parent identifier if set;
nullotherwise.
-
setParentId
public void setParentId(java.lang.String aParentId)
- 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.
-
hasVoice
public boolean hasVoice()
Has the voice been set?- Returns:
trueif the voice has been set;falseotherwise.
-
getVoice
public java.lang.String getVoice()
- Returns:
- the voice
-
setVoice
public void setVoice(java.lang.String aVoice)
- Parameters:
aVoice- the voice to set
-
hasVoiceExt
public boolean hasVoiceExt()
Has the voice extension been set?- Returns:
trueif the voice extension has been set;falseotherwise.
-
getVoiceExt
public java.lang.String getVoiceExt()
- Returns:
- the voiceExt
-
setVoiceExt
public void setVoiceExt(java.lang.String aVoiceExt)
- Parameters:
aVoiceExt- the voiceExt to set
-
hasFax
public boolean hasFax()
Has the fax been set?- Returns:
trueif the fax has been set;falseotherwise.
-
getFax
public java.lang.String getFax()
- Returns:
- the fax
-
setFax
public void setFax(java.lang.String aFax)
- Parameters:
aFax- the fax to set
-
hasFaxExt
public boolean hasFaxExt()
Has the fax extension been set?- Returns:
trueif the fax extension has been set;falseotherwise.
-
getFaxExt
public java.lang.String getFaxExt()
- Returns:
- the faxExt
-
setFaxExt
public void setFaxExt(java.lang.String aFaxExt)
- Parameters:
aFaxExt- the faxExt to set
-
hasEmail
public boolean hasEmail()
Has the email been set?- Returns:
trueif the email has been set;falseotherwise.
-
getEmail
public java.lang.String getEmail()
- Returns:
- the email
-
setEmail
public void setEmail(java.lang.String aEmail)
- Parameters:
aEmail- the email to set
-
hasUrl
public boolean hasUrl()
Has the url been set?- Returns:
trueif the url has been set;falseotherwise.
-
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.
-
hasAddContacts
public boolean hasAddContacts()
Is there any add contacts set?- Returns:
trueif there is at least one addEPPOrgContactset;falseotherwise.
-
addAddContact
public void addAddContact(EPPOrgContact aContact)
Adds an add contact to the list of add contacts.- Parameters:
aContact- Contact to add to the list of add contacts.
-
getAddContacts
public java.util.List<EPPOrgContact> getAddContacts()
Gets the add contacts.- Returns:
- List of add contacts set.
-
setAddContacts
public void setAddContacts(java.util.List<EPPOrgContact> aContacts)
Sets the add contacts.- Parameters:
aContacts- List of add contacts
-
hasRemContacts
public boolean hasRemContacts()
Is there any remove contacts set?- Returns:
trueif there is at least one removeEPPOrgContactset;falseotherwise.
-
addRemContact
public void addRemContact(EPPOrgContact aContact)
Adds a remove contact to the list of remove contacts.- Parameters:
aContact- Contact to add to the list of remove contacts.
-
getRemContacts
public java.util.List<EPPOrgContact> getRemContacts()
Gets the remove contacts.- Returns:
- List of remove contacts set.
-
setRemContacts
public void setRemContacts(java.util.List<EPPOrgContact> aContacts)
Sets the remove contacts.- Parameters:
aContacts- List of remove contacts
-
hasAddRoles
public boolean hasAddRoles()
Is there any add roles set?- Returns:
trueif there is at least one addEPPOrgRoleset;falseotherwise.
-
addAddRole
public void addAddRole(EPPOrgRole aRole)
Adds an add role to the list of add roles.- Parameters:
aRole- Role to add to the list of add roles.
-
getAddRoles
public java.util.List<EPPOrgRole> getAddRoles()
Gets the add roles.- Returns:
- List of add roles set.
-
setAddRoles
public void setAddRoles(java.util.List<EPPOrgRole> aRoles)
Sets the add roles.- Parameters:
aRoles- List of add roles
-
hasRemRoles
public boolean hasRemRoles()
Is there any remove roles set?- Returns:
trueif there is at least one removeEPPOrgRoleset;falseotherwise.
-
addRemRole
public void addRemRole(EPPOrgRole aRole)
Adds a remove role to the list of remove roles.- Parameters:
aRole- Role to add to the list of remove roles.
-
getRemRoles
public java.util.List<EPPOrgRole> getRemRoles()
Gets the remove roles.- Returns:
- List of remove roles set.
-
setRemRoles
public void setRemRoles(java.util.List<EPPOrgRole> aRoles)
Sets the remove roles.- Parameters:
aRoles- List of remove roles
-
hasAddStatuses
public boolean hasAddStatuses()
Is there any add statuses set?- Returns:
trueif there is at least one addEPPOrgStatusset;falseotherwise.
-
addAddStatus
public void addAddStatus(EPPOrgStatus aStatus)
Adds an add status to the list of add statuses.- Parameters:
aStatus- Status to add to the list of add statuses.
-
getAddStatuses
public java.util.List<EPPOrgStatus> getAddStatuses()
Gets the add statuses.- Returns:
- List of add statuses set.
-
setAddStatuses
public void setAddStatuses(java.util.List<EPPOrgStatus> aStatuses)
Sets the add statuses.- Parameters:
aStatuses- List of add statuses
-
hasRemStatuses
public boolean hasRemStatuses()
Is there any remove statuses set?- Returns:
trueif there is at least one removeEPPOrgStatusset;falseotherwise.
-
addRemStatus
public void addRemStatus(EPPOrgStatus aStatus)
Adds a remove status to the list of remove statuses.- Parameters:
aStatus- Status to add to the list of remove statuses.
-
getRemStatuses
public java.util.List<EPPOrgStatus> getRemStatuses()
Gets the remove statuses.- Returns:
- List of remove statuses set.
-
setRemStatuses
public void setRemStatuses(java.util.List<EPPOrgStatus> aStatuses)
Sets the remove statuses.- Parameters:
aStatuses- List of remove statuses
-
doEncode
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPOrgUpdateCmdinstance.- Specified by:
doEncodein classEPPUpdateCmd- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPOrgUpdateCmd instance.
- Throws:
EPPEncodeException- Unable to encode EPPOrgUpdateCmd instance.
-
doDecode
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPOrgUpdateCmdattributes from the aElement DOM Element tree.- Specified by:
doDecodein classEPPUpdateCmd- Parameters:
aElement- Root DOM Element to decodeEPPOrgUpdateCmdfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPOrgUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPOrgUpdateCmd - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPOrgUpdateCmd.- Overrides:
getTypein classEPPUpdateCmd- Returns:
EPPOrgUpdateCmd.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPOrgUpdateCmd.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Specified by:
getNamespacein classEPPCommand- Returns:
EPPOrgMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPOrgUpdateCmdwith this instance.- Overrides:
equalsin classEPPUpdateCmd- 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 classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-