Package com.verisign.epp.codec.registry
Class EPPRegistryRegex
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryRegex
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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).- 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 aExplanation) Constructor that takes the required regular expression value along with the optional explanation.EPPRegistryRegex(String aExpression, String aExplanation, 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 explanation of the regular expression.Gets the regular expression value.getLang()Gets the language of the explanation.Returns the XML namespace associated with theEPPCodecComponent.voidsetExplanation(String aExplanation) Sets the explanation 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_EXPLANATION
Regular expression optional explanation 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.aExplanation- Explanation 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.aExplanation- Explanation 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.
-
getExplanation
Gets the explanation of the regular expression.- Returns:
- Regular expression explanation if defined;
nullotherwise.
-
setExplanation
Sets the explanation of the regular expression.- Parameters:
aExplanation- Regular expression explanation.
-
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.
-