Class ResourceReferenceFactory

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

public class ResourceReferenceFactory
extends PrefixedRootFactory
A ResourceReferenceFactory is a Raw Reference Accessor which provides a factory for references of the form
jr://resource/
.

TODO: Configure this factory to also work for raw resource accessors like "/something".

Author:
ctsims
  • Constructor Details

  • Method Details

    • factory

      protected Reference factory​(String terminal, String URI)
      Description copied from class: PrefixedRootFactory
      Creates a Reference using the most locally available part of a URI.
      Specified by:
      factory in class PrefixedRootFactory
      Parameters:
      terminal - The local part of the URI for this prefixed root (excluding the root itself)
      URI - The full URI
      Returns:
      A reference which describes the URI