org.eaglei.model.webapp.client.searchbar
Class TermSearchRequest.TypeBinding

java.lang.Object
  extended by org.eaglei.model.webapp.client.searchbar.TermSearchRequest.TypeBinding
All Implemented Interfaces:
java.io.Serializable
Enclosing class:
TermSearchRequest

public static class TermSearchRequest.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
TermSearchRequest.TypeBinding(org.eaglei.model.EIURI type)
          Creates a new TypeBinding object for the specified eagle-i class.
 
Method Summary
 void addProperty(org.eaglei.model.EIURI property, java.lang.Object value)
          Adds a property binding.
 boolean equals(java.lang.Object obj)
           
 java.util.Set<org.eaglei.model.EIURI> getProperties()
          Returns the URIs (as EIURI instances) for the property bindings
 java.lang.Object getProperty(org.eaglei.model.EIURI property)
          Retrieves the specified property.
 org.eaglei.model.EIURI getType()
          Retrieves the type constraint for search result resources.
 int hashCode()
           
 
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

TermSearchRequest.TypeBinding

public TermSearchRequest.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.

addProperty

public void addProperty(org.eaglei.model.EIURI property,
                        java.lang.Object value)
Adds a property binding.

Parameters:
property - URI of one of the type's properties.
value - Value that the property must have.

getProperties

public java.util.Set<org.eaglei.model.EIURI> getProperties()
Returns the URIs (as EIURI instances) for the property bindings

Returns:
Set of EIURIs representing property bindings.

getProperty

public java.lang.Object getProperty(org.eaglei.model.EIURI property)
Retrieves the specified property.

Parameters:
property - Property URI as an EIURI.
Returns:
Value 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-2010 Eagle-I. All Rights Reserved.