public final class XMLAccess extends Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
attribute(String pref,
ANode node,
byte[] name)
Returns the value of the requested attribute, or an error.
|
static <E extends Enum<E>> |
attribute(String pref,
ANode node,
byte[] name,
E[] values)
Returns an enum instance for the requested attribute.
|
static AxisIter |
children(ANode node,
byte[] name)
Returns child elements.
|
static <E extends Enum<E>> |
value(String pref,
byte[] name,
E[] names)
Returns an enum instance for the requested value.
|
public static AxisIter children(ANode node, byte[] name)
node
- nodename
- namepublic static byte[] attribute(String pref, ANode node, byte[] name) throws BaseXException
pref
- error prefixnode
- nodename
- attribute nameBaseXException
- database exceptionpublic static <E extends Enum<E>> E attribute(String pref, ANode node, byte[] name, E[] values) throws BaseXException
E
- token typepref
- error prefixnode
- nodename
- attribute namevalues
- expected namesBaseXException
- database exceptionpublic static <E extends Enum<E>> E value(String pref, byte[] name, E[] names) throws BaseXException
E
- token typepref
- error prefixname
- namenames
- allowed namesBaseXException
- database exceptionCopyright © 2005–2015 BaseX Team. All rights reserved.