|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.slide.search.basic.ComparableResourceImpl
Represents one Resource. Implements operators like greaterThan, equals, ...
| Field Summary | |
protected PropertyProvider |
propertyProvider
The PropertyProvider to use (may be null). |
protected NodeRevisionDescriptor |
revisionDescriptor
the latest revision of this resource |
protected QueryScope |
scope
The scope. |
| Constructor Summary | |
protected |
ComparableResourceImpl()
|
|
ComparableResourceImpl(ObjectNode objectNode,
SearchToken searchToken,
QueryScope scope,
PropertyProvider propertyProvider)
Constructs a RequestedResource. |
|
ComparableResourceImpl(ObjectNode objectNode,
SlideToken slideToken,
Content contentHelper,
QueryScope scope,
PropertyProvider propertyProvider)
Constructs a RequestedResource. |
| Method Summary | |
int |
compareTo(ComparableResource otherResource,
CompareHint hint)
compares two RequestedResources according to OrderByHint. |
int |
contains(java.lang.String literal)
Checks, if the content of the resource contains a specific literal. |
boolean |
equals(java.lang.Object otherObject)
|
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.util.Iterator |
getAllProperties()
Returns all properties as an Iterator of NodeProperty objects. |
java.util.Iterator |
getAllPropertiesNames()
Returns an Iterator of PropertyName of all properties. |
java.lang.String |
getExternalHref()
Deprecated. |
java.lang.String |
getInternalHref()
href accessor |
NodeProperty |
getProperty(PropertyName propertyName)
Returns the property with the given propertyName. |
protected NodeProperty |
getProperty(java.lang.String propName)
Returns the NodeProperty with the given name and default namespace. |
NodeProperty |
getProperty(java.lang.String name,
java.lang.String namespace)
Returns the property with the given name and
namespace. |
java.lang.Object |
getThisValue(java.lang.String propName,
java.lang.String propNamespace)
Method getThisValue |
java.lang.String |
getUri()
Returns the URI of the 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. |
int |
hashCode()
|
boolean |
isCollection(NodeRevisionDescriptor revisionDescriptor)
Method isCollection |
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)
checks, if a properties' value contains a literal |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected NodeRevisionDescriptor revisionDescriptor
protected PropertyProvider propertyProvider
null).
protected QueryScope scope
| Constructor Detail |
public ComparableResourceImpl(ObjectNode objectNode,
SearchToken searchToken,
QueryScope scope,
PropertyProvider propertyProvider)
throws SlideException
objectNode - the ObjectNode for this resourcesearchToken - the SearchToken for this requestscope - the scope of the query.propertyProvider - the PropertyProvider to use (may be
null).
BadQueryException
SlideException
public ComparableResourceImpl(ObjectNode objectNode,
SlideToken slideToken,
Content contentHelper,
QueryScope scope,
PropertyProvider propertyProvider)
throws SlideException
objectNode - the ObjectNode for this resourceslideToken - the slideToken for this requestcontentHelper - you won't believe, the ContentHelperscope - the scope of the query.propertyProvider - the PropertyProvider to use (may be
null).
BadQueryException
SlideExceptionprotected ComparableResourceImpl()
| Method Detail |
public int greaterThan(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
greaterThan in interface ComparableResourcepropName - 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)
ComparableResource
greaterThanEquals in interface ComparableResourcepropName - 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)
ComparableResource
lowerThan in interface ComparableResourcepropName - 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)
ComparableResource
lowerThanEquals in interface ComparableResourcepropName - 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)
equals in interface ComparableResourcepropName - the name of the property to checkliteral - the value as String to check again
public int propContains(java.lang.String propName,
java.lang.String propNamespace,
java.lang.String literal)
propContains in interface ComparableResourcepropName - a Stringliteral - a String
public java.lang.String getInternalHref()
getInternalHref in interface ComparableResourcepublic java.lang.String getExternalHref()
getExternalHref in interface ComparableResource
public java.lang.Object getThisValue(java.lang.String propName,
java.lang.String propNamespace)
getThisValue in interface ComparableResourcepropName - the property name
protected NodeProperty getProperty(java.lang.String propName)
default namespace.
propName - the name of the property.
public java.lang.String getUri()
getUri in interface RequestedResource
public NodeProperty getProperty(PropertyName propertyName)
throws SlideException
propertyName.
getProperty in interface RequestedResourcepropertyName - the PropertyName of the property.
npropertyNameame.
SlideException
public NodeProperty getProperty(java.lang.String name,
java.lang.String namespace)
throws SlideException
name and
namespace.
getProperty in interface RequestedResourcename - the name of the property.namespace - the namespace URI of the property.
name and
namespace.
SlideException
public java.util.Iterator getAllPropertiesNames()
throws SlideException
getAllPropertiesNames in interface RequestedResourceSlideException
public java.util.Iterator getAllProperties()
throws SlideException
getAllProperties in interface RequestedResourceSlideExceptionpublic boolean isCollection(NodeRevisionDescriptor revisionDescriptor)
revisionDescriptor - a NodeRevisionDescriptor
public int compareTo(ComparableResource otherResource,
CompareHint hint)
compareTo in interface ComparableResourceotherResource - a RequestedResourcehint - an OrderByHint
public boolean isDefined(java.lang.String propName,
java.lang.String propNamespace)
isDefined in interface ComparableResourcepropName - a String
public int contains(java.lang.String literal)
contains in interface ComparableResourceliteral - a String
public boolean equals(java.lang.Object otherObject)
public int hashCode()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||