gnu.kawa.xml

Class KNode

public abstract class KNode extends SeqPosition implements Consumable

Constructor Summary
KNode(NodeTree seq, int ipos)
Method Summary
static ObjectatomicValue(Object value)
PathbaseURI()
static KNodecoerce(Object value)
Convert value to a KNode, returning null if it isn't a node.
voidconsume(Consumer out)
SeqPositioncopy()
StringgetBaseURI()
ObjectgetFeature(String feature, String version)
StringgetLocalName()
StringgetNamespaceURI()
StringgetNodeName()
ObjectgetNodeNameObject()
Get the raw "type object" of a node.
SymbolgetNodeSymbol()
The Data Model's node-name accessor.
static StringgetNodeValue(NodeTree seq, int ipos)
static voidgetNodeValue(NodeTree seq, int ipos, StringBuffer sbuf)
StringgetNodeValue()
voidgetNodeValue(StringBuffer sbuf)
StringgetPrefix()
StringgetTextContent()
protected voidgetTextContent(StringBuffer sbuf)
booleanhasAttributes()
booleanhasChildNodes()
booleanisDefaultNamespace(String namespaceURI)
booleanisSupported(String feature, String version)
StringlookupNamespaceURI(String prefix)
StringlookupPrefix(String namespaceURI)
static KNodemake(NodeTree seq, int ipos)
static KNodemake(NodeTree seq)
voidnormalize()
StringtoString()

Constructor Detail

KNode

public KNode(NodeTree seq, int ipos)

Method Detail

atomicValue

public static Object atomicValue(Object value)

baseURI

public Path baseURI()

coerce

public static KNode coerce(Object value)
Convert value to a KNode, returning null if it isn't a node.

consume

public void consume(Consumer out)

copy

public SeqPosition copy()

getBaseURI

public String getBaseURI()

getFeature

public Object getFeature(String feature, String version)

getLocalName

public String getLocalName()

getNamespaceURI

public String getNamespaceURI()

getNodeName

public String getNodeName()

getNodeNameObject

public Object getNodeNameObject()
Get the raw "type object" of a node.

getNodeSymbol

public Symbol getNodeSymbol()
The Data Model's node-name accessor. Return the node's name as a SSymbol (QName) or null if there is none.

getNodeValue

public static String getNodeValue(NodeTree seq, int ipos)

getNodeValue

public static void getNodeValue(NodeTree seq, int ipos, StringBuffer sbuf)

getNodeValue

public String getNodeValue()

getNodeValue

public void getNodeValue(StringBuffer sbuf)

getPrefix

public String getPrefix()

getTextContent

public String getTextContent()

getTextContent

protected void getTextContent(StringBuffer sbuf)

hasAttributes

public boolean hasAttributes()

hasChildNodes

public boolean hasChildNodes()

isDefaultNamespace

public boolean isDefaultNamespace(String namespaceURI)

isSupported

public boolean isSupported(String feature, String version)

lookupNamespaceURI

public String lookupNamespaceURI(String prefix)

lookupPrefix

public String lookupPrefix(String namespaceURI)

make

public static KNode make(NodeTree seq, int ipos)

make

public static KNode make(NodeTree seq)

normalize

public void normalize()

toString

public String toString()