org.jrdf.sparql.builder
Class TripleBuilderImpl

java.lang.Object
  extended by org.jrdf.sparql.parser.analysis.AnalysisAdapter
      extended by org.jrdf.sparql.parser.analysis.DepthFirstAdapter
          extended by org.jrdf.sparql.builder.TripleBuilderImpl
All Implemented Interfaces:
TripleBuilder, org.jrdf.sparql.parser.analysis.Analysis, org.jrdf.sparql.parser.node.Switch

public final class TripleBuilderImpl
extends org.jrdf.sparql.parser.analysis.DepthFirstAdapter
implements TripleBuilder


Constructor Summary
TripleBuilderImpl(Graph graph, AttributeValuePairHelper avpHelper, SortedAttributeFactory sortedAttributeFactory)
           
 
Method Summary
 void addPrefix(String identifier, String resource)
           
 void caseATriple(org.jrdf.sparql.parser.node.ATriple node)
           
 List<AttributeValuePair> getTriples()
          Builds the given tripleNode into a local Triple.
 
Methods inherited from class org.jrdf.sparql.parser.analysis.DepthFirstAdapter
caseABlockOfTriples, caseABlockOfTriplesFilteredBasicGraphPattern, caseADatatype, caseADbQuotedEscapedDbQuotedStrand, caseADbQuotedLiteralLiteral, caseADbQuotedUnescapedDbQuotedStrand, caseAFilteredBasicGraphPatternGraphPattern, caseAGroupGraphPattern, caseAGroupOrUnionGraphPattern, caseAGroupOrUnionGraphPatternGraphPatternNotTriples, caseALiteralObjectTripleElement, caseAMoreTriples, caseAOperationPattern, caseAOptionalGraphPattern, caseAOptionalGraphPatternGraphPatternNotTriples, caseAPrefixdeclProlog, caseAPrefixPrefixdecl, caseAQnameObjectTripleElement, caseAQnameResourceTripleElement, caseAQueryStart, caseAQuotedEscapedQuotedStrand, caseAQuotedLiteralLiteral, caseAQuotedUnescapedQuotedStrand, caseAResourceObjectTripleElement, caseAResourceResourceTripleElement, caseAUnionGraphPattern, caseAVariable, caseAVariableListSelectClause, caseAVariableObjectTripleElement, caseAVariableResourceTripleElement, caseAWhereClause, caseAWildcardSelectClause, caseStart, defaultIn, defaultOut, inABlockOfTriples, inABlockOfTriplesFilteredBasicGraphPattern, inADatatype, inADbQuotedEscapedDbQuotedStrand, inADbQuotedLiteralLiteral, inADbQuotedUnescapedDbQuotedStrand, inAFilteredBasicGraphPatternGraphPattern, inAGroupGraphPattern, inAGroupOrUnionGraphPattern, inAGroupOrUnionGraphPatternGraphPatternNotTriples, inALiteralObjectTripleElement, inAMoreTriples, inAOperationPattern, inAOptionalGraphPattern, inAOptionalGraphPatternGraphPatternNotTriples, inAPrefixdeclProlog, inAPrefixPrefixdecl, inAQnameObjectTripleElement, inAQnameResourceTripleElement, inAQueryStart, inAQuotedEscapedQuotedStrand, inAQuotedLiteralLiteral, inAQuotedUnescapedQuotedStrand, inAResourceObjectTripleElement, inAResourceResourceTripleElement, inATriple, inAUnionGraphPattern, inAVariable, inAVariableListSelectClause, inAVariableObjectTripleElement, inAVariableResourceTripleElement, inAWhereClause, inAWildcardSelectClause, inStart, outABlockOfTriples, outABlockOfTriplesFilteredBasicGraphPattern, outADatatype, outADbQuotedEscapedDbQuotedStrand, outADbQuotedLiteralLiteral, outADbQuotedUnescapedDbQuotedStrand, outAFilteredBasicGraphPatternGraphPattern, outAGroupGraphPattern, outAGroupOrUnionGraphPattern, outAGroupOrUnionGraphPatternGraphPatternNotTriples, outALiteralObjectTripleElement, outAMoreTriples, outAOperationPattern, outAOptionalGraphPattern, outAOptionalGraphPatternGraphPatternNotTriples, outAPrefixdeclProlog, outAPrefixPrefixdecl, outAQnameObjectTripleElement, outAQnameResourceTripleElement, outAQueryStart, outAQuotedEscapedQuotedStrand, outAQuotedLiteralLiteral, outAQuotedUnescapedQuotedStrand, outAResourceObjectTripleElement, outAResourceResourceTripleElement, outATriple, outAUnionGraphPattern, outAVariable, outAVariableListSelectClause, outAVariableObjectTripleElement, outAVariableResourceTripleElement, outAWhereClause, outAWildcardSelectClause, outStart
 
Methods inherited from class org.jrdf.sparql.parser.analysis.AnalysisAdapter
caseEOF, caseTAsterisk, caseTBlank, caseTColon, caseTComment, caseTDatatypeprefix, caseTDbqescape, caseTDbqescapedtext, caseTDbqtext, caseTDbquote, caseTEndcomment, caseTEndurl, caseTFloat, caseTHash, caseTIdentifier, caseTLpar, caseTNumber, caseTOptional, caseTPeriod, caseTPrefix, caseTQescape, caseTQescapedtext, caseTQtext, caseTQuote, caseTResource, caseTRpar, caseTSelect, caseTTerminator, caseTUnion, caseTUrl, caseTVariableprefix, caseTWhere, defaultCase, getIn, getOut, setIn, setOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TripleBuilderImpl

public TripleBuilderImpl(Graph graph,
                         AttributeValuePairHelper avpHelper,
                         SortedAttributeFactory sortedAttributeFactory)
Method Detail

getTriples

public List<AttributeValuePair> getTriples()
                                    throws org.jrdf.sparql.parser.parser.ParserException
Builds the given tripleNode into a local Triple.

Specified by:
getTriples in interface TripleBuilder
Returns:
The local version of the given tripleNode
Throws:
org.jrdf.sparql.parser.parser.ParserException

addPrefix

public void addPrefix(String identifier,
                      String resource)
Specified by:
addPrefix in interface TripleBuilder

caseATriple

public void caseATriple(org.jrdf.sparql.parser.node.ATriple node)
Specified by:
caseATriple in interface org.jrdf.sparql.parser.analysis.Analysis
Overrides:
caseATriple in class org.jrdf.sparql.parser.analysis.DepthFirstAdapter