public class EPPDefRegName extends java.lang.Object implements EPPCodecComponent
getName and setName to get
and set the Names. Use getLevel and setLevel to
get and set the level attribute.
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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).
|
| Modifier and Type | Method and Description |
|---|---|
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
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
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. |
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
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_PREMIUMaName - namepublic 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 EPPCodecComponentaElement - - 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 EPPCodecComponentaDocument - - 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.ObjectaObject - EPPDefRegName instance to compare withpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPDefRegName.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPDefRegNamejava.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_PREMIUMpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.