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, warningpublic void setParentFrame(AFrame aParentFrame)
aParentFrame - the parent framepublic void startDocument()
throws org.xml.sax.SAXException
startDocument in interface org.xml.sax.ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXExceptionContentHandler.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.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - 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.SAXExceptionpublic void characters(char[] ch,
int start,
int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerContentHandler.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.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlerContentHandler.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 © 2013. All Rights Reserved.