public final class TypeUtils
extends java.lang.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,
java.lang.Class<?> type,
boolean recursive) |
static boolean |
deleteType(HyperGraph graph,
HGHandle type) |
static boolean |
deleteType(HyperGraph graph,
HGHandle th,
boolean recursive) |
static java.lang.String |
formatDimensionPath(java.lang.String[] dimPath) |
static HGPersistentHandle |
getHandleFor(HyperGraph graph,
java.lang.Object value) |
static HGPersistentHandle |
getNewHandleFor(HyperGraph hg,
java.lang.Object value) |
static HGProjection |
getProjection(HyperGraph hg,
HGAtomType type,
java.lang.String[] dimPath) |
static java.lang.Object |
getValueFor(HyperGraph graph,
HGPersistentHandle h) |
static boolean |
initThreadLocals()
Internal method - do not call.
|
static boolean |
isValueReleased(HyperGraph graph,
HGPersistentHandle h) |
static java.lang.Object |
makeValue(HyperGraph graph,
HGPersistentHandle h,
HGAtomType type) |
static java.lang.String[] |
parseDimensionPath(java.lang.String formatted)
Split a dimension path in dot notation to a
String[] . |
static HGTypedValue |
project(HyperGraph hg,
HGHandle type,
java.lang.Object value,
java.lang.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,
java.lang.Object value) |
static HGPersistentHandle |
storeValue(HyperGraph graph,
java.lang.Object value,
HGAtomType type) |
static java.util.List<HGHandle> |
subsumesClosure(HyperGraph graph,
HGHandle baseType) |
public static java.lang.String[] parseDimensionPath(java.lang.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 java.lang.String formatDimensionPath(java.lang.String[] dimPath)
public static HGProjection getProjection(HyperGraph hg, HGAtomType type, java.lang.String[] dimPath)
public static HGTypedValue project(HyperGraph hg, HGHandle type, java.lang.Object value, java.lang.String[] dimPath, boolean throwExceptionOnNotFound)
public static boolean initThreadLocals()
public static void releaseThreadLocals(boolean topCall)
public static HGPersistentHandle getNewHandleFor(HyperGraph hg, java.lang.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, java.lang.Object value, HGAtomType type)
public static HGPersistentHandle getHandleFor(HyperGraph graph, java.lang.Object value)
public static java.lang.Object getValueFor(HyperGraph graph, HGPersistentHandle h)
public static void setValueFor(HyperGraph graph, HGPersistentHandle h, java.lang.Object value)
public static java.lang.Object makeValue(HyperGraph graph, HGPersistentHandle h, HGAtomType type)
public static java.util.List<HGHandle> subsumesClosure(HyperGraph graph, HGHandle baseType)
public static boolean deleteType(HyperGraph graph, HGHandle th, boolean recursive)
public static boolean deleteType(HyperGraph graph, java.lang.Class<?> type, boolean recursive)
public static boolean deleteType(HyperGraph graph, HGHandle type)
public static boolean deleteInstances(HyperGraph graph, HGHandle type)