public class RegexSyntaxChecker extends SyntaxChecker
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.String> |
expressions
the set of regular expressions
|
private static org.slf4j.Logger |
LOG
A logger for this class
|
serialVersionUIDdescription, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
RegexSyntaxChecker(java.lang.String oid)
Creates a new instance of RegexSyntaxChecker.
|
RegexSyntaxChecker(java.lang.String oid,
java.lang.String[] matchExprArray)
Creates a Syntax validator for a specific Syntax using Perl5 matching
rules for validation.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getExpressions()
Get the list of regexp stored into this SyntaxChecker
|
boolean |
isValidSyntax(java.lang.Object value)
Determines if the attribute's value conforms to the attribute syntax.
|
void |
setExpressions(java.lang.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, unlockprivate static final org.slf4j.Logger LOG
private java.util.List<java.lang.String> expressions
public RegexSyntaxChecker(java.lang.String oid,
java.lang.String[] matchExprArray)
oid - the oid of the Syntax values checkedmatchExprArray - the array of matching expressionspublic RegexSyntaxChecker(java.lang.String oid)
oid - the oid to associate with this new SyntaxCheckerpublic boolean isValidSyntax(java.lang.Object value)
isValidSyntax in class SyntaxCheckervalue - the value of some attribute with the syntaxpublic java.lang.String[] getExpressions()
public void setExpressions(java.lang.String[] expressions)
expressions - The regexp list to add