Class UriToken
- java.lang.Object
-
- org.restlet.ext.rdf.internal.turtle.LexicalUnit
-
- org.restlet.ext.rdf.internal.turtle.UriToken
-
public class UriToken extends LexicalUnit
Represents a URI token inside a RDF Turtle document.
-
-
Constructor Summary
Constructors Constructor Description UriToken(RdfTurtleReader contentHandler, Context context)Constructor with arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidparse()Contains the parsing logic of this lexical unit.Referenceresolve()Resolves the current value as a reference or a literal or a graph of links according to the current context.java.lang.StringtoString()-
Methods inherited from class org.restlet.ext.rdf.internal.turtle.LexicalUnit
getContentReader, getContext, getValue, setContext, setValue
-
-
-
-
Constructor Detail
-
UriToken
public UriToken(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
-
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 Reference 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.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-