public class RegexSyntaxChecker extends SyntaxChecker
serialVersionUIDdescription, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
RegexSyntaxChecker(String oid)
Creates a new instance of RegexSyntaxChecker.
|
RegexSyntaxChecker(String oid,
String[] matchExprArray)
Creates a Syntax validator for a specific Syntax using Perl5 matching
rules for validation.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getExpressions()
Get the list of regexp stored into this SyntaxChecker
|
boolean |
isValidSyntax(Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
void |
setExpressions(String[] expressions)
Add a list of regexp to be applied by this SyntaxChecker
|
equals, setSchemaManager, toStringcopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlockpublic RegexSyntaxChecker(String oid, String[] matchExprArray)
oid - the oid of the Syntax values checkedmatchExprArray - the array of matching expressionspublic RegexSyntaxChecker(String oid)
oid - the oid to associate with this new SyntaxCheckerpublic boolean isValidSyntax(Object value)
isValidSyntax in class SyntaxCheckervalue - the value of some attribute with the syntaxpublic String[] getExpressions()
public void setExpressions(String[] expressions)
expressions - The regexp list to addCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.