Interface XFormInstance


public interface XFormInstance
Utility for handling an xform instance with accessor methods to the instance data. Contains the information about the current model and its instances. You get an instance with XFormImpl.getFormInstance(req) in a submission request.
  • Method Details

    • getInstanceElement

      Element getInstanceElement()
      Get the instance element - if only one instance exists in the model.
    • getInstanceElement

      Element getInstanceElement(String id)
      Get the instance element by id.
    • getType

      String getType(String ref)
    • getField

      Object getField(String path)
    • getFieldValue

      String getFieldValue(String path)
    • setField

      void setField(String path, Object value)
    • getModel

      Element getModel()
    • getModelId

      String getModelId()
    • getDefaultInstanceId

      String getDefaultInstanceId()
    • isValid

      boolean isValid()
    • getSubmission

      Element getSubmission(String submissionId)
    • processBindings

      void processBindings(boolean checkConstraints) throws Exception
      Throws:
      Exception