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.RegexDefinitionFunctionRegex attribute type function.private static final DITContentRule.RegexDefinitionFunctionRegex DIT content rule function.private static final DITStructureRule.RegexDefinitionFunctionRegex DIT structure rule function.private static final MatchingRule.RegexDefinitionFunctionRegex DIT matching rule function.private static final MatchingRuleUse.RegexDefinitionFunctionRegex matching rule use function.private static final NameForm.RegexDefinitionFunctionRegex name form function.private static final ObjectClass.RegexDefinitionFunctionRegex object class function.private static final Syntax.RegexDefinitionFunctionRegex 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:SchemaFunctionParses the supplied string representation of a schema element.- Specified by:
parsein 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
-