public interface QueryResult
Modifier and Type | Method and Description |
---|---|
AllowableActions |
getAllowableActions()
Returns the allowable actions if they have been requested.
|
List<PropertyData<?>> |
getProperties()
Returns the list of all properties in this query result.
|
<T> PropertyData<T> |
getPropertyById(String id)
Returns a property by ID.
|
<T> PropertyData<T> |
getPropertyByQueryName(String queryName)
Returns a property by query name or alias.
|
<T> List<T> |
getPropertyMultivalueById(String id)
Returns a property multi-value by ID.
|
<T> List<T> |
getPropertyMultivalueByQueryName(String queryName)
Returns a property multi-value by query name or alias.
|
<T> T |
getPropertyValueById(String id)
Returns a property (single) value by ID.
|
<T> T |
getPropertyValueByQueryName(String queryName)
Returns a property (single) value by query name or alias.
|
List<Relationship> |
getRelationships()
Returns the relationships if they have been requested.
|
List<Rendition> |
getRenditions()
Returns the renditions if they have been requested.
|
List<PropertyData<?>> getProperties()
null
<T> PropertyData<T> getPropertyById(String id)
Because repositories are not obligated to add property IDs to their query
result properties, this method might not always work as expected with
some repositories. Use getPropertyByQueryName(String)
instead.
id
- the property IDnull
if the property doesn't exist or
hasn't been requested<T> PropertyData<T> getPropertyByQueryName(String queryName)
queryName
- the property query name or aliasnull
if the property doesn't exist or
hasn't been requested<T> T getPropertyValueById(String id)
id
- the property IDgetPropertyById(String)
<T> T getPropertyValueByQueryName(String queryName)
queryName
- the property query name or aliasnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setgetPropertyByQueryName(String)
<T> List<T> getPropertyMultivalueById(String id)
id
- the property IDnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setgetPropertyById(String)
<T> List<T> getPropertyMultivalueByQueryName(String queryName)
queryName
- the property query name or aliasnull
if the property doesn't exist,
hasn't been requested, or the property value isn't setgetPropertyByQueryName(String)
AllowableActions getAllowableActions()
null
otherwiseList<Relationship> getRelationships()
null
otherwiseCopyright © 2009–2017 The Apache Software Foundation. All rights reserved.