Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Public Member Functions | Package Functions | Private Member Functions | Private Attributes | Static Private Attributes

org::apache::uima::cas_data::impl::XCasToCasDataSaxHandler Class Reference

Inheritance diagram for org::apache::uima::cas_data::impl::XCasToCasDataSaxHandler:
Inheritance graph
Collaboration diagram for org::apache::uima::cas_data::impl::XCasToCasDataSaxHandler:
Collaboration graph

List of all members.

Public Member Functions

void characters (char[] chars, int start, int length) throws SAXException
void endDocument () throws SAXException
void endElement (String nsURI, String localName, String qualifiedName) throws SAXException
void error (SAXParseException e) throws SAXException
void fatalError (SAXParseException e) throws SAXException
void ignorableWhitespace (char[] arg0, int arg1, int arg2) throws SAXException
void setDocumentLocator (Locator loc)
void startDocument () throws SAXException
void startElement (String nameSpaceURI, String localName, String qualifiedName, Attributes attrs) throws SAXException
void warning (SAXParseException e) throws SAXException
 XCasToCasDataSaxHandler (CasData aCasData)

Package Functions

boolean isAllWhitespace (StringBuffer b)

Private Member Functions

void addArrayElement (String content) throws SAXParseException
XCASParsingException createException (int code)
XCASParsingException createException (int code, String arg)
final boolean emptyVal (String val)
String getCasTypeName (String aTagName)
void handleFeature (FeatureStructureImpl fsImpl, String featName, String featVal) throws SAXParseException
boolean isArrayType (String typeName)
int[] parseIntArray (String val)
void readArray (String type, Attributes attrs) throws SAXParseException
void readArrayElement (String eleName, Attributes attrs) throws SAXParseException
void readFS (FeatureStructureImpl fsImpl, Attributes attrs) throws SAXParseException
void readFS (String qualifiedName, Attributes attrs) throws SAXParseException
final void resetBuffer ()

Private Attributes

int arrayPos
int arrayType
StringBuffer buffer
CasData cas
String currentContentFeat
FeatureStructureImpl currentFS
Locator locator
int state

Static Private Attributes

static final int ARRAY_ELE_CONTENT_STATE = 5
static final int ARRAY_ELE_STATE = 6
static final int CONTENT_STATE = 3
static final String DEFAULT_CONTENT_FEATURE = "value"
static final int DOC_STATE = 0
static final int FEAT_CONTENT_STATE = 4
static final int FEAT_STATE = 2
static final int FLOAT_TYPE = 1
static final int FS_STATE = 1
static final int FS_TYPE = 3
static final int INT_TYPE = 0
static final String reservedAttrPrefix = "_"
static final int STRING_TYPE = 2
static final String unknownXMLSource = "<unknown>"

Detailed Description

A SAX ContentHandler that reads XCAS and creates a CasData.

Definition at line 40 of file XCasToCasDataSaxHandler.java.

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index