Package org.ldaptive.schema
Class SchemaParser.RegexSchemaFunction
java.lang.Object
org.ldaptive.schema.SchemaParser.RegexSchemaFunction
- All Implemented Interfaces:
SchemaFunction
- Enclosing class:
- SchemaParser
Regular expression based implementation for schema functions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AttributeType.RegexDefinitionFunction
Regex attribute type function.private static final DITContentRule.RegexDefinitionFunction
Regex DIT content rule function.private static final DITStructureRule.RegexDefinitionFunction
Regex DIT structure rule function.private static final MatchingRule.RegexDefinitionFunction
Regex DIT matching rule function.private static final MatchingRuleUse.RegexDefinitionFunction
Regex matching rule use function.private static final NameForm.RegexDefinitionFunction
Regex name form function.private static final ObjectClass.RegexDefinitionFunction
Regex object class function.private static final Syntax.RegexDefinitionFunction
Regex syntax function. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends SchemaElement>
TParses the supplied string representation of a schema element.
-
Field Details
-
SYNTAX_FUNCTION
Regex syntax function. -
ATTRIBUTE_TYPE_FUNCTION
Regex attribute type function. -
DIT_STRUCTURE_RULE_FUNCTION
Regex DIT structure rule function. -
MATCHING_RULE_USE_FUNCTION
Regex matching rule use function. -
OBJECT_CLASS_FUNCTION
Regex object class function. -
NAME_FORM_FUNCTION
Regex name form function. -
DIT_CONTENT_RULE_FUNCTION
Regex DIT content rule function. -
MATCHING_RULE_FUNCTION
Regex DIT matching rule function.
-
-
Constructor Details
-
RegexSchemaFunction
public RegexSchemaFunction()
-
-
Method Details
-
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
-