public class RegexSyntaxChecker extends SyntaxChecker
description, 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
|
assertSyntax, equals, setSchemaManager, toString
copy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcn
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification
public 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 SyntaxChecker
value
- the value of some attribute with the syntaxpublic String[] getExpressions()
public void setExpressions(String[] expressions)
expressions
- The regexp list to addCopyright © 2003-2014 The Apache Software Foundation. All Rights Reserved.