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.PathgetDMNModelPath(org.kie.workbench.common.stunner.core.diagram.Metadata metadata, String modelNamespace, String modelName)This method finds thePathof 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 ofItemDefinitions for a givennamespace.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 theInputStreamfrom a givenPath.
-
-
-
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
Definitionsindexed byImports.
-
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 ofItemDefinitions for a givennamespace.- Parameters:
workspaceProject- represents the project that will be scanned.modelName- is the value used as the prefix for importedItemDefinitions.namespace- is the namespace of the model that provides the list ofItemDefinitions.- 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
PMMLDocumentMetadataindexed byImports.
-
getDMNModelPath
org.uberfire.backend.vfs.Path getDMNModelPath(org.kie.workbench.common.stunner.core.diagram.Metadata metadata, String modelNamespace, String modelName)This method finds thePathof 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
Pathof the desired DMN model.
-
loadPath
Optional<InputStream> loadPath(org.uberfire.backend.vfs.Path path)
This method loads theInputStreamfrom a givenPath.- Parameters:
path- to be loaded.- Returns:
- the
InputStreamwhen the path is valid, otherwise is returns empty.
-
-