public interface Document
Modifier and Type | Method and Description |
---|---|
ControlledVocabularyRepository |
findControlledVocabularyRepository(URI uri)
Find a registered
ControlledVocabularyRepository instance. |
List<Node> |
getNodes(String locationPath)
Get a list of DOM nodes found at the given XPath.
|
URI |
getURI()
Gets the URI of the source of the document.
|
void |
register(ControlledVocabularyRepository controlledVocabularyRepository)
Register a
ControlledVocabularyRepository instance. |
void |
setNamespaceContext(NamespaceContext namespaceContext) |
URI getURI()
null
if the document was constructed from a source that didn't specify a URI.List<Node> getNodes(String locationPath) throws XPathExpressionException
locationPath
- the XPath to the nodes to look up.XPathExpressionException
void register(ControlledVocabularyRepository controlledVocabularyRepository)
ControlledVocabularyRepository
instance. The ControlledVocabularyRepository
can be looked up using findControlledVocabularyRepository(URI)
with a registered URI.controlledVocabularyRepository
- the repository.ControlledVocabularyRepository findControlledVocabularyRepository(URI uri)
ControlledVocabularyRepository
instance.
ControlledVocabularyRepository
instances are registered using
register(ControlledVocabularyRepository)
.
uri
- the URI of the controlled vocabulary.null
if the uri was not registered.void setNamespaceContext(NamespaceContext namespaceContext)
Copyright © 2025 CESSDA ERIC. All rights reserved.