public class ITSAnnotatorsRefContext extends Object
| Constructor and Description |
|---|
ITSAnnotatorsRefContext(XMLStreamReader reader) |
| Modifier and Type | Method and Description |
|---|---|
GenericAnnotation |
getAnnotation()
Gets an annotation for the current annotatorsRef string.
|
String |
getAnnotatorRef(String dataCategory)
Gets the IRI for a given data category, for the current content.
|
String |
peek()
Gets the current annotatorsRef string.
|
void |
pop()
Pops the current annotatorsRef from the context stack.
|
void |
readAndPush()
Reads and pushes the annotatorsRef information in the context stack.
|
public ITSAnnotatorsRefContext(XMLStreamReader reader)
public void readAndPush()
The method looks if there is an ITS annotatorsRef attribute in the current node of the provided reader (the node is assumed to be an element) and uses it if present. It uses the parent context otherwise.
public void pop()
public String peek()
public GenericAnnotation getAnnotation()
Copyright © 2021. All rights reserved.