public class SerializerUtils extends Object
Constructor and Description |
---|
SerializerUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addAttribute(org.apache.xml.serializer.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(org.apache.xml.serializer.SerializationHandler handler,
int src)
Copy DOM attributes to the result element.
|
static void |
ensureNamespaceDeclDeclared(org.apache.xml.serializer.SerializationHandler handler,
DTM dtm,
int namespace)
This function checks to make sure a given prefix is really
declared.
|
static boolean |
isDefinedNSDecl(org.apache.xml.serializer.SerializationHandler serializer,
int attr,
DTM dtm)
Returns whether a namespace is defined
|
static void |
outputResultTreeFragment(org.apache.xml.serializer.SerializationHandler handler,
XObject obj,
XPathContext support)
Given a result tree fragment, walk the tree and
output it to the SerializationHandler.
|
static void |
processNSDecls(org.apache.xml.serializer.SerializationHandler handler,
int src,
int type,
DTM dtm)
Copy xmlns: attributes in if not already in scope.
|
public static void addAttribute(org.apache.xml.serializer.SerializationHandler handler, int attr) throws TransformerException
handler
- SerializationHandler to which the attributes are added.attr
- Attribute node to add to SerializationHandler.TransformerException
public static void addAttributes(org.apache.xml.serializer.SerializationHandler handler, int src) throws TransformerException
src
- Source node with the attributesTransformerException
public static void outputResultTreeFragment(org.apache.xml.serializer.SerializationHandler handler, XObject obj, XPathContext support) throws SAXException
obj
- Result tree fragment objectsupport
- XPath context for the result tree fragmentSAXException
public static void processNSDecls(org.apache.xml.serializer.SerializationHandler handler, int src, int type, DTM dtm) throws TransformerException
src
- Source Node
NEEDSDOC @param type
NEEDSDOC @param dtmTransformerException
public static boolean isDefinedNSDecl(org.apache.xml.serializer.SerializationHandler serializer, int attr, DTM dtm)
attr
- Namespace attribute nodedtm
- The DTM that owns attr.public static void ensureNamespaceDeclDeclared(org.apache.xml.serializer.SerializationHandler handler, DTM dtm, int namespace) throws SAXException
SAXException
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.