org.jrdf.sparql.analysis
Class AttributeCollectorImpl
java.lang.Object
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
AttributeCollectorImpl
public AttributeCollectorImpl()
addConstraints
public void addConstraints(Map<Attribute,Node> avps)
- Specified by:
addConstraints in interface VariableCollector
getAttributes
public Map<AttributeName,PositionalNodeType> getAttributes()
- Specified by:
getAttributes in interface VariableCollector
toString
public String toString()
- Overrides:
toString in class Object