|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.defReg.EPPDefRegName
public class EPPDefRegName
Represents EPPDefRegName information which is a shared structure been used
by other objects. The <defReg:name> element MUST contain the
following child elements:
getName
and setName
to get
and set the Names. Use getLevel
and setLevel
to
get and set the level attribute.
Field Summary | |
---|---|
protected static java.lang.String |
ATTR_LEVEL
XML Element type attribute name of level associated with
name element. |
protected java.lang.String |
level
level informnation |
static java.lang.String |
LEVEL_PREMIUM
Premium level of Defensive Registration. |
static java.lang.String |
LEVEL_STANDARD
Standard level of Defensive Registration. |
protected java.lang.String |
name
name information. |
Constructor Summary | |
---|---|
EPPDefRegName()
Default constructor, which will set the level and name attributes to null . |
|
EPPDefRegName(java.lang.String aLevel,
java.lang.String aName)
EPPDefRegName which takes attributes as arguments (aLevel, aName). |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPDefRegName . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPDefRegName 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 EPPDefRegName instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPDefRegName compare. |
java.lang.String |
getLevel()
get Level assocaited with defRegName |
java.lang.String |
getName()
get Name attribute assocaited with defRegName |
void |
setLevel(java.lang.String aLevel)
Sets Level attribute. |
void |
setName(java.lang.String aName)
Sets Name attribute. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
void |
validate()
Validate the state of the EPPDefRegCreateCmd instance. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LEVEL_STANDARD
public static final java.lang.String LEVEL_PREMIUM
protected static final java.lang.String ATTR_LEVEL
level
associated with
name element.
protected java.lang.String name
protected java.lang.String level
Constructor Detail |
---|
public EPPDefRegName()
null
. These attributes must be set before calling
encode
.
public EPPDefRegName(java.lang.String aLevel, java.lang.String aName)
aLevel
- Either LEVEL_STANDARD
or
LEVEL_PREMIUM
aName
- nameMethod Detail |
---|
public void validate() throws EPPEncodeException
EPPDefRegCreateCmd
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.
EPPEncodeException
- DOCUMENT ME!public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
decode
in interface EPPCodecComponent
aElement
- - Root DOM Element to decode EPPDomainContact from.
EPPDecodeException
- - Unable to decode aElement.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
encode
in interface EPPCodecComponent
aDocument
- - DOM Document that is being built. Used as an Element
factory.
EPPEncodeException
- - Unable to encode EPPDefRegName instance.public boolean equals(java.lang.Object aObject)
EPPDefRegName
compare.
equals
in class java.lang.Object
aObject
- EPPDefRegName
instance to compare with
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPDefRegName
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPDefRegName
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String getName()
public java.lang.String getLevel()
null
otherwise.public void setName(java.lang.String aName)
aName
- Sets defRegName Name attribute.public void setLevel(java.lang.String aLevel)
aLevel
- Either LEVEL_STANDARD
or
LEVEL_PREMIUM
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |