Package org.ldaptive.schema
Class SchemaParser.DefaultSchemaFunction
- java.lang.Object
-
- org.ldaptive.schema.SchemaParser.DefaultSchemaFunction
-
- All Implemented Interfaces:
SchemaFunction
- Enclosing class:
- SchemaParser
public static class SchemaParser.DefaultSchemaFunction extends Object implements SchemaFunction
CharBuffer based implementation for schema functions.
-
-
Field Summary
Fields Modifier and Type Field Description private static AttributeType.DefaultDefinitionFunction
ATTRIBUTE_TYPE_FUNCTION
Default attribute type function.private static DITContentRule.DefaultDefinitionFunction
DIT_CONTENT_RULE_FUNCTION
Default DIT content rule function.private static DITStructureRule.DefaultDefinitionFunction
DIT_STRUCTURE_RULE_FUNCTION
Default DIT structure rule function.private static MatchingRule.DefaultDefinitionFunction
MATCHING_RULE_FUNCTION
Default DIT matching rule function.private static MatchingRuleUse.DefaultDefinitionFunction
MATCHING_RULE_USE_FUNCTION
Default matching rule use function.private static NameForm.DefaultDefinitionFunction
NAME_FORM_FUNCTION
Default name form function.private static ObjectClass.DefaultDefinitionFunction
OBJECT_CLASS_FUNCTION
Default object class function.private static Syntax.DefaultDefinitionFunction
SYNTAX_FUNCTION
Default syntax function.
-
Constructor Summary
Constructors Constructor Description DefaultSchemaFunction()
-
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.DefaultDefinitionFunction SYNTAX_FUNCTION
Default syntax function.
-
ATTRIBUTE_TYPE_FUNCTION
private static final AttributeType.DefaultDefinitionFunction ATTRIBUTE_TYPE_FUNCTION
Default attribute type function.
-
DIT_STRUCTURE_RULE_FUNCTION
private static final DITStructureRule.DefaultDefinitionFunction DIT_STRUCTURE_RULE_FUNCTION
Default DIT structure rule function.
-
MATCHING_RULE_USE_FUNCTION
private static final MatchingRuleUse.DefaultDefinitionFunction MATCHING_RULE_USE_FUNCTION
Default matching rule use function.
-
OBJECT_CLASS_FUNCTION
private static final ObjectClass.DefaultDefinitionFunction OBJECT_CLASS_FUNCTION
Default object class function.
-
NAME_FORM_FUNCTION
private static final NameForm.DefaultDefinitionFunction NAME_FORM_FUNCTION
Default name form function.
-
DIT_CONTENT_RULE_FUNCTION
private static final DITContentRule.DefaultDefinitionFunction DIT_CONTENT_RULE_FUNCTION
Default DIT content rule function.
-
MATCHING_RULE_FUNCTION
private static final MatchingRule.DefaultDefinitionFunction MATCHING_RULE_FUNCTION
Default 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
-
-