org.apache.uima.adapter.vinci.util
public class SaxVinciFrameBuilder extends org.xml.sax.helpers.DefaultHandler implements org.xml.sax.ContentHandler
Constructor and Description |
---|
SaxVinciFrameBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName) |
protected java.lang.String |
getLeafContent(java.lang.String aFrameName,
org.xml.sax.Attributes aAttributes,
java.lang.StringBuffer aContentBuf)
Gets the content to be included in a FrameLeaf.
|
protected java.lang.String |
getName(java.lang.String s1,
java.lang.String s2)
If the first String parameter is nonempty, return it, else return the second string parameter.
|
void |
setParentFrame(AFrame aParentFrame)
Sets the parent frame, to which frames built by the object will be added.
|
void |
startDocument() |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qualifiedName,
org.xml.sax.Attributes attributes)
Called for each start tag encountered.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public void setParentFrame(AFrame aParentFrame)
aParentFrame
- the parent framepublic void startDocument() throws org.xml.sax.SAXException
startDocument
in interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
ContentHandler.startDocument()
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
namespaceURI
- Required if the namespaces property is true.attributes
- The specified or defaulted attributes.localName
- The local name (without prefix), or the empty string if Namespace processing is not
being performed.qualifiedName
- The qualified name (with prefix), or the empty string if qualified names are not
available.org.xml.sax.SAXException
public void characters(char[] ch, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.characters(char[],int,int)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qualifiedName)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
ContentHandler.endElement(String,String,String)
protected java.lang.String getLeafContent(java.lang.String aFrameName, org.xml.sax.Attributes aAttributes, java.lang.StringBuffer aContentBuf)
aFrameName
- name of the FrameLeafaAttributes
- attributes of FrameLeafaContentBuf
- StringBuffer containing the character data obtained from the SAX parserprotected java.lang.String getName(java.lang.String s1, java.lang.String s2)
s1
- The string to be tested.s2
- The alternate String.Copyright © 2014. All Rights Reserved.