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,Serializable,Cloneable
Command used to update a org object.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPOrgUpdateCmd.static final StringXML 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
ConstructorsConstructorDescriptionEPPOrgUpdateCmddefault constructor with the default form ofForm.LIST_FORM.EPPOrgUpdateCmd(String aTransId) EPPOrgUpdateCmdconstructor that takes the client transaction identifier. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddContact(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.clone()CloneEPPOrgUpdateCmd.protected voidDecode theEPPOrgUpdateCmdattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPOrgUpdateCmdinstance.booleanCompare an instance ofEPPOrgUpdateCmdwith this instance.Gets the add contacts.Gets the add roles.Gets the add statuses.getEmail()getFax()getKey()Gets the key for the organization object, which is the organization identifier.Gets the EPP command namespace associated withEPPOrgUpdateCmd.getOrgId()Gets the org identifier.Gets the parent org identifier for a hierarchy of orgs.Gets the postal information for the org.Gets the remove contacts.Gets the remove roles.Gets the remove statuses.getType()Gets the EPP response type associated withEPPOrgUpdateCmd.getUrl()Gets the URL of the website of the org.getVoice()booleanIs there any add contacts set?booleanIs there any add roles set?booleanIs there any add statuses set?booleanhasEmail()Has the email been set?booleanhasFax()Has the fax been set?booleanHas the fax extension been set?booleanHas the parent identifier been set?booleanIs there any postal information set?booleanIs there any remove contacts set?booleanIs there any remove roles set?booleanIs there any remove statuses set?booleanhasUrl()Has the url been set?booleanhasVoice()Has the voice been set?booleanHas the voice extension been set?voidsetAddContacts(List<EPPOrgContact> aContacts) Sets the add contacts.voidsetAddRoles(List<EPPOrgRole> aRoles) Sets the add roles.voidsetAddStatuses(List<EPPOrgStatus> aStatuses) Sets the add statuses.voidvoidvoidvoidSets the org identifier.voidsetParentId(String aParentId) voidsetPostalInfo(List<EPPOrgPostalDefinition> aPostalInfo) Sets the postal information for the org.voidsetRemContacts(List<EPPOrgContact> aContacts) Sets the remove contacts.voidsetRemRoles(List<EPPOrgRole> aRoles) Sets the remove roles.voidsetRemStatuses(List<EPPOrgStatus> aStatuses) Sets the remove statuses.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.EPPUpdateCmd
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 forEPPOrgUpdateCmd.- See Also:
-
ELM_NAME
XML root tag forEPPOrgUpdateCmd.- See Also:
-
-
Constructor Details
-
EPPOrgUpdateCmd
public EPPOrgUpdateCmd()EPPOrgUpdateCmddefault constructor with the default form ofForm.LIST_FORM. -
EPPOrgUpdateCmd
EPPOrgUpdateCmdconstructor 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
-
hasParentId
public boolean hasParentId()Has the parent identifier been set?- Returns:
trueif the parent identifier has been set;falseotherwise.
-
getParentId
Gets the parent org identifier for a hierarchy of orgs.- Returns:
- Parent identifier if set;
nullotherwise.
-
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.
-
hasVoice
public boolean hasVoice()Has the voice been set?- Returns:
trueif the voice has been set;falseotherwise.
-
getVoice
- Returns:
- the voice
-
setVoice
- 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
- Returns:
- the voiceExt
-
setVoiceExt
- Parameters:
aVoiceExt- the voiceExt to set
-
hasFax
public boolean hasFax()Has the fax been set?- Returns:
trueif the fax has been set;falseotherwise.
-
getFax
- Returns:
- the fax
-
setFax
- 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
- Returns:
- the faxExt
-
setFaxExt
- Parameters:
aFaxExt- the faxExt to set
-
hasEmail
public boolean hasEmail()Has the email been set?- Returns:
trueif the email has been set;falseotherwise.
-
getEmail
- Returns:
- the email
-
setEmail
- Parameters:
aEmail- the email to set
-
hasUrl
public boolean hasUrl()Has the url been set?- Returns:
trueif the url has been set;falseotherwise.
-
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.
-
hasAddContacts
public boolean hasAddContacts()Is there any add contacts set?- Returns:
trueif there is at least one addEPPOrgContactset;falseotherwise.
-
addAddContact
Adds an add contact to the list of add contacts.- Parameters:
aContact- Contact to add to the list of add contacts.
-
getAddContacts
Gets the add contacts.- Returns:
- List of add contacts set.
-
setAddContacts
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
Adds a remove contact to the list of remove contacts.- Parameters:
aContact- Contact to add to the list of remove contacts.
-
getRemContacts
Gets the remove contacts.- Returns:
- List of remove contacts set.
-
setRemContacts
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
Adds an add role to the list of add roles.- Parameters:
aRole- Role to add to the list of add roles.
-
getAddRoles
Gets the add roles.- Returns:
- List of add roles set.
-
setAddRoles
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
Adds a remove role to the list of remove roles.- Parameters:
aRole- Role to add to the list of remove roles.
-
getRemRoles
Gets the remove roles.- Returns:
- List of remove roles set.
-
setRemRoles
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
Adds an add status to the list of add statuses.- Parameters:
aStatus- Status to add to the list of add statuses.
-
getAddStatuses
Gets the add statuses.- Returns:
- List of add statuses set.
-
setAddStatuses
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
Adds a remove status to the list of remove statuses.- Parameters:
aStatus- Status to add to the list of remove statuses.
-
getRemStatuses
Gets the remove statuses.- Returns:
- List of remove statuses set.
-
setRemStatuses
Sets the remove statuses.- Parameters:
aStatuses- List of remove statuses
-
doEncode
Encode 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
Decode 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
CloneEPPOrgUpdateCmd.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPCommand- Returns:
- clone of
EPPOrgUpdateCmd - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getType
Gets the EPP response type associated withEPPOrgUpdateCmd.- Overrides:
getTypein classEPPUpdateCmd- Returns:
EPPOrgUpdateCmd.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPOrgUpdateCmd.- 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 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
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPCommand- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-