|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.apache.uima.adapter.vinci.util.SaxVinciFrameBuilder
public class SaxVinciFrameBuilder
A SAX content handler that builds a VinciFrame corresponding to the SAX events received.
Constructor Summary | |
---|---|
SaxVinciFrameBuilder()
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
---|
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMapping |
Constructor Detail |
---|
public SaxVinciFrameBuilder()
Method Detail |
---|
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 parser
protected java.lang.String getName(java.lang.String s1, java.lang.String s2)
s1
- The string to be tested.s2
- The alternate String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |