public final class TypeUtils extends Object
A set of static utility methods operating on types.
Modifier and Type | Class and Description |
---|---|
static interface |
TypeUtils.WrappedRuntimeInstance |
Constructor and Description |
---|
TypeUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
deleteInstances(HyperGraph graph,
HGHandle type) |
static boolean |
deleteType(HyperGraph graph,
Class<?> type,
boolean recursive) |
static boolean |
deleteType(HyperGraph graph,
HGHandle type) |
static boolean |
deleteType(HyperGraph graph,
HGHandle th,
boolean recursive) |
static String |
formatDimensionPath(String[] dimPath) |
static HGPersistentHandle |
getHandleFor(HyperGraph graph,
Object value) |
static HGPersistentHandle |
getNewHandleFor(HyperGraph hg,
Object value) |
static HGProjection |
getProjection(HyperGraph hg,
HGAtomType type,
String[] dimPath) |
static Object |
getValueFor(HyperGraph graph,
HGPersistentHandle h) |
static boolean |
initThreadLocals()
Internal method - do not call.
|
static boolean |
isValueReleased(HyperGraph graph,
HGPersistentHandle h) |
static Object |
makeValue(HyperGraph graph,
HGPersistentHandle h,
HGAtomType type) |
static String[] |
parseDimensionPath(String formatted)
Split a dimension path in dot notation to a
String[] . |
static HGTypedValue |
project(HyperGraph hg,
HGHandle type,
Object value,
String[] dimPath,
boolean throwExceptionOnNotFound) |
static void |
releaseThreadLocals(boolean topCall)
Internal method - do not call.
|
static void |
releaseValue(HyperGraph graph,
HGAtomType type,
HGPersistentHandle h) |
static void |
setValueFor(HyperGraph graph,
HGPersistentHandle h,
Object value) |
static HGPersistentHandle |
storeValue(HyperGraph graph,
Object value,
HGAtomType type) |
static List<HGHandle> |
subsumesClosure(HyperGraph graph,
HGHandle baseType) |
public static String[] parseDimensionPath(String formatted)
Split a dimension path in dot notation to a String[]
.
formatted
- The dimension path in the format "a.b.c...d"String[]
{"a", "b", "c", ..., "d"}public static HGProjection getProjection(HyperGraph hg, HGAtomType type, String[] dimPath)
public static HGTypedValue project(HyperGraph hg, HGHandle type, Object value, String[] dimPath, boolean throwExceptionOnNotFound)
public static boolean initThreadLocals()
public static void releaseThreadLocals(boolean topCall)
public static HGPersistentHandle getNewHandleFor(HyperGraph hg, Object value)
public static boolean isValueReleased(HyperGraph graph, HGPersistentHandle h)
public static void releaseValue(HyperGraph graph, HGAtomType type, HGPersistentHandle h)
public static HGPersistentHandle storeValue(HyperGraph graph, Object value, HGAtomType type)
public static HGPersistentHandle getHandleFor(HyperGraph graph, Object value)
public static Object getValueFor(HyperGraph graph, HGPersistentHandle h)
public static void setValueFor(HyperGraph graph, HGPersistentHandle h, Object value)
public static Object makeValue(HyperGraph graph, HGPersistentHandle h, HGAtomType type)
public static List<HGHandle> subsumesClosure(HyperGraph graph, HGHandle baseType)
public static boolean deleteType(HyperGraph graph, HGHandle th, boolean recursive)
public static boolean deleteType(HyperGraph graph, Class<?> type, boolean recursive)
public static boolean deleteType(HyperGraph graph, HGHandle type)
public static boolean deleteInstances(HyperGraph graph, HGHandle type)
Copyright © 2015. All rights reserved.