Class EPPRegistryRegex
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryRegex
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPRegistryRegex represents a general regular expression that
includes both the expression and an optional description. Since this is a
generic regular expression EPPCodecComponent, used by multiple
parent EPPCodecComponent's, the root element must be set using
the setRootName(String).- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPRegistryRegex.EPPRegistryRegex(String aExpression) Constructor that takes the required regular expression value.EPPRegistryRegex(String aExpression, String aDescription) Constructor that takes the required regular expression value along with the optional explanation.EPPRegistryRegex(String aExpression, String aDescription, String aLang) Constructor that takes the required regular expression value along with the optional explanation and the language of the explanation. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryRegex.voidDecode theEPPRegistryRegexattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryRegexinstance.booleanimplements a deepEPPRegistryRegexcompare.Gets the description of the regular expression.Gets the regular expression value.getLang()Gets the language of the explanation.Returns the XML namespace associated with theEPPCodecComponent.booleanHas description?voidsetDescription(String aDescription) Sets the description of the regular expression.voidsetExpression(String aExpression) Sets the regular expression value.voidSets the language of the explanation.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_EXPRESSION
Regular expression element label.- See Also:
-
ELM_DESCRIPTION
Regular expression optional description element label.- See Also:
-
ATTR_LANG
Language attribute of the explanation element.- See Also:
-
-
Constructor Details
-
EPPRegistryRegex
public EPPRegistryRegex()Default constructor forEPPRegistryRegex. -
EPPRegistryRegex
Constructor that takes the required regular expression value.- Parameters:
aExpression- Regular expression value.
-
EPPRegistryRegex
Constructor that takes the required regular expression value along with the optional explanation.- Parameters:
aExpression- Regular expression value.aDescription- Description of the regular expression.
-
EPPRegistryRegex
Constructor that takes the required regular expression value along with the optional explanation and the language of the explanation.- Parameters:
aExpression- Regular expression value.aDescription- Description of the regular expression.aLang- Language of the explanation.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryRegexinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryRegexinstance. - Throws:
EPPEncodeException- Unable to encodeEPPRegistryRegexinstance.
-
decode
Decode theEPPRegistryRegexattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryRegexfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
clone
CloneEPPRegistryRegex.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryRegex - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryRegexcompare. -
getExpression
Gets the regular expression value.- Returns:
- Regular expression value if defined;
nullotherwise.
-
setExpression
Sets the regular expression value.- Parameters:
aExpression- Regular expression value.
-
hasDescription
public boolean hasDescription()Has description?- Returns:
trueif the description is defined;falseotherwise.
-
getDescription
Gets the description of the regular expression.- Returns:
- Regular expression description if defined;
nullotherwise.
-
setDescription
Sets the description of the regular expression.- Parameters:
aDescription- Regular expression description.
-
getLang
Gets the language of the explanation.- Returns:
- Language of the explanation if defined;
nullotherwise.
-
setLang
Sets the language of the explanation.- Parameters:
aLang- Language of the explanation.
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-