public class EPPRegistryRegex extends java.lang.Object implements EPPCodecComponent
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).| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
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. |
public static final java.lang.String ELM_EXPRESSION
public static final java.lang.String ELM_EXPLANATION
public static final java.lang.String ATTR_LANG
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.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryRegex instance.encode in interface EPPCodecComponentaDocument - 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 EPPCodecComponentaElement - 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.ObjectString if successful;
ERROR otherwise.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryRegex.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPRegistryRegexjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryRegex compare.equals in class java.lang.ObjectaObject - EPPRegistryRegex instance to compare withpublic 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.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.Copyright © VeriSign Inc. All Rights Reserved.