public class PredefinedTypesConfig extends 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(Class<? extends HGAtomType> typeImplementation) |
Collection<HGPersistentHandle> |
getHandles() |
List<Class<?>> |
getMappedClasses(HGPersistentHandle typeHandle) |
Class<? extends HGAtomType> |
getTypeImplementation(HGPersistentHandle typeHandle) |
static PredefinedTypesConfig |
loadFromFile(HGHandleFactory handleFactory,
File file) |
static PredefinedTypesConfig |
loadFromResource(HGHandleFactory handleFactory,
String resource) |
public Collection<HGPersistentHandle> getHandles()
public HGPersistentHandle getHandleOf(Class<? extends HGAtomType> typeImplementation)
public Class<? extends HGAtomType> getTypeImplementation(HGPersistentHandle typeHandle)
public List<Class<?>> getMappedClasses(HGPersistentHandle typeHandle)
public static PredefinedTypesConfig loadFromResource(HGHandleFactory handleFactory, String resource)
public static PredefinedTypesConfig loadFromFile(HGHandleFactory handleFactory, File file)
Copyright © 2015. All rights reserved.