Class StandardTypeParser

  • All Implemented Interfaces:
    TypeParser
    Direct Known Subclasses:
    FSArrayParser

    public class StandardTypeParser
    extends Object
    implements TypeParser
    Parses all standard Types, which does not need a special handling in parsing
    Author:
    weigel
    • Constructor Detail

      • StandardTypeParser

        public StandardTypeParser()
    • Method Detail

      • parseType

        public void parseType​(ConcreteType concreteType,
                              com.ximpleware.VTDNav nav,
                              org.apache.uima.jcas.JCas jcas,
                              byte[] identifier,
                              DocumentTextData docText)
                       throws Exception
        Description copied from interface: TypeParser
        Parses a Type. Gather all necessary Infomations from the vdtnav, and fill the concrete Type. The corresponding TypeTemplate is part of the ConcreteType
        Specified by:
        parseType in interface TypeParser
        Throws:
        Exception
        org.apache.uima.collection.CollectionException
      • parseSingleType

        protected void parseSingleType​(ConcreteType concreteType,
                                       com.ximpleware.VTDNav nav,
                                       org.apache.uima.jcas.JCas jcas,
                                       byte[] identifier,
                                       DocumentTextData docText)
                                throws Exception,
                                       com.ximpleware.XPathParseException,
                                       com.ximpleware.XPathEvalException,
                                       com.ximpleware.NavException
        Throws:
        Exception
        com.ximpleware.XPathParseException
        com.ximpleware.XPathEvalException
        com.ximpleware.NavException
      • parseStandardFeature

        public static void parseStandardFeature​(ConcreteType concreteType,
                                                com.ximpleware.VTDNav nav,
                                                FeatureTemplate featureTemplate,
                                                ConcreteFeature concreteFeature)
                                         throws com.ximpleware.XPathParseException,
                                                com.ximpleware.XPathEvalException,
                                                com.ximpleware.NavException
        Throws:
        com.ximpleware.XPathParseException
        com.ximpleware.XPathEvalException
        com.ximpleware.NavException
      • getTypeBuilder

        public TypeBuilder getTypeBuilder()
        Specified by:
        getTypeBuilder in interface TypeParser
        Returns:
        an instance of the TypeBuilder class. Wheter the Type Need special handling or not. if not just return a new instance of the StandardTypeBuilder