public class JCRContentHandler extends org.xml.sax.helpers.DefaultHandler
DefaultHandler
that creates Node
in a JCR Repository
that are defined
in an xml file.Modifier and Type | Field and Description |
---|---|
static String |
INKSTAND_IMPORT_NAMESPACE
Namespace the content handler uses to identify the correct elements
|
Constructor and Description |
---|
JCRContentHandler(javax.jcr.Session session)
Creates a new content handler using the specified session for performing the input
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Detects text by trimming the effective content of the char array.
|
void |
endDocument()
Persists the changes in the repository and prints out information such as processing time
|
void |
endElement(String uri,
String localName,
String qName)
Depending on the element, which has to be in the correct namespace, the method adds a property to the node or
removes completed nodes from the node stack.
|
void |
startDocument()
Prints out information statements and sets the startTimer
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Depending on the element, which has to be in the correct namespace, the method either creates a new node, adds a
mixin type or creates a property (properties are not yet written to the node)
|
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
public static final String INKSTAND_IMPORT_NAMESPACE
public JCRContentHandler(javax.jcr.Session session)
session
- public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2014. All rights reserved.