public class StringToken extends LexicalUnit
Constructor and Description |
---|
StringToken(RdfTurtleReader contentHandler,
Context context)
Constructor with arguments.
|
Modifier and Type | Method and Description |
---|---|
String |
getLanguage() |
String |
getType() |
boolean |
isMultiLines()
Returns true if this string of characters contains at least one newline
character.
|
void |
parse()
Contains the parsing logic of this lexical unit.
|
Object |
resolve()
Resolves the current value as a reference or a literal or a graph of
links according to the current context.
|
void |
setLanguage(String language) |
void |
setMultiLines(boolean multiLines) |
void |
setType(String type) |
String |
toString() |
getContentReader, getContext, getValue, setContext, setValue
public StringToken(RdfTurtleReader contentHandler, Context context) throws IOException
contentHandler
- The document's parent handler.context
- The parsing context.IOException
public String getLanguage()
public String getType()
public boolean isMultiLines()
public void parse() throws IOException
LexicalUnit
parse
in class LexicalUnit
IOException
public Object resolve()
LexicalUnit
resolve
in class LexicalUnit
public void setLanguage(String language)
public void setMultiLines(boolean multiLines)
public void setType(String type)
Copyright © 2005–2017. All rights reserved.