Package nz.org.riskscape.engine
Class DefaultIdentifiedLocator
java.lang.Object
nz.org.riskscape.engine.DefaultIdentifiedLocator
- All Implemented Interfaces:
nz.org.riskscape.engine.IdentifiedLocator
- Direct Known Subclasses:
DefaultEngine
,DefaultProject
public class DefaultIdentifiedLocator
extends Object
implements nz.org.riskscape.engine.IdentifiedLocator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends nz.org.riskscape.engine.Identified,
U extends nz.org.riskscape.engine.IdentifiedCollection<T>>
UgetCollection
(Class<U> collectionClass) <T extends nz.org.riskscape.engine.Identified>
nz.org.riskscape.engine.IdentifiedCollection<T>getCollectionByClass
(Class<T> identifiedClass) boolean
hasCollectionOf
(Class<? extends nz.org.riskscape.engine.Identified> identifiedClass) protected <T extends nz.org.riskscape.engine.IdentifiedCollection<?>>
Tput
(T collection) Convenience method to allow extenders of this class to register collections while also assigning them to a fieldvoid
registerCollection
(nz.org.riskscape.engine.IdentifiedCollection<?> collection) toString()
-
Constructor Details
-
DefaultIdentifiedLocator
public DefaultIdentifiedLocator()
-
-
Method Details
-
getCollectionByClass
public <T extends nz.org.riskscape.engine.Identified> nz.org.riskscape.engine.IdentifiedCollection<T> getCollectionByClass(Class<T> identifiedClass) - Specified by:
getCollectionByClass
in interfacenz.org.riskscape.engine.IdentifiedLocator
-
getCollection
public <T extends nz.org.riskscape.engine.Identified,U extends nz.org.riskscape.engine.IdentifiedCollection<T>> U getCollection(Class<U> collectionClass) - Specified by:
getCollection
in interfacenz.org.riskscape.engine.IdentifiedLocator
-
registerCollection
public void registerCollection(nz.org.riskscape.engine.IdentifiedCollection<?> collection) -
hasCollectionOf
- Specified by:
hasCollectionOf
in interfacenz.org.riskscape.engine.IdentifiedLocator
-
getCollectionClasses
- Specified by:
getCollectionClasses
in interfacenz.org.riskscape.engine.IdentifiedLocator
-
put
protected <T extends nz.org.riskscape.engine.IdentifiedCollection<?>> T put(T collection) Convenience method to allow extenders of this class to register collections while also assigning them to a field
-
toString
-