public class RestoreUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
RECORD_ID_TAG |
static IXFormyFactory |
xfFact |
Constructor and Description |
---|
RestoreUtils() |
Modifier and Type | Method and Description |
---|---|
static TreeReference |
absRef(java.lang.String refStr,
FormInstance dm) |
static void |
addData(FormInstance dm,
java.lang.String xpath,
java.lang.Object data) |
static void |
addData(FormInstance dm,
java.lang.String xpath,
java.lang.Object data,
int dataType) |
static void |
applyDataType(FormInstance dm,
java.lang.String path,
TreeReference parent,
java.lang.Class type) |
static void |
applyDataType(FormInstance dm,
java.lang.String path,
TreeReference parent,
int dataType) |
static TreeReference |
childRef(java.lang.String childPath,
TreeReference parentRef) |
static FormInstance |
createDataModel(Restorable r) |
static FormInstance |
createRootDataModel(Restorable r) |
static ByteArrayPayload |
dispatch(FormInstance dm) |
static void |
exportRMS(FormInstance parent,
java.lang.Class type,
java.lang.String grouperName,
IStorageUtility storage,
IRecordFilter filter) |
static FormInstance |
exportRMS(IStorageUtility storage,
java.lang.Class type,
java.lang.String parentTag,
IRecordFilter filter) |
static boolean |
getBoolean(java.lang.Object o) |
static int |
getDataType(java.lang.Class c) |
static int |
getDataType(java.lang.Object o) |
static java.lang.Object |
getValue(java.lang.String xpath,
FormInstance tree) |
static java.lang.Object |
getValue(java.lang.String xpath,
TreeReference context,
FormInstance tree) |
static void |
importRMS(FormInstance dm,
IStorageUtility storage,
java.lang.Class type,
java.lang.String path) |
static void |
mergeDataModel(FormInstance parent,
FormInstance child,
java.lang.String xpathParent) |
static void |
mergeDataModel(FormInstance parent,
FormInstance child,
TreeReference parentRef) |
private static FormInstance |
newDataModel(java.lang.String topTag) |
static FormInstance |
receive(byte[] payload,
java.lang.Class restorableType) |
static TreeReference |
ref(java.lang.String refStr) |
static FormInstance |
subDataModel(TreeElement top) |
static void |
templateChild(FormInstance dm,
java.lang.String prefixPath,
TreeReference parent,
Restorable r) |
static void |
templateData(Restorable r,
FormInstance dm,
TreeReference parent) |
static TreeReference |
topRef(FormInstance dm) |
public static final java.lang.String RECORD_ID_TAG
public static IXFormyFactory xfFact
public static TreeReference ref(java.lang.String refStr)
public static TreeReference absRef(java.lang.String refStr, FormInstance dm)
public static TreeReference topRef(FormInstance dm)
public static TreeReference childRef(java.lang.String childPath, TreeReference parentRef)
private static FormInstance newDataModel(java.lang.String topTag)
public static FormInstance createDataModel(Restorable r)
public static FormInstance createRootDataModel(Restorable r)
public static void addData(FormInstance dm, java.lang.String xpath, java.lang.Object data)
public static void addData(FormInstance dm, java.lang.String xpath, java.lang.Object data, int dataType)
public static int getDataType(java.lang.Object o)
public static int getDataType(java.lang.Class c)
public static java.lang.Object getValue(java.lang.String xpath, FormInstance tree)
public static java.lang.Object getValue(java.lang.String xpath, TreeReference context, FormInstance tree)
public static void applyDataType(FormInstance dm, java.lang.String path, TreeReference parent, java.lang.Class type)
public static void applyDataType(FormInstance dm, java.lang.String path, TreeReference parent, int dataType)
public static void templateChild(FormInstance dm, java.lang.String prefixPath, TreeReference parent, Restorable r)
public static void templateData(Restorable r, FormInstance dm, TreeReference parent)
public static void mergeDataModel(FormInstance parent, FormInstance child, java.lang.String xpathParent)
public static void mergeDataModel(FormInstance parent, FormInstance child, TreeReference parentRef)
public static FormInstance exportRMS(IStorageUtility storage, java.lang.Class type, java.lang.String parentTag, IRecordFilter filter)
public static FormInstance subDataModel(TreeElement top)
public static void exportRMS(FormInstance parent, java.lang.Class type, java.lang.String grouperName, IStorageUtility storage, IRecordFilter filter)
public static void importRMS(FormInstance dm, IStorageUtility storage, java.lang.Class type, java.lang.String path)
public static ByteArrayPayload dispatch(FormInstance dm)
public static FormInstance receive(byte[] payload, java.lang.Class restorableType)
public static boolean getBoolean(java.lang.Object o)