Class StandardTypeParser
- java.lang.Object
-
- de.julielab.jcore.reader.xmlmapper.typeParser.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 Summary
Constructors Constructor Description StandardTypeParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)TypeBuildergetTypeBuilder()protected voidparseSingleType(ConcreteType concreteType, com.ximpleware.VTDNav nav, org.apache.uima.jcas.JCas jcas, byte[] identifier, DocumentTextData docText)static voidparseStandardFeature(ConcreteType concreteType, com.ximpleware.VTDNav nav, FeatureTemplate featureTemplate, ConcreteFeature concreteFeature)voidparseType(ConcreteType concreteType, com.ximpleware.VTDNav nav, org.apache.uima.jcas.JCas jcas, byte[] identifier, DocumentTextData docText)Parses a Type.
-
-
-
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:TypeParserParses a Type. Gather all necessary Infomations from the vdtnav, and fill the concrete Type. The corresponding TypeTemplate is part of the ConcreteType- Specified by:
parseTypein interfaceTypeParser- Throws:
Exceptionorg.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:
Exceptioncom.ximpleware.XPathParseExceptioncom.ximpleware.XPathEvalExceptioncom.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.XPathParseExceptioncom.ximpleware.XPathEvalExceptioncom.ximpleware.NavException
-
getTypeBuilder
public TypeBuilder getTypeBuilder()
- Specified by:
getTypeBuilderin interfaceTypeParser- 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
-
-