Class PrefixedRootFactory

java.lang.Object
org.javarosa.core.reference.PrefixedRootFactory
All Implemented Interfaces:
ReferenceFactory
Direct Known Subclasses:
ResourceReferenceFactory

public abstract class PrefixedRootFactory
extends Object
implements ReferenceFactory
PrefixedRootFactory provides a clean way to implement the vast majority of behavior for a reference factory.

A PrefixedRootFactory defines a set of roots which it can provide references for. Roots can either be a full URI root like "http://", or "file://", or can be local roots like "resource" or "file", in which case the assumed protocol parent will be "jr://".

For example: a PrefixedRootFactory with the roots "media" and "resource" will be used by the ReferenceManager to derive any URI with the roots

  • jr://media/
  • jr://resource/
like
jr://media/checkmark.png
and a PrefixedRootFactory with roots "file" and "file://" will be used by the ReferenceManager to derive any URI with the roots
  • jr://file/
  • file://
like
jr://file/myxform.xhtml
or
file://myxform.xhtml
Author:
ctsims