public class NdNodeTypeRegistry<R>
extends java.lang.Object
NdNode objects.| Constructor and Description |
|---|
NdNodeTypeRegistry() |
| Modifier and Type | Method and Description |
|---|---|
R |
createNode(Nd nd,
long address,
short nodeType) |
ITypeFactory<? extends R> |
getClassForType(short type)
Returns the class associated with the given type or null if the given type ID is not known
|
<T extends R> |
getTypeFactory(short nodeType) |
short |
getTypeForClass(java.lang.Class<? extends R> toQuery) |
<T extends R> |
register(int typeId,
ITypeFactory<T> toRegister)
Registers a class to be used with this node type registry.
|
void |
reserve(short typeId)
Reserves the given node class name, such that its hash cannot be used by any other node registered with
"register".
|
public <T extends R> void register(int typeId, ITypeFactory<T> toRegister)
public void reserve(short typeId)
public ITypeFactory<? extends R> getClassForType(short type)
public R createNode(Nd nd, long address, short nodeType) throws IndexException
IndexExceptionpublic short getTypeForClass(java.lang.Class<? extends R> toQuery)
public <T extends R> ITypeFactory<T> getTypeFactory(short nodeType)