public interface ResourceLocation extends OsidCompendium
This interface defines a resource at a location.
| Modifier and Type | Method and Description |
|---|---|
Coordinate |
getCoordinate()
Gets the coordinate of the resource.
|
Location |
getLocation()
Gets the location of the resource.
|
Id |
getLocationId()
Gets the location
Id of the resource. |
Resource |
getResource()
Gets the resource on the route.
|
Id |
getResourceId()
Gets the
Id of the resource on the route. |
ResourceLocationRecord |
getResourceLocationRecord(Type resourceLocationRecordType)
Gets the map record corresponding to the given
ResourceLocation
record Type. |
boolean |
hasCoordinate()
Tests if this resource has a known coordinate.
|
boolean |
hasLocation()
Tests if this resource has a known location.
|
getEndDate, getStartDate, isExtrapolated, isInterpolatedgetDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeId getResourceId()
Id of the resource on the route. Id mandatory - This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasLocation()
true if a location is known, false
otherwisemandatory - This method must be implemented. Id getLocationId()
Id of the resource. Id IllegalStateException - hasLocation() is
false mandatory - This method must be implemented. Location getLocation() throws OperationFailedException
IllegalStateException - hasLocation() is
false OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasCoordinate()
true if a coordinate is known, false
otherwisemandatory - This method must be implemented. Coordinate getCoordinate()
IllegalStateException - hasCoordinate()
is false mandatory - This method must be implemented. ResourceLocationRecord getResourceLocationRecord(Type resourceLocationRecordType) throws OperationFailedException
ResourceLocation
record Type. This method is used to retrieve an
object implementing the requested record. The
resourceLocationRecordType may be the Type
returned in getRecordTypes() or any of its parents in a
Type hierarchy where
hasRecordType(resourceLocationRecordType) is true
.resourceLocationRecordType - the type of resource location
record to retrieveNullArgumentException -
resourceLocationRecordType is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(resourceLocationRecordType) is
false mandatory - This method must be implemented.