Class Dmn


  • public class Dmn
    extends java.lang.Object
    • Field Detail

      • INSTANCE

        public static Dmn INSTANCE
        the singleton instance of Dmn. If you want to customize the behavior of Dmn, replace this instance with an instance of a custom subclass of Dmn.
    • Constructor Detail

      • Dmn

        protected Dmn()
        Register known types of the Dmn model
    • Method Detail

      • convertToString

        public static java.lang.String convertToString​(DmnModelInstance modelInstance)
        Allows the conversion of a DmnModelInstance to an String. It will be validated before conversion.
        Parameters:
        modelInstance - the model instance to convert
        Returns:
        the XML string representation of the model instance
      • doReadModelFromFile

        protected DmnModelInstance doReadModelFromFile​(java.io.File file)
      • doReadModelFromInputStream

        protected DmnModelInstance doReadModelFromInputStream​(java.io.InputStream is)
      • doWriteModelToFile

        protected void doWriteModelToFile​(java.io.File file,
                                          DmnModelInstance modelInstance)
      • doWriteModelToOutputStream

        protected void doWriteModelToOutputStream​(java.io.OutputStream os,
                                                  DmnModelInstance modelInstance)
      • doConvertToString

        protected java.lang.String doConvertToString​(DmnModelInstance modelInstance)
      • doValidateModel

        protected void doValidateModel​(DmnModelInstance modelInstance)
      • doRegisterTypes

        protected void doRegisterTypes​(ModelBuilder modelBuilder)
      • getDmnModel

        public Model getDmnModel()
        Returns:
        the Model instance to use
      • getDmnModelBuilder

        public ModelBuilder getDmnModelBuilder()
      • setDmnModel

        public void setDmnModel​(Model dmnModel)
        Parameters:
        dmnModel - the cmmnModel to set