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.
        modelInstance - the model instance to convert
        the XML string representation of the model instance
      • doReadModelFromFile

        protected DmnModelInstance doReadModelFromFile​( file)
      • doReadModelFromInputStream

        protected DmnModelInstance doReadModelFromInputStream​( is)
      • doWriteModelToFile

        protected void doWriteModelToFile​( file,
                                          DmnModelInstance modelInstance)
      • doWriteModelToOutputStream

        protected void doWriteModelToOutputStream​( 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()
        the Model instance to use
      • getDmnModelBuilder

        public ModelBuilder getDmnModelBuilder()
      • setDmnModel

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