org.openanzo.server.repository.querybuilder
Class ObjectGrounding.FixedRdfValue

java.lang.Object
  extended by org.openanzo.server.repository.querybuilder.ObjectGrounding.FixedRdfValue
All Implemented Interfaces:
ObjectGrounding, ObjectGrounding.FixedValue
Enclosing interface:
ObjectGrounding

public static class ObjectGrounding.FixedRdfValue
extends java.lang.Object
implements ObjectGrounding.FixedValue

Implementation of the FixedValue grounding


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.openanzo.server.repository.querybuilder.ObjectGrounding
ObjectGrounding.FixedRdfValue, ObjectGrounding.FixedValue, ObjectGrounding.RdbColumn
 
Field Summary
 
Fields inherited from interface org.openanzo.server.repository.querybuilder.ObjectGrounding
RdfValue, Resource
 
Constructor Summary
ObjectGrounding.FixedRdfValue(IRdbTerm value)
          Create a new FixedRdfValue for the given Anzo node
 
Method Summary
 java.lang.Long getId(CompositeNodeLayout nodeLayout)
          Get the ID of the node for the fixed value
 IRdbTerm getValue()
          Get the fixed value for this grounding
 boolean isExactMatch(org.openrdf.model.Value value)
          Determine if the fixed value matches the provided value
 boolean isValidObject(org.openrdf.model.Value value)
          Returns true if the given RDF value is compatible with the column type of the ObjectGrounding instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectGrounding.FixedRdfValue

public ObjectGrounding.FixedRdfValue(IRdbTerm value)
Create a new FixedRdfValue for the given Anzo node

Parameters:
value - fixed value to match
Method Detail

isValidObject

public boolean isValidObject(org.openrdf.model.Value value)
Description copied from interface: ObjectGrounding
Returns true if the given RDF value is compatible with the column type of the ObjectGrounding instance.

Specified by:
isValidObject in interface ObjectGrounding
Parameters:
value - value to determine compatibility
Returns:
true if the given RDF value is compatible with the column type of the ObjectGrounding instance

getValue

public IRdbTerm getValue()
Description copied from interface: ObjectGrounding.FixedValue
Get the fixed value for this grounding

Specified by:
getValue in interface ObjectGrounding.FixedValue
Returns:
the fixed value for this grounding

getId

public java.lang.Long getId(CompositeNodeLayout nodeLayout)
Description copied from interface: ObjectGrounding.FixedValue
Get the ID of the node for the fixed value

Specified by:
getId in interface ObjectGrounding.FixedValue
Parameters:
nodeLayout - CompositeNodeLayout to retrieve URIs and Node values
Returns:
the ID of the node for the fixed value

isExactMatch

public boolean isExactMatch(org.openrdf.model.Value value)
Description copied from interface: ObjectGrounding.FixedValue
Determine if the fixed value matches the provided value

Specified by:
isExactMatch in interface ObjectGrounding.FixedValue
Parameters:
value - value to determine match
Returns:
if the fixed value matches the provided value


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.