public class ExternalDataInstance extends DataInstance
| Constructor and Description |
|---|
ExternalDataInstance()
No-args constructor for deserialization
|
| Modifier and Type | Method and Description |
|---|---|
static ExternalDataInstance |
build(String instanceSrc,
String instanceId)
Builds an ExternalDataInstance
|
AbstractTreeElement |
getBase() |
AbstractTreeElement |
getRoot() |
void |
initialize(InstanceInitializationFactory initializer,
String instanceId) |
void |
readExternal(DataInputStream in,
PrototypeFactory pf) |
void |
writeExternal(DataOutputStream out) |
explodeReference, getFormId, getID, getInstanceId, getName, getTemplate, getTemplatePath, hasTemplatePath, isRuntimeEvaluated, resolveReference, resolveReference, setFormId, setID, setInstanceId, setName, toString, unpackReferencepublic ExternalDataInstance()
public static ExternalDataInstance build(String instanceSrc, String instanceId) throws IOException, UnfullfilledRequirementsException, org.xmlpull.v1.XmlPullParserException, InvalidStructureException, InvalidReferenceException
instanceSrc - the value of the instance’s src attribute, e.g., jr://file/…instanceId - the ID of the new instanceIOException - if FileInputStream can’t find the file, or ElementParser can’t read the streamInvalidReferenceException - if the ReferenceManager in getPath(String srcLocation) can’t derive a referenceUnfullfilledRequirementsException - thrown by TreeElementParser.parse()org.xmlpull.v1.XmlPullParserException - thrown by TreeElementParser.parse()InvalidStructureException - thrown by TreeElementParser.parse()InvalidReferenceExceptionpublic AbstractTreeElement getBase()
getBase in class DataInstancepublic AbstractTreeElement getRoot()
getRoot in class DataInstancepublic void initialize(InstanceInitializationFactory initializer, String instanceId)
initialize in class DataInstancepublic void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException
readExternal in interface ExternalizablereadExternal in class DataInstanceIOExceptionDeserializationExceptionpublic void writeExternal(DataOutputStream out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class DataInstanceIOExceptionCopyright © 2021. All rights reserved.