| Modifier and Type | Field and Description |
|---|---|
static DocumentBuilder |
builder |
| Constructor and Description |
|---|
DOMProcessing(ProvFactory pFactory) |
| Modifier and Type | Method and Description |
|---|---|
static Element |
marshalAttribute(Attribute attribute) |
static Element |
marshalTypedValue(TypedValue attribute,
QualifiedName elementName) |
static Element |
newElement(QualifiedName name,
Element value) |
static Element |
newElement(QualifiedName elementName,
QualifiedName value)
Creates a DOM
Element for a QualifiedName and content given by value |
static Element |
newElement(QualifiedName name,
String value,
QualifiedName type)
Creates a DOM
Element for a QualifiedName and content given by value and type |
static Element |
newElement(QualifiedName name,
String value,
QualifiedName type,
String lang) |
static String |
qualifiedNameToString(QualifiedName name) |
QualifiedName |
stringToQualifiedName(String str,
Element el)
Converts a string to a QualifiedName, extracting namespace from the DOM.
|
static void |
trimNode(Node node) |
Attribute |
unmarshallAttribute(Element el,
ProvFactory pFactory,
ValueConverter vconv) |
static void |
writeDOMToPrinter(Node document,
StreamResult result,
boolean formatted) |
static void |
writeDOMToPrinter(Node document,
Writer out,
boolean formatted) |
static String |
writeToString(Node toWrite) |
public static DocumentBuilder builder
public DOMProcessing(ProvFactory pFactory)
public static String qualifiedNameToString(QualifiedName name)
public final QualifiedName stringToQualifiedName(String str, Element el)
str - string to convert to QualifiedNameel - current Element in which this string was found (as attribute
or attribute value)QualifiedNamepublic static final Element newElement(QualifiedName elementName, QualifiedName value)
Element for a QualifiedName and content given by valueelementName - a QualifiedName to denote the element namevalue - for the created ElementElementpublic static final Element newElement(QualifiedName name, String value, QualifiedName type)
Element for a QualifiedName and content given by value and typename - a QualifiedName to denote the element namevalue - for the created Elementtype - of the valueElementpublic static final Element newElement(QualifiedName name, String value, QualifiedName type, String lang)
public static final Element newElement(QualifiedName name, Element value)
public static void writeDOMToPrinter(Node document, StreamResult result, boolean formatted) throws TransformerConfigurationException, TransformerException
public static void writeDOMToPrinter(Node document, Writer out, boolean formatted) throws TransformerConfigurationException, TransformerException
public static String writeToString(Node toWrite) throws TransformerConfigurationException, TransformerException
public static void trimNode(Node node)
public static final Element marshalTypedValue(TypedValue attribute, QualifiedName elementName)
public final Attribute unmarshallAttribute(Element el, ProvFactory pFactory, ValueConverter vconv)
Copyright © 2015. All rights reserved.