anl.aida.ae.gate
Class BuilderFactory

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by org.xml.sax.ext.DefaultHandler2
          extended by anl.aida.ae.gate.BuilderFactory
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.DeclHandler, org.xml.sax.ext.EntityResolver2, org.xml.sax.ext.LexicalHandler

public class BuilderFactory
extends org.xml.sax.ext.DefaultHandler2

Date: Jan 15, 2009 4:38:31 PM


Field Summary
private  AnnotationBuilder builder
           
private static java.lang.String CLASS
           
private static java.lang.String FEATURE
           
private static java.lang.String FEATURE_NAME
           
private static java.lang.String FEATURE_TYPE
           
private  java.io.File file
           
private static java.lang.String FILTER_NAME
           
private static java.lang.String GATE_FEATURE_NAME
           
private static java.lang.String GATE_TYPE_NAME
           
private  java.util.List<InputAnnotationBuilder> inputs
           
private static java.lang.String INPUTS
           
private static java.lang.String NEW
           
private  java.util.List<OutputAnnotationBuilder> outputs
           
private static java.lang.String OUTPUTS
           
private  boolean outUpdate
           
private  boolean processInputs
           
private static java.lang.String SET_NAME
           
private  org.apache.uima.cas.TypeSystem typeSystem
           
private static java.lang.String UIMA
           
private static java.lang.String UIMA_TYPE_NAME
           
private static java.lang.String UPDATE
           
private static java.lang.String UPDATED
           
 
Constructor Summary
BuilderFactory(java.lang.String mappingFile)
           
 
Method Summary
private  void addBuilder()
           
 void build(org.apache.uima.cas.TypeSystem typeSystem, java.util.List<InputAnnotationBuilder> inputs, java.util.List<OutputAnnotationBuilder> outputs)
           
private  void createBuilder(org.xml.sax.Attributes attributes)
           
private  void createFeature(org.xml.sax.Attributes attributes)
           
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes)
           
 
Methods inherited from class org.xml.sax.ext.DefaultHandler2
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UIMA

private static final java.lang.String UIMA
See Also:
Constant Field Values

FEATURE

private static final java.lang.String FEATURE
See Also:
Constant Field Values

FEATURE_NAME

private static final java.lang.String FEATURE_NAME
See Also:
Constant Field Values

GATE_FEATURE_NAME

private static final java.lang.String GATE_FEATURE_NAME
See Also:
Constant Field Values

FEATURE_TYPE

private static final java.lang.String FEATURE_TYPE
See Also:
Constant Field Values

UPDATED

private static final java.lang.String UPDATED
See Also:
Constant Field Values

UIMA_TYPE_NAME

private static final java.lang.String UIMA_TYPE_NAME
See Also:
Constant Field Values

GATE_TYPE_NAME

private static final java.lang.String GATE_TYPE_NAME
See Also:
Constant Field Values

FILTER_NAME

private static final java.lang.String FILTER_NAME
See Also:
Constant Field Values

SET_NAME

private static final java.lang.String SET_NAME
See Also:
Constant Field Values

CLASS

private static final java.lang.String CLASS
See Also:
Constant Field Values

INPUTS

private static final java.lang.String INPUTS
See Also:
Constant Field Values

OUTPUTS

private static final java.lang.String OUTPUTS
See Also:
Constant Field Values

NEW

private static final java.lang.String NEW
See Also:
Constant Field Values

UPDATE

private static final java.lang.String UPDATE
See Also:
Constant Field Values

builder

private AnnotationBuilder builder

inputs

private java.util.List<InputAnnotationBuilder> inputs

outputs

private java.util.List<OutputAnnotationBuilder> outputs

typeSystem

private org.apache.uima.cas.TypeSystem typeSystem

processInputs

private boolean processInputs

outUpdate

private boolean outUpdate

file

private java.io.File file
Constructor Detail

BuilderFactory

public BuilderFactory(java.lang.String mappingFile)
Method Detail

build

public void build(org.apache.uima.cas.TypeSystem typeSystem,
                  java.util.List<InputAnnotationBuilder> inputs,
                  java.util.List<OutputAnnotationBuilder> outputs)
           throws javax.xml.parsers.ParserConfigurationException,
                  org.xml.sax.SAXException,
                  java.io.IOException
Throws:
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException

createBuilder

private void createBuilder(org.xml.sax.Attributes attributes)
                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

createFeature

private void createFeature(org.xml.sax.Attributes attributes)
                    throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

addBuilder

private void addBuilder()

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attributes)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException