|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryRegex
public class EPPRegistryRegex
EPPRegistryRegex
represents a general regular expression that
includes both the expression and an optional explanation. Since this is a
generic regular expression EPPCodecComponent
, used by multiple
parent EPPCodecComponent
's, the root element must be set using
the setRootName(String)
.
Field Summary | |
---|---|
static java.lang.String |
ATTR_LANG
Language attribute of the explanation element. |
static java.lang.String |
ELM_EXPLANATION
Regular expression optional explanation element label. |
static java.lang.String |
ELM_EXPRESSION
Regular expression element label. |
Constructor Summary | |
---|---|
EPPRegistryRegex()
Default constructor for EPPRegistryRegex . |
|
EPPRegistryRegex(java.lang.String aExpression)
Constructor that takes the required regular expression value. |
|
EPPRegistryRegex(java.lang.String aExpression,
java.lang.String aExplanation)
Constructor that takes the required regular expression value along with the optional explanation. |
|
EPPRegistryRegex(java.lang.String aExpression,
java.lang.String aExplanation,
java.lang.String aLang)
Constructor that takes the required regular expression value along with the optional explanation and the language of the explanation. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clone EPPRegistryRegex . |
void |
decode(org.w3c.dom.Element aElement)
Decode the EPPRegistryRegex 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 EPPRegistryRegex instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep EPPRegistryRegex compare. |
java.lang.String |
getExplanation()
Gets the explanation of the regular expression. |
java.lang.String |
getExpression()
Gets the regular expression value. |
java.lang.String |
getLang()
Gets the language of the explanation. |
void |
setExplanation(java.lang.String aExplanation)
Sets the explanation of the regular expression. |
void |
setExpression(java.lang.String aExpression)
Sets the regular expression value. |
void |
setLang(java.lang.String aLang)
Sets the language of the explanation. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ELM_EXPRESSION
public static final java.lang.String ELM_EXPLANATION
public static final java.lang.String ATTR_LANG
Constructor Detail |
---|
public EPPRegistryRegex()
EPPRegistryRegex
.
public EPPRegistryRegex(java.lang.String aExpression)
aExpression
- Regular expression value.public EPPRegistryRegex(java.lang.String aExpression, java.lang.String aExplanation)
aExpression
- Regular expression value.aExplanation
- Explanation of the regular expression.public EPPRegistryRegex(java.lang.String aExpression, java.lang.String aExplanation, java.lang.String aLang)
aExpression
- Regular expression value.aExplanation
- Explanation of the regular expression.aLang
- Language of the explanation.Method Detail |
---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryRegex
instance.
encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.
EPPRegistryRegex
instance.
EPPEncodeException
- Unable to encode EPPRegistryRegex
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryRegex
attributes from the aElement DOM
Element tree.
decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryRegex
from.
EPPDecodeException
- Unable to decode aElement.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.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryRegex
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryRegex
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryRegex
compare.
equals
in class java.lang.Object
aObject
- EPPRegistryRegex
instance to compare with
public java.lang.String getExpression()
null
otherwise.public void setExpression(java.lang.String aExpression)
aExpression
- Regular expression value.public java.lang.String getExplanation()
null
otherwise.public void setExplanation(java.lang.String aExplanation)
aExplanation
- Regular expression explanation.public java.lang.String getLang()
null
otherwise.public void setLang(java.lang.String aLang)
aLang
- Language of the explanation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |