Class SchemaParser.RegexSchemaFunction

  • All Implemented Interfaces:
    SchemaFunction
    Enclosing class:
    SchemaParser

    public static class SchemaParser.RegexSchemaFunction
    extends java.lang.Object
    implements SchemaFunction
    Regular expression based implementation for schema functions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T extends SchemaElement>
      T
      parse​(java.lang.Class<? extends T> type, java.lang.String definition)
      Parses the supplied string representation of a schema element.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RegexSchemaFunction

        public RegexSchemaFunction()
    • 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 interface SchemaFunction
        Type Parameters:
        T - type of schema element
        Parameters:
        type - class type of schema element
        definition - to parse
        Returns:
        parsed schema element
        Throws:
        SchemaParseException - if the supplied schema definition is invalid