Class BlankNodeToken
- java.lang.Object
-
- org.restlet.ext.rdf.internal.turtle.LexicalUnit
-
- org.restlet.ext.rdf.internal.turtle.BlankNodeToken
-
public class BlankNodeToken extends LexicalUnit
Represents a blank node inside a RDF N3 document. Contains all the logic to parse a blank node in N3 documents.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LexicalUnit>lexicalUnitsList of lexical units contained by this blank node.private booleanresolvedIndicates if the given blank node has been already resolved.
-
Constructor Summary
Constructors Constructor Description BlankNodeToken(java.lang.String value)ConstructorBlankNodeToken(RdfTurtleReader contentHandler, Context context)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<LexicalUnit>getLexicalUnits()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, getValue, setContext, setValue
-
-
-
-
Field Detail
-
lexicalUnits
private java.util.List<LexicalUnit> lexicalUnits
List of lexical units contained by this blank node.
-
resolved
private boolean resolved
Indicates if the given blank node has been already resolved.
-
-
Constructor Detail
-
BlankNodeToken
public BlankNodeToken(RdfTurtleReader contentHandler, Context context) throws java.io.IOException
Constructor. The blank node is given a new identifier thanks to the context.- Parameters:
contentHandler- The parent content handler.context- The context used to resolved references.- Throws:
java.io.IOException
-
BlankNodeToken
public BlankNodeToken(java.lang.String value)
Constructor- Parameters:
value- The value of this blank node.
-
-
Method Detail
-
getLexicalUnits
public java.util.List<LexicalUnit> getLexicalUnits()
-
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.
-
-