Package org.ldaptive.schema
Class SchemaParser.RegexSchemaFunction
- java.lang.Object
-
- org.ldaptive.schema.SchemaParser.RegexSchemaFunction
-
- All Implemented Interfaces:
SchemaFunction
- Enclosing class:
- SchemaParser
public static class SchemaParser.RegexSchemaFunction extends Object implements SchemaFunction
Regular expression based implementation for schema functions.
-
-
Field Summary
Fields Modifier and Type Field Description private static AttributeType.RegexDefinitionFunction
ATTRIBUTE_TYPE_FUNCTION
Regex attribute type function.private static DITContentRule.RegexDefinitionFunction
DIT_CONTENT_RULE_FUNCTION
Regex DIT content rule function.private static DITStructureRule.RegexDefinitionFunction
DIT_STRUCTURE_RULE_FUNCTION
Regex DIT structure rule function.private static MatchingRule.RegexDefinitionFunction
MATCHING_RULE_FUNCTION
Regex DIT matching rule function.private static MatchingRuleUse.RegexDefinitionFunction
MATCHING_RULE_USE_FUNCTION
Regex matching rule use function.private static NameForm.RegexDefinitionFunction
NAME_FORM_FUNCTION
Regex name form function.private static ObjectClass.RegexDefinitionFunction
OBJECT_CLASS_FUNCTION
Regex object class function.private static Syntax.RegexDefinitionFunction
SYNTAX_FUNCTION
Regex syntax function.
-
Constructor Summary
Constructors Constructor Description RegexSchemaFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends SchemaElement>
Tparse(Class<? extends T> type, String definition)
Parses the supplied string representation of a schema element.
-
-
-
Field Detail
-
SYNTAX_FUNCTION
private static final Syntax.RegexDefinitionFunction SYNTAX_FUNCTION
Regex syntax function.
-
ATTRIBUTE_TYPE_FUNCTION
private static final AttributeType.RegexDefinitionFunction ATTRIBUTE_TYPE_FUNCTION
Regex attribute type function.
-
DIT_STRUCTURE_RULE_FUNCTION
private static final DITStructureRule.RegexDefinitionFunction DIT_STRUCTURE_RULE_FUNCTION
Regex DIT structure rule function.
-
MATCHING_RULE_USE_FUNCTION
private static final MatchingRuleUse.RegexDefinitionFunction MATCHING_RULE_USE_FUNCTION
Regex matching rule use function.
-
OBJECT_CLASS_FUNCTION
private static final ObjectClass.RegexDefinitionFunction OBJECT_CLASS_FUNCTION
Regex object class function.
-
NAME_FORM_FUNCTION
private static final NameForm.RegexDefinitionFunction NAME_FORM_FUNCTION
Regex name form function.
-
DIT_CONTENT_RULE_FUNCTION
private static final DITContentRule.RegexDefinitionFunction DIT_CONTENT_RULE_FUNCTION
Regex DIT content rule function.
-
MATCHING_RULE_FUNCTION
private static final MatchingRule.RegexDefinitionFunction MATCHING_RULE_FUNCTION
Regex DIT matching rule function.
-
-
Method Detail
-
parse
public <T extends SchemaElement> T parse(Class<? extends T> type, String definition) throws SchemaParseException
Description copied from interface:SchemaFunction
Parses the supplied string representation of a schema element.- Specified by:
parse
in interfaceSchemaFunction
- Type Parameters:
T
- type of schema element- Parameters:
type
- class type of schema elementdefinition
- to parse- Returns:
- parsed schema element
- Throws:
SchemaParseException
- if the supplied schema definition is invalid
-
-