org.jrdf.sparql.analysis
Class AttributeCollectorImpl

java.lang.Object
  extended by org.jrdf.sparql.analysis.AttributeCollectorImpl
All Implemented Interfaces:
Serializable, VariableCollector

public class AttributeCollectorImpl
extends Object
implements VariableCollector

A variable collector takes the attribute value pairs from constraints and add them to a map. Used to construct queries. As node types are gathered they are upgraded to compount types if they have stood in different positions in a constraint. For example ?uri <> <> . <> ?uri <> would create a attribute ?uri which of of type SubjectPredicateNodeType.

Version:
$Revision: 1078 $
Author:
Andrew Newman
See Also:
Serialized Form

Constructor Summary
AttributeCollectorImpl()
           
 
Method Summary
 void addConstraints(List<AttributeValuePair> avps)
           
 Map<AttributeName,PositionalNodeType> getAttributes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeCollectorImpl

public AttributeCollectorImpl()
Method Detail

addConstraints

public void addConstraints(List<AttributeValuePair> avps)
Specified by:
addConstraints in interface VariableCollector

getAttributes

public Map<AttributeName,PositionalNodeType> getAttributes()
Specified by:
getAttributes in interface VariableCollector