Package com.verisign.epp.codec.orgext
Class EPPOrgExtUpdate
java.lang.Object
com.verisign.epp.codec.orgext.EPPOrgExtUpdate
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPOrgExtCreate is used in the extension to the update command to
add, remove, and change organizations.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPOrgExtCreate.EPPOrgExtUpdate(EPPOrgExtAddRemChg aAddOrgs, EPPOrgExtAddRemChg aRemOrgs, EPPOrgExtAddRemChg aChgOrgs) constructor forEPPOrgExtCreatethat takes the three set of organizations to add, remove, and change as parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAddOrg(EPPOrgExtId aOrgId) Adds an organization to the list of organizations to add.voidaddChgOrg(EPPOrgExtId aOrgId) Adds an organization to the list of organizations to change.voidaddRemOrg(EPPOrgExtId aOrgId) Adds an organization to the list of organizations to remove.clone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPOrgExtwith this instance.Gets the organizations to add.Gets the organizations to change.Returns the XML namespace associated with theEPPCodecComponent.Gets the organizations to remove.booleanAre any add organizations defined?booleanAre any change organizations defined?booleanAre any remove organizations defined?voidsetAddOrgs(EPPOrgExtAddRemChg aAddOrgs) Sets the organizations to add.voidsetChgOrgs(EPPOrgExtAddRemChg aChgOrgs) Sets the organizations to change.voidsetRemOrgs(EPPOrgExtAddRemChg aRemOrgs) Sets the organizations to remove.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgExtCreate.- See Also:
-
ELM_NAME
XML root tag forEPPOrgExtCreate.- See Also:
-
-
Constructor Details
-
EPPOrgExtUpdate
public EPPOrgExtUpdate()Default constructor forEPPOrgExtCreate. -
EPPOrgExtUpdate
public EPPOrgExtUpdate(EPPOrgExtAddRemChg aAddOrgs, EPPOrgExtAddRemChg aRemOrgs, EPPOrgExtAddRemChg aChgOrgs) constructor forEPPOrgExtCreatethat takes the three set of organizations to add, remove, and change as parameters. A parameter can be set tonullto be undefined.- Parameters:
aAddOrgs- Organizations to add. Set tonullto be undefined.aRemOrgs- Organizations to remove. Set tonullto be undefined.aChgOrgs- Organizations to change. Set tonullto be undefined.
-
-
Method Details
-
getAddOrgs
Gets the organizations to add.- Returns:
- The organizations to add if defined;
nullotherwise.
-
setAddOrgs
Sets the organizations to add.- Parameters:
aAddOrgs- The organizations to add. Set tonullto clear the organizations.
-
addAddOrg
Adds an organization to the list of organizations to add.- Parameters:
aOrgId- Organization to add
-
hasAddOrgs
public boolean hasAddOrgs()Are any add organizations defined?- Returns:
trueif add organizations are defined;falseotherwise.
-
getRemOrgs
Gets the organizations to remove.- Returns:
- The organizations to remove if defined;
nullotherwise.
-
setRemOrgs
Sets the organizations to remove.- Parameters:
aRemOrgs- The organizations to remove. Set tonullto clear the organizations.
-
addRemOrg
Adds an organization to the list of organizations to remove.- Parameters:
aOrgId- Organization to remove
-
hasRemOrgs
public boolean hasRemOrgs()Are any remove organizations defined?- Returns:
trueif remove organizations are defined;falseotherwise.
-
getChgOrgs
Gets the organizations to change.- Returns:
- The organizations to change if defined;
nullotherwise.
-
setChgOrgs
Sets the organizations to change.- Parameters:
aChgOrgs- The organizations to change. Set tonullto clear the organizations.
-
addChgOrg
Adds an organization to the list of organizations to change.- Parameters:
aOrgId- Organization to change
-
hasChgOrgs
public boolean hasChgOrgs()Are any change organizations defined?- Returns:
trueif change organizations are defined;falseotherwise.
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is updated and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPOrgExtCreate
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPOrgExt - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPOrgExtwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-