Class ListToken
- java.lang.Object
-
- org.restlet.ext.rdf.internal.turtle.LexicalUnit
-
- org.restlet.ext.rdf.internal.turtle.ListToken
-
public class ListToken extends LexicalUnit
Represents a list of Turtle tokens.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<LexicalUnit>lexicalUnitsThe list of contained tokens.
-
Constructor Summary
Constructors Constructor Description ListToken(RdfTurtleReader contentHandler, Context context)Constructor with arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LexicalUnit>getLexicalUnits()java.lang.StringgetValue()Returns the current value.voidparse()Contains the parsing logic of this lexical unit.java.lang.Objectresolve()Resolves the current value as a reference or a literal or a graph of links according to the current context.-
Methods inherited from class org.restlet.ext.rdf.internal.turtle.LexicalUnit
getContentReader, getContext, setContext, setValue
-
-
-
-
Field Detail
-
lexicalUnits
java.util.List<LexicalUnit> lexicalUnits
The list of contained tokens.
-
-
Constructor Detail
-
ListToken
public ListToken(RdfTurtleReader contentHandler, Context context) throws java.io.IOException
Constructor with arguments.- Parameters:
contentHandler- The document's parent handler.context- The parsing context.- Throws:
java.io.IOException
-
-
Method Detail
-
getLexicalUnits
public java.util.List<LexicalUnit> getLexicalUnits()
-
getValue
public java.lang.String getValue()
Description copied from class:LexicalUnitReturns the current value.- Overrides:
getValuein classLexicalUnit- Returns:
- The current value.
-
parse
public void parse() throws java.io.IOExceptionDescription copied from class:LexicalUnitContains the parsing logic of this lexical unit.- Specified by:
parsein classLexicalUnit- Throws:
java.io.IOException
-
resolve
public java.lang.Object resolve()
Description copied from class:LexicalUnitResolves the current value as a reference or a literal or a graph of links according to the current context.- Specified by:
resolvein classLexicalUnit- Returns:
- The current value as a reference or a literal or a graph of links according to the current context.
-
-