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 java.lang.Object implements SchemaFunction
CharBuffer based implementation for schema functions.
-
-
Constructor Summary
Constructors Constructor Description DefaultSchemaFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends SchemaElement>
Tparse(java.lang.Class<? extends T> type, java.lang.String definition)
Parses the supplied string representation of a schema element.
-
-
-
Method Detail
-
parse
public <T extends SchemaElement> T parse(java.lang.Class<? extends T> type, java.lang.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
-
-