public class EPPOrgExtUpdate extends java.lang.Object implements EPPCodecComponent
EPPOrgExtCreate
is used in the extension to the update command to
add, remove, and change organizations.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPOrgExtCreate . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPOrgExtCreate . |
Constructor and Description |
---|
EPPOrgExtUpdate()
Default constructor for
EPPOrgExtCreate . |
EPPOrgExtUpdate(EPPOrgExtAddRemChg aAddOrgs,
EPPOrgExtAddRemChg aRemOrgs,
EPPOrgExtAddRemChg aChgOrgs)
constructor for
EPPOrgExtCreate that takes the three set of
organizations to add, remove, and change as parameters. |
Modifier and Type | Method and Description |
---|---|
void |
addAddOrg(EPPOrgExtId aOrgId)
Adds an organization to the list of organizations to add.
|
void |
addChgOrg(EPPOrgExtId aOrgId)
Adds an organization to the list of organizations to change.
|
void |
addRemOrg(EPPOrgExtId aOrgId)
Adds an organization to the list of organizations to remove.
|
java.lang.Object |
clone()
clone an
EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes.
|
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree.
|
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPOrgExt with this instance. |
EPPOrgExtAddRemChg |
getAddOrgs()
Gets the organizations to add.
|
EPPOrgExtAddRemChg |
getChgOrgs()
Gets the organizations to change.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
EPPOrgExtAddRemChg |
getRemOrgs()
Gets the organizations to remove.
|
boolean |
hasAddOrgs()
Are any add organizations defined?
|
boolean |
hasChgOrgs()
Are any change organizations defined?
|
boolean |
hasRemOrgs()
Are any remove organizations defined?
|
void |
setAddOrgs(EPPOrgExtAddRemChg aAddOrgs)
Sets the organizations to add.
|
void |
setChgOrgs(EPPOrgExtAddRemChg aChgOrgs)
Sets the organizations to change.
|
void |
setRemOrgs(EPPOrgExtAddRemChg aRemOrgs)
Sets the organizations to remove.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
EPPOrgExtCreate
.public static final java.lang.String ELM_NAME
EPPOrgExtCreate
.public EPPOrgExtUpdate()
EPPOrgExtCreate
.public EPPOrgExtUpdate(EPPOrgExtAddRemChg aAddOrgs, EPPOrgExtAddRemChg aRemOrgs, EPPOrgExtAddRemChg aChgOrgs)
EPPOrgExtCreate
that takes the three set of
organizations to add, remove, and change as parameters. A parameter can be
set to null
to be undefined.aAddOrgs
- Organizations to add. Set to null
to be undefined.aRemOrgs
- Organizations to remove. Set to null
to be undefined.aChgOrgs
- Organizations to change. Set to null
to be undefined.public EPPOrgExtAddRemChg getAddOrgs()
null
otherwise.public void setAddOrgs(EPPOrgExtAddRemChg aAddOrgs)
aAddOrgs
- The organizations to add. Set to null
to clear the
organizations.public void addAddOrg(EPPOrgExtId aOrgId)
aOrgId
- Organization to addpublic boolean hasAddOrgs()
true
if add organizations are defined; false
otherwise.public EPPOrgExtAddRemChg getRemOrgs()
null
otherwise.public void setRemOrgs(EPPOrgExtAddRemChg aRemOrgs)
aRemOrgs
- The organizations to remove. Set to null
to clear the
organizations.public void addRemOrg(EPPOrgExtId aOrgId)
aOrgId
- Organization to removepublic boolean hasRemOrgs()
true
if remove organizations are defined; false
otherwise.public EPPOrgExtAddRemChg getChgOrgs()
null
otherwise.public void setChgOrgs(EPPOrgExtAddRemChg aChgOrgs)
aChgOrgs
- The organizations to change. Set to null
to clear the
organizations.public void addChgOrg(EPPOrgExtId aOrgId)
aOrgId
- Organization to changepublic boolean hasChgOrgs()
true
if change organizations are defined; false
otherwise.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- DOM Document, which acts is an Element factoryEPPEncodeException
- Error encoding EPPOrgExtCreate
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
argument represents the root DOM element and is used to
traverse the DOM nodes for instance attribute values.decode
in interface EPPCodecComponent
aElement
- Element
to decodeEPPDecodeException
- Error decoding Element
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPOrgExt
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful; ERROR
otherwise.public boolean equals(java.lang.Object aObject)
EPPOrgExt
with this instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.