Class TypeRegistry.DirectAccess
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.TypeRegistry.DirectAccess
-
- All Implemented Interfaces:
IDirectTypeRegistryAccess
- Enclosing class:
- TypeRegistry
private class TypeRegistry.DirectAccess extends java.lang.Object implements IDirectTypeRegistryAccess
Implements the direct access interface forITypeResolver.- Author:
- Holger Eichelberger
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDirectAccess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String name, TypeDescriptor<?> type)Adds a type.voidaddInstantiator(java.lang.String name, TypeDescriptor<? extends IVilType> type)Adds an instantiator.booleancontains(java.lang.String name)Returns whether the type given bynameis already registered.booleancontainsInstantiator(java.lang.String name)Returns whether the instantiator given bynameis already registered.TypeDescriptor<?>get(java.lang.String name)Returns the type descriptor registered forname.
-
-
-
Method Detail
-
add
public void add(java.lang.String name, TypeDescriptor<?> type)Description copied from interface:IDirectTypeRegistryAccessAdds a type.- Specified by:
addin interfaceIDirectTypeRegistryAccess- Parameters:
name- the name of the typetype- the type to be added
-
contains
public boolean contains(java.lang.String name)
Description copied from interface:IDirectTypeRegistryAccessReturns whether the type given bynameis already registered.- Specified by:
containsin interfaceIDirectTypeRegistryAccess- Parameters:
name- the name of the type- Returns:
trueif it was registered,falseelse
-
get
public TypeDescriptor<?> get(java.lang.String name)
Description copied from interface:IDirectTypeRegistryAccessReturns the type descriptor registered forname.- Specified by:
getin interfaceIDirectTypeRegistryAccess- Parameters:
name- the name of the type- Returns:
- the registered descriptor (may be null if none was registered)
-
addInstantiator
public void addInstantiator(java.lang.String name, TypeDescriptor<? extends IVilType> type)Description copied from interface:IDirectTypeRegistryAccessAdds an instantiator.- Specified by:
addInstantiatorin interfaceIDirectTypeRegistryAccess- Parameters:
name- the name of the instantiatortype- the type to be added
-
containsInstantiator
public boolean containsInstantiator(java.lang.String name)
Description copied from interface:IDirectTypeRegistryAccessReturns whether the instantiator given bynameis already registered.- Specified by:
containsInstantiatorin interfaceIDirectTypeRegistryAccess- Parameters:
name- the name of the instantiator- Returns:
trueif it was registered,falseelse
-
-