org.newsml.toolkit
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.
- Version:
- 1.1beta
- Author:
- Reuters PLC
Methods inherited from interface org.newsml.toolkit.BaseNode |
getChild, getChild, getChild, getChild, getChildCount, getChildCount, getParent, getPath, getSession, getXMLName, getXPath, removeSelf, toXML, toXML, writeXML, writeXML |
getContext
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.
- Returns:
- Text containing a relative XPath expression (not null).
getScheme
public Text getScheme()
- Get the scheme to be applied to any matches.
- Returns:
- Text containing the scheme string, or null if none was
provided.