public class FormInstance extends DataInstance<TreeElement> implements Persistable, IMetaData
| Modifier and Type | Field and Description |
|---|---|
String |
formVersion |
static String |
META_ID |
static String |
META_XMLNS |
String |
schema |
static String |
STORAGE_KEY |
String |
uiVersion |
| Constructor and Description |
|---|
FormInstance() |
FormInstance(TreeElement root) |
FormInstance(TreeElement root,
String id)
Creates a new instance using the provided document root.
|
explodeReference, getFormId, getID, getInstanceId, getName, getTemplate, getTemplatePath, hasTemplatePath, isRuntimeEvaluated, resolveReference, resolveReference, setFormId, setID, setInstanceId, setName, toString, unpackReferenceequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetID, setIDpublic static final String STORAGE_KEY
public String schema
public String formVersion
public String uiVersion
public static final String META_XMLNS
public static final String META_ID
public FormInstance()
public FormInstance(TreeElement root)
public FormInstance(TreeElement root, String id)
public TreeElement getBase()
getBase in class DataInstance<TreeElement>public TreeElement getRoot()
getRoot in class DataInstance<TreeElement>public void setRoot(TreeElement topLevel)
public TreeReference copyNode(TreeReference from, TreeReference to) throws InvalidReferenceException
InvalidReferenceExceptionpublic TreeElement copyNode(TreeElement src, TreeReference to) throws InvalidReferenceException
InvalidReferenceExceptionpublic Date getDateSaved()
public TreeReference addNode(TreeReference ambigRef)
public TreeReference addNode(TreeReference ambigRef, IAnswerData data, int dataType)
public String[] getNamespacePrefixes()
public TreeElement processSaved(FormInstance template, FormDef f)
public FormInstance clone()
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizablereadExternal in class DataInstance<TreeElement>IOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class DataInstance<TreeElement>IOExceptionpublic void setDateSaved(Date dateSaved)
public void copyItemsetNode(TreeElement copyNode, TreeReference destRef, FormDef f) throws InvalidReferenceException
InvalidReferenceExceptionpublic void accept(IInstanceVisitor visitor)
public static boolean isHomogeneous(TreeElement a, TreeElement b)
public void initialize(InstanceInitializationFactory initializer, String instanceId)
initialize in class DataInstance<TreeElement>public String[] getMetaDataFields()
getMetaDataFields in interface IMetaDatapublic HashMap<String,Object> getMetaData()
getMetaData in interface IMetaDatapublic Object getMetaData(String fieldName)
getMetaData in interface IMetaDataCopyright © 2021. All rights reserved.