jInfer

cz.cuni.mff.ksi.jinfer.base.interfaces.nodes
Interface NamedNode

All Known Subinterfaces:
ContentNode, StructuralNode
All Known Implementing Classes:
AbstractNamedNode, AbstractStructuralNode, Attribute, Element, SimpleData

public interface NamedNode

Interface representing general node in grammar structure. Elements, attributes and content nodes are all descendants.


Method Summary
 List<String> getContext()
          Context of a node is it's absolute XPath in document.
 Map<String,Object> getMetadata()
          General map of objects not coming from document data, but describing more precisely how the data was seen.
 String getName()
          Name of the node.
 

Method Detail

getContext

List<String> getContext()
Context of a node is it's absolute XPath in document. For example from document Element c has context a/b/.

Returns:
list of strings = list of names of elements in XPath

getName

String getName()
Name of the node.

Returns:
name of the node.

getMetadata

Map<String,Object> getMetadata()
General map of objects not coming from document data, but describing more precisely how the data was seen. For example may contain location from where the node comes from (from xml file, from query, from schema). And any extensional data needed by inferring methods.

Returns:
map

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011