org.eaglei.search.provider
Class SearchRequest.TypeBinding

java.lang.Object
  extended by org.eaglei.search.provider.SearchRequest.TypeBinding
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
SearchRequest

public static class SearchRequest.TypeBinding
extends java.lang.Object
implements java.io.Serializable

Set of resource type-specific bindings for a search. These bindings are specified in reference to the eagle-i ontology. NOT multi-thread safe.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Constructor Summary
SearchRequest.TypeBinding(org.eaglei.model.EIURI type)
          Creates a new TypeBinding object for the specified eagle-i class.
 
Method Summary
 void addDataTypeProperty(org.eaglei.model.EIURI property, java.lang.String value)
          Adds a property binding for a data type property.
 void addObjectProperty(org.eaglei.model.EIURI property, org.eaglei.model.EIURI value)
          Adds a property binding for an object property.
 boolean equals(java.lang.Object obj)
           
 java.util.Set<org.eaglei.model.EIURI> getDataTypeProperties()
          Returns the URIs (as EIURI instances) for the result data type properties.
 java.lang.String getDataTypeProperty(org.eaglei.model.EIURI property)
          Retrieves the constraint of the specified data type property.
 java.util.Set<org.eaglei.model.EIURI> getObjectProperties()
          Returns the URIs (as EIURI instances) for the result object properties.
 org.eaglei.model.EIURI getObjectProperty(org.eaglei.model.EIURI property)
          Retrieves the constraints for the specified object property.
 org.eaglei.model.EIURI getType()
          Retrieves the type constraint for search result resources.
 int hashCode()
           
 void setType(org.eaglei.model.EIURI type)
          Sets the type constraint for search result resources.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

SearchRequest.TypeBinding

public SearchRequest.TypeBinding(org.eaglei.model.EIURI type)
Creates a new TypeBinding object for the specified eagle-i class.

Parameters:
type - A type from the eagle-i ontology.
Method Detail

getType

public org.eaglei.model.EIURI getType()
Retrieves the type constraint for search result resources. A URI of a class in the eagle-i ontology.

Returns:
Type constraint.

setType

public void setType(org.eaglei.model.EIURI type)
Sets the type constraint for search result resources.

Parameters:
type - Type constraint

getDataTypeProperties

public java.util.Set<org.eaglei.model.EIURI> getDataTypeProperties()
Returns the URIs (as EIURI instances) for the result data type properties.

Returns:
Set of EIURIs representing a eagle-i ontology data type properties for the result.

addDataTypeProperty

public void addDataTypeProperty(org.eaglei.model.EIURI property,
                                java.lang.String value)
Adds a property binding for a data type property.

Parameters:
property - Property URI as an EIURI. Cannot be null.
value - Property value.

getDataTypeProperty

public java.lang.String getDataTypeProperty(org.eaglei.model.EIURI property)
Retrieves the constraint of the specified data type property.

Parameters:
property - Property URI as an EIURI.
Returns:
Constraint of the property if it has been set or null.

getObjectProperties

public java.util.Set<org.eaglei.model.EIURI> getObjectProperties()
Returns the URIs (as EIURI instances) for the result object properties.

Returns:
Set of EIURIs representing a eagle-i ontology properties for the result.

addObjectProperty

public void addObjectProperty(org.eaglei.model.EIURI property,
                              org.eaglei.model.EIURI value)
Adds a property binding for an object property.

Parameters:
property - Property URI as an EIURI. Cannot be null.
value - Property value.

getObjectProperty

public org.eaglei.model.EIURI getObjectProperty(org.eaglei.model.EIURI property)
Retrieves the constraints for the specified object property.

Parameters:
property - Property URI as an EIURI.
Returns:
Values of the property if it has been set or null.

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2009-2011 Eagle-I. All Rights Reserved.