public class ExternalDataInstance extends DataInstance
| Modifier and Type | Field and Description |
|---|---|
static TreeElement |
PLACEHOLDER_ROOT |
| 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 by parsing the file at the given location or fills in a placeholder if the file
can't be found or derived.
|
AbstractTreeElement |
getBase() |
AbstractTreeElement |
getRoot() |
void |
initialize(InstanceInitializationFactory initializer,
String instanceId) |
boolean |
isUsingPlaceholder() |
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 static final TreeElement PLACEHOLDER_ROOT
public ExternalDataInstance()
public static ExternalDataInstance build(String instanceSrc, String instanceId) throws IOException, UnfullfilledRequirementsException, org.xmlpull.v1.XmlPullParserException, InvalidStructureException
instanceSrc - the value of the instance’s src attribute, e.g., jr://file/…instanceId - the ID of the new instanceIOException - if ElementParser can’t read the streamUnfullfilledRequirementsException - thrown by TreeElementParser.parse()org.xmlpull.v1.XmlPullParserException - thrown by TreeElementParser.parse()InvalidStructureException - thrown by TreeElementParser.parse()public AbstractTreeElement getBase()
getBase in class DataInstancepublic AbstractTreeElement getRoot()
getRoot in class DataInstancepublic boolean isUsingPlaceholder()
public 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.