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, setValuepublic StringToken(RdfTurtleReader contentHandler, Context context) throws IOException
contentHandler - The document's parent handler.context - The parsing context.IOExceptionpublic String getLanguage()
public String getType()
public boolean isMultiLines()
public void parse()
throws IOException
LexicalUnitparse in class LexicalUnitIOExceptionpublic Object resolve()
LexicalUnitresolve in class LexicalUnitpublic void setLanguage(String language)
public void setMultiLines(boolean multiLines)
public void setType(String type)
Copyright © 2005–2016. All rights reserved.