|
|||||||||||
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.SysViewSAXEventGenerator
A SysViewSAXEventGenerator
instance can be used to generate SAX events
representing the serialized form of an item in System View XML.
Field Summary | |
static String |
CDATA_TYPE
|
protected ContentHandler |
contentHandler
the content handler to feed the SAX events to |
static String |
ENUMERATION_TYPE
|
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) |
static String |
NAME_ATTRIBUTE
|
static String |
NODE_ELEMENT
The XML elements and attributes used in serialization |
protected boolean |
noRecurse
|
protected NamespaceResolver |
nsResolver
the session's namespace resolver |
static String |
PREFIXED_NAME_ATTRIBUTE
|
static String |
PREFIXED_NODE_ELEMENT
|
static String |
PREFIXED_PROPERTY_ELEMENT
|
static String |
PREFIXED_TYPE_ATTRIBUTE
|
static String |
PREFIXED_VALUE_ELEMENT
|
static String |
PROPERTY_ELEMENT
|
protected Session |
session
the session to be used for resolving namespace mappings |
protected boolean |
skipBinary
|
protected Node |
startNode
|
static String |
TYPE_ATTRIBUTE
|
static String |
VALUE_ELEMENT
|
Constructor Summary | |
SysViewSAXEventGenerator(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 NODE_ELEMENT
public static final String PREFIXED_NODE_ELEMENT
public static final String PROPERTY_ELEMENT
public static final String PREFIXED_PROPERTY_ELEMENT
public static final String VALUE_ELEMENT
public static final String PREFIXED_VALUE_ELEMENT
public static final String NAME_ATTRIBUTE
public static final String PREFIXED_NAME_ATTRIBUTE
public static final String TYPE_ATTRIBUTE
public static final String PREFIXED_TYPE_ATTRIBUTE
public static final String CDATA_TYPE
public static final String ENUMERATION_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 SysViewSAXEventGenerator(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 |