Class ProcessTaxonomyModel
- java.lang.Object
-
- fi.tut.mei.capabilityQueryLib.model.ProcessTaxonomyModel
-
public class ProcessTaxonomyModel extends Object
Class that has information about the process taxonomy model- Author:
- hylli
-
-
Constructor Summary
Constructors Constructor Description ProcessTaxonomyModel(Client client)
Create the process taxonomy model from the ontology
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<ProcessTaxonomy>
getAll()
Get all process taxonomies.Set<ProcessTaxonomy>
getHighestLevelProcessTaxonomies()
Get the highest level process taxonomies i.e.ProcessTaxonomy
getProcessTaxonomyByName(String name)
Get a process taxonomy by name.
-
-
-
Constructor Detail
-
ProcessTaxonomyModel
public ProcessTaxonomyModel(Client client)
Create the process taxonomy model from the ontology- Parameters:
client
- The ontology client used in creating the process taxonomy model.
-
-
Method Detail
-
getProcessTaxonomyByName
public ProcessTaxonomy getProcessTaxonomyByName(String name)
Get a process taxonomy by name.- Parameters:
name
- process taxonomy name- Returns:
- a process taxonomy with the given name, null if there is not a taxonomy with the name
-
getHighestLevelProcessTaxonomies
public Set<ProcessTaxonomy> getHighestLevelProcessTaxonomies()
Get the highest level process taxonomies i.e. those with no parent.- Returns:
- Highest level process taxonomies in an unmodifiable set.
-
getAll
public Collection<ProcessTaxonomy> getAll()
Get all process taxonomies.- Returns:
- Process taxonomies in an unmodifiable collection.
-
-