public class PredefinedTypesConfig
extends java.lang.Object
Utility to read and hold configuration of predefined HyperGraphDB types. A predefined types configuration file is a text file with the following format:
HGAtomType
interface.
Modifier and Type | Method and Description |
---|---|
HGPersistentHandle |
getHandleOf(java.lang.Class<? extends HGAtomType> typeImplementation) |
java.util.Collection<HGPersistentHandle> |
getHandles() |
java.util.List<java.lang.Class<?>> |
getMappedClasses(HGPersistentHandle typeHandle) |
java.lang.Class<? extends HGAtomType> |
getTypeImplementation(HGPersistentHandle typeHandle) |
static PredefinedTypesConfig |
loadFromFile(HGHandleFactory handleFactory,
java.io.File file) |
static PredefinedTypesConfig |
loadFromResource(HGHandleFactory handleFactory,
java.lang.String resource) |
public java.util.Collection<HGPersistentHandle> getHandles()
public HGPersistentHandle getHandleOf(java.lang.Class<? extends HGAtomType> typeImplementation)
public java.lang.Class<? extends HGAtomType> getTypeImplementation(HGPersistentHandle typeHandle)
public java.util.List<java.lang.Class<?>> getMappedClasses(HGPersistentHandle typeHandle)
public static PredefinedTypesConfig loadFromResource(HGHandleFactory handleFactory, java.lang.String resource)
public static PredefinedTypesConfig loadFromFile(HGHandleFactory handleFactory, java.io.File file)