Interface DefaultVocabularyFor

All Superinterfaces:
BaseNode, IdNode

public interface DefaultVocabularyFor
extends BaseNode, IdNode

A default vocabulary declaration.

This class represents a default vocabulary for all formal names that occur in markup matching the XPath expression provided by the getContext() method.

Reuters PLC

Method Summary
 Text getContext()
          Get the XPath expression to match.
 Text getScheme()
          Get the scheme to be applied to any matches.
Methods inherited from interface org.newsml.toolkit.BaseNode
getAttr, getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, insertAfter, insertAfter, insertAfter, insertAfter, insertAfterDuid, insertAfterDuid, insertBefore, insertBefore, insertBefore, insertBefore, insertBeforeDuid, insertBeforeDuid, insertChild, insertChild, insertFirst, insertFirst, insertLast, insertLast, removeChild, removeChild, removeSelf, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, replaceChild, setAttr, setAttr, toXML, toXML, unsetAttr, unsetAttr, writeXML, writeXML
Methods inherited from interface org.newsml.toolkit.IdNode
getDuid, getEuid

Method Detail


public Text getContext()
Get the XPath expression to match.

It is assumed in the FormalNameNode class (in the FormalNameNode.getDefaultVocabulary(boolean) and FormalNameNode.getDefaultScheme(boolean) methods) that the context node for the XPath expression is the parent of the Catalog containing this declaration. The NewsML 1.0 functional specification does not state what the context node should be.

Text containing a relative XPath expression (not null).


public Text getScheme()
Get the scheme to be applied to any matches.
Text containing the scheme string, or null if none was provided.