public final class SaxonHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SaxonHelper.MatchingNamespaceResolver |
Modifier and Type | Method and Description |
---|---|
static <T> T[] |
arrayFromArrayItem(net.sf.saxon.ma.arrays.ArrayItem array,
Class<T> itemType) |
static Iterable<net.sf.saxon.s9api.XdmItem> |
axisIterable(net.sf.saxon.s9api.XdmNode node,
net.sf.saxon.s9api.Axis axis) |
static net.sf.saxon.sxpath.XPathExpression |
compileExpression(String expression,
Hashtable<String,String> namespaceBindings,
net.sf.saxon.Configuration configuration) |
static boolean |
evaluateBoolean(net.sf.saxon.sxpath.XPathExpression expression,
net.sf.saxon.s9api.XdmNode contextNode) |
static Optional<net.sf.saxon.om.Item> |
getOptionalItem(net.sf.saxon.om.Sequence sequence) |
static net.sf.saxon.om.Item |
getSingleItem(net.sf.saxon.om.Sequence sequence) |
static <T> Iterable<T> |
iterableFromSequence(net.sf.saxon.om.Sequence sequence,
Class<T> itemType) |
static Iterable<?> |
iterableFromSequence(net.sf.saxon.om.Sequence sequence,
Type itemType) |
static <T> Iterator<T> |
iteratorFromSequence(net.sf.saxon.om.Sequence sequence,
Class<T> itemType) |
static Iterator<?> |
iteratorFromSequence(net.sf.saxon.om.Sequence sequence,
Type itemType) |
static QName |
jaxpQName(net.sf.saxon.s9api.QName name) |
static <T> Map<String,T> |
mapFromMapItem(net.sf.saxon.ma.map.MapItem item,
Class<T> itemType) |
static Map<String,?> |
mapFromMapItem(net.sf.saxon.ma.map.MapItem item,
Type itemType) |
static <T> T |
objectFromItem(net.sf.saxon.om.Item item,
Class<T> type) |
static Object |
objectFromItem(net.sf.saxon.om.Item item,
Type type) |
static net.sf.saxon.om.Sequence |
sequenceFromObject(Object object) |
static net.sf.saxon.value.SequenceType |
sequenceTypeFromType(Type type) |
static net.sf.saxon.s9api.XdmValue |
xdmValueFromObject(Object object) |
public static net.sf.saxon.om.Sequence sequenceFromObject(Object object)
public static net.sf.saxon.s9api.XdmValue xdmValueFromObject(Object object)
public static net.sf.saxon.value.SequenceType sequenceTypeFromType(Type type) throws IllegalArgumentException
IllegalArgumentException
public static Iterable<?> iterableFromSequence(net.sf.saxon.om.Sequence sequence, Type itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static <T> Iterable<T> iterableFromSequence(net.sf.saxon.om.Sequence sequence, Class<T> itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static Iterator<?> iteratorFromSequence(net.sf.saxon.om.Sequence sequence, Type itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static <T> Iterator<T> iteratorFromSequence(net.sf.saxon.om.Sequence sequence, Class<T> itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static <T> T[] arrayFromArrayItem(net.sf.saxon.ma.arrays.ArrayItem array, Class<T> itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static Map<String,?> mapFromMapItem(net.sf.saxon.ma.map.MapItem item, Type itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static <T> Map<String,T> mapFromMapItem(net.sf.saxon.ma.map.MapItem item, Class<T> itemType) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static Object objectFromItem(net.sf.saxon.om.Item item, Type type) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static <T> T objectFromItem(net.sf.saxon.om.Item item, Class<T> type) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static net.sf.saxon.om.Item getSingleItem(net.sf.saxon.om.Sequence sequence) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static Optional<net.sf.saxon.om.Item> getOptionalItem(net.sf.saxon.om.Sequence sequence) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static QName jaxpQName(net.sf.saxon.s9api.QName name)
public static Iterable<net.sf.saxon.s9api.XdmItem> axisIterable(net.sf.saxon.s9api.XdmNode node, net.sf.saxon.s9api.Axis axis)
public static net.sf.saxon.sxpath.XPathExpression compileExpression(String expression, Hashtable<String,String> namespaceBindings, net.sf.saxon.Configuration configuration) throws net.sf.saxon.trans.XPathException
net.sf.saxon.trans.XPathException
public static boolean evaluateBoolean(net.sf.saxon.sxpath.XPathExpression expression, net.sf.saxon.s9api.XdmNode contextNode)
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.