public abstract class LexicalUnit extends Object
Constructor and Description |
---|
LexicalUnit(RdfTurtleReader contentReader,
Context context)
Constructor with arguments.
|
LexicalUnit(String value)
Constructor with value.
|
Modifier and Type | Method and Description |
---|---|
RdfTurtleReader |
getContentReader()
Returns the document's reader.
|
Context |
getContext()
Returns the parsing context.
|
String |
getValue()
Returns the current value.
|
abstract void |
parse()
Contains the parsing logic of this lexical unit.
|
abstract Object |
resolve()
Resolves the current value as a reference or a literal or a graph of
links according to the current context.
|
void |
setContext(Context context)
Sets the parsing context.
|
void |
setValue(String value)
Sets the value.
|
public LexicalUnit(RdfTurtleReader contentReader, Context context)
contentHandler
- The document's parent handler.context
- The parsing context.public LexicalUnit(String value)
value
- The value of the current lexical unit.public RdfTurtleReader getContentReader()
public Context getContext()
public String getValue()
public abstract void parse() throws IOException
IOException
public abstract Object resolve()
public void setContext(Context context)
context
- The parsing context.public void setValue(String value)
value
- The current value.Copyright © 2005–2019. All rights reserved.