|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.serialize.SerializerUtils
public class SerializerUtils
Class that contains only static methods that are used to "serialize", these methods are used by Xalan and are not in org.apache.xml.serializer because they have dependancies on the packages org.apache.xpath or org. apache.xml.dtm or org.apache.xalan.transformer. The package org.apache.xml. serializer should not depend on Xalan or XSLTC.
Constructor Summary | |
---|---|
SerializerUtils()
|
Method Summary | |
---|---|
static void |
addAttribute(SerializationHandler handler,
int attr)
Copy an DOM attribute to the created output element, executing attribute templates as need be, and processing the xsl:use attribute. |
static void |
addAttributes(SerializationHandler handler,
int src)
Copy DOM attributes to the result element. |
static void |
ensureNamespaceDeclDeclared(SerializationHandler handler,
DTM dtm,
int namespace)
This function checks to make sure a given prefix is really declared. |
static boolean |
isDefinedNSDecl(SerializationHandler serializer,
int attr,
DTM dtm)
Returns whether a namespace is defined |
static void |
outputResultTreeFragment(SerializationHandler handler,
XObject obj,
XPathContext support)
Given a result tree fragment, walk the tree and output it to the SerializationHandler. |
static void |
processNSDecls(SerializationHandler handler,
int src,
int type,
DTM dtm)
Copy xmlns: attributes in if not already in scope. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializerUtils()
Method Detail |
---|
public static void addAttribute(SerializationHandler handler, int attr) throws javax.xml.transform.TransformerException
handler
- SerializationHandler to which the attributes are added.attr
- Attribute node to add to SerializationHandler.
javax.xml.transform.TransformerException
public static void addAttributes(SerializationHandler handler, int src) throws javax.xml.transform.TransformerException
src
- Source node with the attributes
javax.xml.transform.TransformerException
public static void outputResultTreeFragment(SerializationHandler handler, XObject obj, XPathContext support) throws org.xml.sax.SAXException
obj
- Result tree fragment objectsupport
- XPath context for the result tree fragment
org.xml.sax.SAXException
public static void processNSDecls(SerializationHandler handler, int src, int type, DTM dtm) throws javax.xml.transform.TransformerException
src
- Source Node
NEEDSDOC @param type
NEEDSDOC @param dtm
javax.xml.transform.TransformerException
public static boolean isDefinedNSDecl(SerializationHandler serializer, int attr, DTM dtm)
attr
- Namespace attribute nodedtm
- The DTM that owns attr.
public static void ensureNamespaceDeclDeclared(SerializationHandler handler, DTM dtm, int namespace) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |