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
Constructors -
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) booleanhasCollectionOf(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 fieldvoidregisterCollection(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:
getCollectionByClassin 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:
getCollectionin interfacenz.org.riskscape.engine.IdentifiedLocator
-
registerCollection
public void registerCollection(nz.org.riskscape.engine.IdentifiedCollection<?> collection) -
hasCollectionOf
- Specified by:
hasCollectionOfin interfacenz.org.riskscape.engine.IdentifiedLocator
-
getCollectionClasses
- Specified by:
getCollectionClassesin 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
-