Class ReferenceManager

java.lang.Object
org.javarosa.core.reference.ReferenceManager

public class ReferenceManager
extends Object

The reference manager is a singleton class which is responsible for deriving reference URI's into references at runtime.

Raw reference factories (which are capable of actually creating fully qualified reference objects) are added with the addFactory() method. The most common method of doing so is to implement the PrefixedRootFactory as either a full class, or an anonymous inner class, providing the roots available in the current environment and the code for constructing a reference from them.

RootTranslators (which rely on other factories) are used to describe that a particular reference style (generally a high level reference like "jr://media/" or "jr://images/") should be translated to another available reference in this environment like "jr://file/". Root Translators do not directly derive references, but rather translate them to what the reference should look like in the current circumstances.

Author:
ctsims