Package org.openprovenance.prov.model
Interface HasLocation
-
- All Known Subinterfaces:
Activity,Agent,Element,Entity,Used,WasEndedBy,WasGeneratedBy,WasInvalidatedBy,WasStartedBy
- All Known Implementing Classes:
Activity,Agent,Entity,Used,WasEndedBy,WasGeneratedBy,WasInvalidatedBy,WasStartedBy
public interface HasLocationInterface for PROV objects that have a location.
PROV-DM Definition for Location: A location can be an identifiable geographic place (ISO 19112), but it can also be a non-geographic place such as a directory, row, or column.
Relevant class
-
-
Method Summary
Modifier and Type Method Description List<Location>getLocation()Gets the value of the location property.
-
-
-
Method Detail
-
getLocation
List<Location> getLocation()
Gets the value of the location property.This accessor method returns a reference to the live list, not a snapshot. Therefore, any modification made to the returned list will be present inside the object. This is why there is not a
setmethod for the location property.For example, to add a new item, do as follows:
getLocation().add(newItem);- Returns:
- a list of objects of type
Location
-
-