public class AlphaCode
extends java.lang.Object
| Constructor and Description |
|---|
AlphaCode() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
fromItemType(ItemType type) |
static java.lang.String |
fromLexicalSequenceType(XPathContext context,
java.lang.String input) |
static java.lang.String |
fromSequenceType(SequenceType type) |
static java.lang.String |
fromXdmMap(MapItem map) |
static ItemType |
toItemType(java.lang.String input,
Configuration config)
Convert an AlphaCode to an ItemType.
|
static SequenceType |
toSequenceType(java.lang.String input,
Configuration config)
Convert an AlphaCode to a SequenceType
|
static MapItem |
toXdmMap(java.lang.String input)
Parse an AlphaCode into an XDM map
|
public static MapItem toXdmMap(java.lang.String input)
input - the input alphacodejava.lang.IllegalArgumentException - if the input is not a valid AlphaCodepublic static java.lang.String fromXdmMap(MapItem map)
public static SequenceType toSequenceType(java.lang.String input, Configuration config)
input - the input alphacodeconfig - the Saxon Configuration (which must contain any user-defined types that are
referenced in the Alphacode)java.lang.IllegalArgumentException - if the input is not a valid AlphaCodepublic static ItemType toItemType(java.lang.String input, Configuration config)
input - the input alphacodeconfig - the Saxon Configuration (which must contain any user-defined types that are
referenced in the Alphacode)java.lang.IllegalArgumentException - if the input is not a valid AlphaCodepublic static java.lang.String fromItemType(ItemType type)
public static java.lang.String fromSequenceType(SequenceType type)
public static java.lang.String fromLexicalSequenceType(XPathContext context, java.lang.String input) throws XPathException
XPathExceptionCopyright (c) 2004-2020 Saxonica Limited.