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 void setLanguage(String language)
public String getType()
public void setType(String type)
public boolean isMultiLines()
public void parse()
throws IOException
LexicalUnitparse in class LexicalUnitIOExceptionpublic Object resolve()
LexicalUnitresolve in class LexicalUnitpublic void setMultiLines(boolean multiLines)
Copyright © 2005–2015. All rights reserved.