public class EPPPurpose extends java.lang.Object implements EPPCodecComponent
EPPStatement
,
Serialized FormConstructor and Description |
---|
EPPPurpose()
Default Constructor
|
EPPPurpose(boolean aAdmin,
boolean aContact,
boolean aOther,
boolean aProv)
Allocates a new
EPPPurpose with different child elements
based on the input parameters. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPPurpose . |
void |
decode(org.w3c.dom.Element aElement)
decode
EPPPurpose from a DOM element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode
EPPPurpose into a DOM element tree. |
boolean |
equals(java.lang.Object aObject)
implements a
EPPPurpose compare. |
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
boolean |
isAdmin()
<admin> element set?
|
boolean |
isContact()
<contact> element set?
|
boolean |
isOther()
<other> element set?
|
boolean |
isProv()
<prov> element set?
|
void |
setAdmin(boolean aAdmin)
Sets the <admin> element to specify contact for administrative
purposes.
|
void |
setContact(boolean aContact)
Sets the <contact> element to specify contact for marketing
purposes.
|
void |
setOther(boolean aOther)
Sets the <other> element to specify Other purposes.
|
void |
setProv(boolean aProv)
Sets the <prov> element to specify object provisioning purposes.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public EPPPurpose()
public EPPPurpose(boolean aAdmin, boolean aContact, boolean aOther, boolean aProv)
EPPPurpose
with different child elements
based on the input parameters.aAdmin
- If set to true
then the element
admin
is createdaContact
- If set to true
then the element
contact
is createdaOther
- If set to true
then the element
other
is createdaProv
- If set to true
then the element
prov
is createdpublic boolean isAdmin()
true
if is set; false
otherwise.public void setAdmin(boolean aAdmin)
aAdmin
- true
to include the <admin> element;
false
otherwise.public boolean isContact()
true
if is set; false
otherwise.public void setContact(boolean aContact)
aContact
- true
to include the <contact>
element; false
otherwise.public boolean isOther()
true
if is set; false
otherwise.public void setOther(boolean aOther)
aOther
- true
to include the <other> element;
false
otherwise.public boolean isProv()
true
if is set; false
otherwise.public void setProv(boolean aProv)
aProv
- true
to include the <prov> element;
false
otherwise.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPPurpose
into a DOM element tree. The "purpose"
element is created and the child nodes are appended as children.encode
in interface EPPCodecComponent
aDocument
- DOCUMENT ME!EPPEncodeException
- Error encoding the DOM element tree.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPPurpose
from a DOM element tree. The
aElement
argument needs to be the <purpose> element
for a EPPPurpose
decode
in interface EPPCodecComponent
aElement
- root element tree.EPPDecodeException
- Error decoding the DOM element tree.public boolean equals(java.lang.Object aObject)
EPPPurpose
compare.equals
in class java.lang.Object
aObject
- EPPPurpose
instance to compare withpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPPurpose
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPPurpose
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 java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.Copyright © VeriSign Inc. All Rights Reserved.