Package org.ldaptive.schema
Class AbstractRegexDefinitionFunction<T extends SchemaElement>
- java.lang.Object
-
- org.ldaptive.schema.AbstractRegexDefinitionFunction<T>
-
- Type Parameters:
T
- type of schema element
- All Implemented Interfaces:
DefinitionFunction<T>
- Direct Known Subclasses:
AttributeType.RegexDefinitionFunction
,DITContentRule.RegexDefinitionFunction
,DITStructureRule.RegexDefinitionFunction
,MatchingRule.RegexDefinitionFunction
,MatchingRuleUse.RegexDefinitionFunction
,NameForm.RegexDefinitionFunction
,ObjectClass.RegexDefinitionFunction
,Syntax.RegexDefinitionFunction
public abstract class AbstractRegexDefinitionFunction<T extends SchemaElement> extends Object implements DefinitionFunction<T>
Base class for regex definition functions.
-
-
Field Summary
Fields Modifier and Type Field Description private static Pattern
EXTENSIONS_PATTERN
Pattern to match extensions.protected static String
NO_WSP_REGEX
Regex to match one or more non spaces.protected static String
ONE_WSP_REGEX
Regex to match one or more spaces.protected static String
WSP_REGEX
Regex to match zero or more spaces.
-
Constructor Summary
Constructors Constructor Description AbstractRegexDefinitionFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Extensions
parseExtensions(String definition)
Parses extensions from the supplied definition.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ldaptive.schema.DefinitionFunction
parse
-
-
-
-
Field Detail
-
WSP_REGEX
protected static final String WSP_REGEX
Regex to match zero or more spaces.- See Also:
- Constant Field Values
-
ONE_WSP_REGEX
protected static final String ONE_WSP_REGEX
Regex to match one or more spaces.- See Also:
- Constant Field Values
-
NO_WSP_REGEX
protected static final String NO_WSP_REGEX
Regex to match one or more non spaces.- See Also:
- Constant Field Values
-
EXTENSIONS_PATTERN
private static final Pattern EXTENSIONS_PATTERN
Pattern to match extensions.
-
-
Method Detail
-
parseExtensions
protected Extensions parseExtensions(String definition)
Parses extensions from the supplied definition.- Parameters:
definition
- that was parsed- Returns:
- extensions
-
-