Interface FormDataModelService


  • public interface FormDataModelService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getFDMDataType​(java.lang.String schemaRef, java.lang.String bindRef)
      Returns data type of given FDM bind reference
      java.lang.String getFDMEntityId​(java.lang.String guideContainerPath, java.lang.String entityBindRef)
      Fetches the entity id based on the bind ref
      java.util.Map getFDMEntityRule​(java.lang.String fdmPath, java.lang.String bindRef)
      Fetches the rule of the entity based on the bindRef
      java.lang.String getFormDataModelJson​(java.lang.String schemaPath)
      Fetches the list of entities present in the form data model
      java.lang.String getSampleData​(java.lang.String schemaPath)
      Fetches the sample data for the given schema path
    • Method Detail

      • getFormDataModelJson

        java.lang.String getFormDataModelJson​(java.lang.String schemaPath)
        Fetches the list of entities present in the form data model
        Returns:
        JSON array containing the list of entities
      • getFDMEntityId

        java.lang.String getFDMEntityId​(java.lang.String guideContainerPath,
                                        java.lang.String entityBindRef)
        Fetches the entity id based on the bind ref
        Parameters:
        guideContainerPath - path to the adaptive form
        entityBindRef - bind reference/json path to the entity present in the data
        Returns:
        JSON array containing the list of entities
      • getFDMEntityRule

        java.util.Map getFDMEntityRule​(java.lang.String fdmPath,
                                       java.lang.String bindRef)
        Fetches the rule of the entity based on the bindRef
        Parameters:
        fdmPath - the path of the fdm
        bindRef - bind reference/json path to the entity present in the data
        Returns:
        Map containing rules of the entity
      • getFDMDataType

        java.lang.String getFDMDataType​(java.lang.String schemaRef,
                                        java.lang.String bindRef)
        Returns data type of given FDM bind reference
        Parameters:
        schemaRef -
        bindRef -
        Returns:
      • getSampleData

        @Nonnull
        java.lang.String getSampleData​(@Nonnull
                                       java.lang.String schemaPath)
        Fetches the sample data for the given schema path
        Parameters:
        schemaPath - string representing the schema path
        Returns: