|
|||||||||
| Home >> All >> org >> apache >> slide >> search >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.slide.search.basic
Interface ComparableResource

- All Superinterfaces:
- org.apache.slide.search.RequestedResource
- All Known Implementing Classes:
- ComparableResourceImpl
- public interface ComparableResource
- extends org.apache.slide.search.RequestedResource
Represents one item of a searcheable set. One item is identified with a unique URI. A RequestedItem may be compared against a property represented by property name and value (as String). These compare methods (equals(), greaterThan(), ...) use three valued logic (TRUE, FALSE, UNKNOWN). UNKNOWN is returned when this item does not know the property to compare against or when the value of that property may not be converted to the datatype of this items matching property (for example comparing a Float against the string "foo"). TODO: Namespace awareness!!
- Version:
- $Revision: 1.4 $
| Method Summary | |
int |
compareTo(ComparableResource otherResource,
org.apache.slide.search.CompareHint hint)
Compares this resource to another resource according to the given compareHints. |
int |
contains(java.lang.String literal)
Checks, if the content of the resource contains a specific literal. |
int |
equals(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Checks, if a property, represented by its name and value (as String), is EQUAL the matching property within this item. |
java.lang.String |
getExternalHref()
returns the external href. |
java.lang.String |
getInternalHref()
returns the internal href. |
java.lang.Object |
getThisValue(java.lang.String propName,
java.lang.String propNamespace)
Retrieves the value for the given property of this Resource |
int |
greaterThan(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Checks, if a property, represented by its name and value (as String), is greater than the matching property within this item. |
int |
greaterThanEquals(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Checks, if a property, represented by its name and value (as String), is greater or equal than the matching property within this item. |
boolean |
isDefined(java.lang.String propName,
java.lang.String propNamespace)
Method isDefined |
int |
lowerThan(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Checks, if a property, represented by its name and value (as String), is lower than the matching property within this item. |
int |
lowerThanEquals(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Checks, if a property, represented by its name and value (as String), is lower or equal than the matching property within this item. |
int |
propContains(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
Method propContains |
| Methods inherited from interface org.apache.slide.search.RequestedResource |
getAllProperties, getAllPropertiesNames, getProperty, getProperty, getUri |
| Method Detail |
getInternalHref
public java.lang.String getInternalHref()
- returns the internal href. / means: the root of this slide
for example http://localhost/slide
getExternalHref
public java.lang.String getExternalHref()
- returns the external href. / means: the root of this server
for example http://localhost/
greaterThan
public int greaterThan(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Checks, if a property, represented by its name and value (as String),
is greater than the matching property within this item.
lowerThan
public int lowerThan(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Checks, if a property, represented by its name and value (as String),
is lower than the matching property within this item.
greaterThanEquals
public int greaterThanEquals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Checks, if a property, represented by its name and value (as String),
is greater or equal than the matching property within this item.
lowerThanEquals
public int lowerThanEquals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Checks, if a property, represented by its name and value (as String),
is lower or equal than the matching property within this item.
equals
public int equals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Checks, if a property, represented by its name and value (as String),
is EQUAL the matching property within this item.
getThisValue
public java.lang.Object getThisValue(java.lang.String propName, java.lang.String propNamespace)
- Retrieves the value for the given property of this Resource
compareTo
public int compareTo(ComparableResource otherResource, org.apache.slide.search.CompareHint hint)
- Compares this resource to another resource according to the given
compareHints. This is used by ordering. A value < 0 is retuned, if this
resource is to be placed before the other resource, not necessarily if
is lower than the other resource (depending on isAscending() in hints).
isDefined
public boolean isDefined(java.lang.String propName, java.lang.String propNamespace)
- Method isDefined
propContains
public int propContains(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
- Method propContains
contains
public int contains(java.lang.String literal)
- Checks, if the content of the resource contains a specific literal.
|
|||||||||
| Home >> All >> org >> apache >> slide >> search >> [ basic overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC