|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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!!
Method Summary | |
int |
compareTo(ComparableResource otherResource,
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 |
public java.lang.String getInternalHref()
public java.lang.String getExternalHref()
public int greaterThan(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- the name of the property to checkliteral
- the value as String to check again
public int lowerThan(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- the name of the property to checkliteral
- the value as String to check again
public int greaterThanEquals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- the name of the property to checkliteral
- the value as String to check again
public int lowerThanEquals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- the name of the property to checkliteral
- the value as String to check again
public int equals(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- the name of the property to checkliteral
- the value as String to check again
public java.lang.Object getThisValue(java.lang.String propName, java.lang.String propNamespace)
propName
- the property name
public int compareTo(ComparableResource otherResource, CompareHint hint)
otherResource
- the other resource to compare tohint
- hints to do the compare (propName, isAscending...)
public boolean isDefined(java.lang.String propName, java.lang.String propNamespace)
propName
- a String
public int propContains(java.lang.String propName, java.lang.String propNamespace, java.lang.String literal)
propName
- a Stringliteral
- a String
public int contains(java.lang.String literal)
literal
- a String
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |