|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.contact.EPPContactDisclose
public class EPPContactDisclose
Represents a contact disclose definition.
Field Summary | |
---|---|
static java.lang.String |
ATTR_FLAG_FALSE
Value of the FALSE in contact disclose flag mapping |
static java.lang.String |
ATTR_FLAG_TRUE
Value of the TRUE in contact disclose flag mapping |
static java.lang.String |
ATTR_TYPE_INT
Value of the INT in contact disclose type mapping |
static java.lang.String |
ATTR_TYPE_LOC
Value of the LOC in contact disclose type mapping |
static java.lang.String |
ELM_NAME_DISCLOSE
XML tag name for the org attribute. |
Constructor Summary | |
---|---|
EPPContactDisclose()
EPPContactDisclose default constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPContactDisclose . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPContactDisclose attributes from the aElement
DOM Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the EPPContactDisclose instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPContactDisclose compare. |
java.util.Vector |
getAddresses()
Get contact disclose addresses. |
java.lang.String |
getEmail()
Gets the contact disclose email |
java.lang.String |
getFax()
Gets the contact disclose fax |
java.lang.String |
getFlag()
Get contact disclose flag. |
java.util.Vector |
getNames()
Get contact disclose names. |
java.util.Vector |
getOrgs()
Get contact disclose orgs. |
java.lang.String |
getRootName()
Get root tag name for contact postal definition. |
java.lang.String |
getVoice()
Gets the contact disclose voice |
boolean |
isValidated()
Show whether needs to call validateState() |
void |
setAddresses(java.util.Vector newAddresses)
Set contact disclose addresses. |
void |
setEmail(java.lang.String aEmail)
Sets the contact disclose email |
void |
setFax(java.lang.String aFax)
Sets the contact disclose fax |
void |
setFlag(java.lang.String newFlag)
Set contact disclose flag. |
void |
setNames(java.util.Vector newNames)
Set contact disclose names. |
void |
setOrgs(java.util.Vector newOrgs)
Set contact disclose orgs. |
void |
setRootName(java.lang.String newRootName)
Set root tag name for contact postal definition. |
void |
setValidatedFlag(boolean newValidatedFlag)
Set validated flag. |
void |
setVoice(java.lang.String aVoice)
Sets the contact disclose voice |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
protected void |
validateState()
Validate the state of the EPPContactPostalDefination
instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_NAME_DISCLOSE
org
attribute.
public static final java.lang.String ATTR_FLAG_FALSE
public static final java.lang.String ATTR_FLAG_TRUE
public static final java.lang.String ATTR_TYPE_LOC
public static final java.lang.String ATTR_TYPE_INT
Constructor Detail |
---|
public EPPContactDisclose()
EPPContactDisclose
default constructor. Must call required
setter methods before invoking encode
.
Method Detail |
---|
public java.util.Vector getNames()
public void setNames(java.util.Vector newNames)
newNames
- java.util.Vectorpublic java.util.Vector getOrgs()
public void setOrgs(java.util.Vector newOrgs)
newOrgs
- java.util.Vectorpublic java.util.Vector getAddresses()
public void setAddresses(java.util.Vector newAddresses)
newAddresses
- java.util.Vectorpublic java.lang.String getFlag()
public void setFlag(java.lang.String newFlag)
newFlag
- Stringpublic java.lang.String getVoice()
null
otherwise.public void setVoice(java.lang.String aVoice)
aVoice
- Client disclose voicepublic java.lang.String getFax()
null
otherwise.public void setFax(java.lang.String aFax)
aFax
- Client disclose faxpublic java.lang.String getEmail()
null
otherwise.public void setEmail(java.lang.String aEmail)
aEmail
- Client disclose emailpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPContactDisclose
instance.
encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element
factory.
EPPEncodeException
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPContactDisclose
attributes from the aElement
DOM Element tree.
decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode
EPPContactDisclose
from.
EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPContactDisclose
compare.
equals
in class java.lang.Object
aObject
- EPPContactDisclose
instance to compare with
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPContactDisclose
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPContactDisclose
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.protected void validateState() throws EPPCodecException
EPPContactPostalDefination
instance. A valid state means that all of the required attributes have
been set. If validateState returns without an exception, the state
is valid. If the state is not valid, the EPPCodecException will
contain a description of the error. throws EPPCodecException
State error. This will contain the name of the attribute that is
not valid.
EPPCodecException
- DOCUMENT ME!public java.lang.String getRootName()
public void setRootName(java.lang.String newRootName)
newRootName
- Stringpublic boolean isValidated()
public void setValidatedFlag(boolean newValidatedFlag)
newValidatedFlag
- boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |