Interface DMNMarshallerImportsHelperStandalone

  • All Superinterfaces:
    org.kie.workbench.common.dmn.api.marshalling.DMNMarshallerImportsHelper<org.kie.dmn.model.api.Import,​org.kie.dmn.model.api.Definitions,​org.kie.dmn.model.api.DRGElement,​org.kie.dmn.model.api.ItemDefinition>
    All Known Implementing Classes:
    DMNMarshallerImportsHelperStandaloneImpl

    public interface DMNMarshallerImportsHelperStandalone
    extends org.kie.workbench.common.dmn.api.marshalling.DMNMarshallerImportsHelper<org.kie.dmn.model.api.Import,​org.kie.dmn.model.api.Definitions,​org.kie.dmn.model.api.DRGElement,​org.kie.dmn.model.api.ItemDefinition>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.uberfire.backend.vfs.Path getDMNModelPath​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata, String modelNamespace, String modelName)
      This method finds the Path of DMN model.
      Map<org.kie.dmn.model.api.Import,​org.kie.dmn.model.api.Definitions> getImportDefinitions​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata, List<org.kie.dmn.model.api.Import> imports)
      This method loads all imported DMN definitions from a list of imports.
      List<org.kie.dmn.model.api.ItemDefinition> getImportedItemDefinitionsByNamespace​(org.guvnor.common.services.project.model.WorkspaceProject workspaceProject, String modelName, String namespace)
      This method finds the list of ItemDefinitions for a given namespace.
      Map<org.kie.dmn.model.api.Import,​org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata> getPMMLDocuments​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata, List<org.kie.dmn.model.api.Import> imports)
      This method loads all imported PMML documents from a list of imports.
      Optional<InputStream> loadPath​(org.uberfire.backend.vfs.Path path)
      This method loads the InputStream from a given Path.
      • Methods inherited from interface org.kie.workbench.common.dmn.api.marshalling.DMNMarshallerImportsHelper

        getImportedDRGElements, getImportedItemDefinitions, getImportXML
    • Method Detail

      • getImportDefinitions

        Map<org.kie.dmn.model.api.Import,​org.kie.dmn.model.api.Definitions> getImportDefinitions​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata,
                                                                                                       List<org.kie.dmn.model.api.Import> imports)
        This method loads all imported DMN definitions from a list of imports.
        Parameters:
        metadata - represents the metadata from the main DMN model.
        imports - represent the list of imported files.
        Returns:
        a map Definitions indexed by Imports.
      • getImportedItemDefinitionsByNamespace

        List<org.kie.dmn.model.api.ItemDefinition> getImportedItemDefinitionsByNamespace​(org.guvnor.common.services.project.model.WorkspaceProject workspaceProject,
                                                                                         String modelName,
                                                                                         String namespace)
        This method finds the list of ItemDefinitions for a given namespace.
        Parameters:
        workspaceProject - represents the project that will be scanned.
        modelName - is the value used as the prefix for imported ItemDefinitions.
        namespace - is the namespace of the model that provides the list of ItemDefinitions.
        Returns:
        a list of imported ItemDefinitions.
      • getPMMLDocuments

        Map<org.kie.dmn.model.api.Import,​org.kie.workbench.common.dmn.api.editors.included.PMMLDocumentMetadata> getPMMLDocuments​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata,
                                                                                                                                        List<org.kie.dmn.model.api.Import> imports)
        This method loads all imported PMML documents from a list of imports.
        Parameters:
        metadata - represents the metadata from the main DMN model.
        imports - represent the list of imported files.
        Returns:
        a map PMMLDocumentMetadata indexed by Imports.
      • getDMNModelPath

        org.uberfire.backend.vfs.Path getDMNModelPath​(org.kie.workbench.common.stunner.core.diagram.Metadata metadata,
                                                      String modelNamespace,
                                                      String modelName)
        This method finds the Path of DMN model.
        Parameters:
        metadata - represents the metadata from the a DMN model from the scanned project.
        modelNamespace - represents the namespace of the desired DMN model.
        modelName - represents the mode name of the desired DMN model.
        Returns:
        the Path of the desired DMN model.
      • loadPath

        Optional<InputStream> loadPath​(org.uberfire.backend.vfs.Path path)
        This method loads the InputStream from a given Path.
        Parameters:
        path - to be loaded.
        Returns:
        the InputStream when the path is valid, otherwise is returns empty.