|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.xml.AbstractSAXEventGenerator org.apache.jackrabbit.core.xml.DocViewSAXEventGenerator
A DocViewSAXEventGenerator
instance can be used to generate
SAX events representing the serialized form of an item in Document View XML.
Field Summary | |
static String |
CDATA_TYPE
|
protected ContentHandler |
contentHandler
the content handler to feed the SAX events to |
protected String |
jcrMixinTypes
The jcr:mixinTypes property name (allowed for session-local prefix mappings) |
protected String |
jcrPrimaryType
The jcr:primaryType property name (allowed for session-local prefix mappings) |
protected String |
jcrRoot
The jcr:root node name (allowed for session-local prefix mappings) |
protected String |
jcrUUID
The jcr:uuid property name (allowed for session-local prefix mappings) |
protected String |
jcrXMLCharacters
The jcr:xmlCharacters property name (allowed for session-local prefix mappings) |
protected String |
jcrXMLText
The jcr:xmltext node name (allowed for session-local prefix mappings) |
protected boolean |
noRecurse
|
protected NamespaceResolver |
nsResolver
the session's namespace resolver |
protected Session |
session
the session to be used for resolving namespace mappings |
protected boolean |
skipBinary
|
protected Node |
startNode
|
Constructor Summary | |
DocViewSAXEventGenerator(Node node,
boolean noRecurse,
boolean skipBinary,
ContentHandler contentHandler)
Constructor |
Method Summary | |
protected void |
endNamespaceDeclarations()
|
protected void |
entering(Node node,
int level)
|
protected void |
entering(Property prop,
int level)
|
protected void |
enteringProperties(Node node,
int level)
|
protected void |
leaving(Node node,
int level)
|
protected void |
leaving(Property prop,
int level)
|
protected void |
leavingProperties(Node node,
int level)
|
protected void |
process(Node node,
int level)
|
protected void |
process(Property prop,
int level)
|
void |
serialize()
Serializes the hierarchy of nodes and properties. |
protected void |
startNamespaceDeclarations()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String CDATA_TYPE
protected final Session session
protected final NamespaceResolver nsResolver
protected final ContentHandler contentHandler
protected final Node startNode
protected final boolean skipBinary
protected final boolean noRecurse
protected final String jcrPrimaryType
protected final String jcrMixinTypes
protected final String jcrUUID
protected final String jcrRoot
protected final String jcrXMLText
protected final String jcrXMLCharacters
Constructor Detail |
public DocViewSAXEventGenerator(Node node, boolean noRecurse, boolean skipBinary, ContentHandler contentHandler) throws RepositoryException
node
- the node state which should be serializednoRecurse
- if true, only node
and its properties
will be serialized; otherwise the entire hierarchy
starting with node
will be serialized.skipBinary
- flag governing whether binary properties are to be
serialized.contentHandler
- the content handler to feed the SAX events to
RepositoryException
- if an error occursMethod Detail |
protected void entering(Node node, int level) throws RepositoryException, SAXException
node
- level
-
SAXException
RepositoryException
protected void enteringProperties(Node node, int level) throws RepositoryException, SAXException
node
- level
-
RepositoryException
SAXException
protected void leavingProperties(Node node, int level) throws RepositoryException, SAXException
node
- level
-
SAXException
RepositoryException
protected void leaving(Node node, int level) throws RepositoryException, SAXException
node
- level
-
RepositoryException
SAXException
protected void entering(Property prop, int level) throws RepositoryException, SAXException
prop
- level
-
SAXException
RepositoryException
protected void leaving(Property prop, int level) throws RepositoryException, SAXException
prop
- level
-
SAXException
RepositoryException
public void serialize() throws RepositoryException, SAXException
RepositoryException
- if an error occurs while traversing the hierarchy
SAXException
- if an error occured while feeding the events
to the content handlerprotected void startNamespaceDeclarations() throws RepositoryException, SAXException
RepositoryException
SAXException
protected void endNamespaceDeclarations() throws RepositoryException, SAXException
RepositoryException
SAXException
protected void process(Node node, int level) throws RepositoryException, SAXException
node
- level
-
RepositoryException
SAXException
protected void process(Property prop, int level) throws RepositoryException, SAXException
prop
- level
-
RepositoryException
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |