@ApplicationScoped public class DMNMarshallerImportsHelperImpl extends Object implements DMNMarshallerImportsHelper
Constructor and Description |
---|
DMNMarshallerImportsHelperImpl() |
DMNMarshallerImportsHelperImpl(DMNPathsHelper pathsHelper,
org.guvnor.common.services.project.service.WorkspaceProjectService projectService,
org.kie.dmn.api.marshalling.DMNMarshaller marshaller,
DMNIOHelper dmnIOHelper,
PMMLIncludedDocumentFactory pmmlDocumentFactory,
org.uberfire.io.IOService ioService) |
Modifier and Type | Method and Description |
---|---|
org.uberfire.backend.vfs.Path |
getDMNModelPath(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(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.DRGElement> |
getImportedDRGElements(Map<org.kie.dmn.model.api.Import,org.kie.dmn.model.api.Definitions> importDefinitions)
This method extract a list of
DRGElement s from the importDefinitions map. |
List<org.kie.dmn.model.api.ItemDefinition> |
getImportedItemDefinitions(Map<org.kie.dmn.model.api.Import,org.kie.dmn.model.api.Definitions> importDefinitions)
This method extract a list of
ItemDefinition from the importDefinitions map. |
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
ItemDefinition s for a given namespace . |
Map<org.kie.dmn.model.api.Import,String> |
getImportXML(Metadata metadata,
List<org.kie.dmn.model.api.Import> imports)
This method loads
String of all imported XML files from a list of imports. |
Map<org.kie.dmn.model.api.Import,PMMLDocumentMetadata> |
getPMMLDocuments(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 . |
public static final QName NAMESPACE
public DMNMarshallerImportsHelperImpl()
@Inject public DMNMarshallerImportsHelperImpl(DMNPathsHelper pathsHelper, org.guvnor.common.services.project.service.WorkspaceProjectService projectService, org.kie.dmn.api.marshalling.DMNMarshaller marshaller, DMNIOHelper dmnIOHelper, PMMLIncludedDocumentFactory pmmlDocumentFactory, @Named(value="ioStrategy") org.uberfire.io.IOService ioService)
public Map<org.kie.dmn.model.api.Import,org.kie.dmn.model.api.Definitions> getImportDefinitions(Metadata metadata, List<org.kie.dmn.model.api.Import> imports)
DMNMarshallerImportsHelper
getImportDefinitions
in interface DMNMarshallerImportsHelper
metadata
- represents the metadata from the main DMN model.imports
- represent the list of imported files.Definitions
indexed by Import
s.public Map<org.kie.dmn.model.api.Import,PMMLDocumentMetadata> getPMMLDocuments(Metadata metadata, List<org.kie.dmn.model.api.Import> imports)
DMNMarshallerImportsHelper
getPMMLDocuments
in interface DMNMarshallerImportsHelper
metadata
- represents the metadata from the main DMN model.imports
- represent the list of imported files.PMMLDocumentMetadata
indexed by Import
s.public Map<org.kie.dmn.model.api.Import,String> getImportXML(Metadata metadata, List<org.kie.dmn.model.api.Import> imports)
DMNMarshallerImportsHelper
String
of all imported XML files from a list of imports.getImportXML
in interface DMNMarshallerImportsHelper
metadata
- represents the metadata from the main DMN model.imports
- represent the list of imported files.String
indexed by Import
s.public org.uberfire.backend.vfs.Path getDMNModelPath(Metadata metadata, String modelNamespace, String modelName)
DMNMarshallerImportsHelper
Path
of DMN model.getDMNModelPath
in interface DMNMarshallerImportsHelper
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.Path
of the desired DMN model.public List<org.kie.dmn.model.api.DRGElement> getImportedDRGElements(Map<org.kie.dmn.model.api.Import,org.kie.dmn.model.api.Definitions> importDefinitions)
DMNMarshallerImportsHelper
DRGElement
s from the importDefinitions
map.getImportedDRGElements
in interface DMNMarshallerImportsHelper
importDefinitions
- is a map of Definitions
indexed by Import
.DRGElement
s.public List<org.kie.dmn.model.api.ItemDefinition> getImportedItemDefinitions(Map<org.kie.dmn.model.api.Import,org.kie.dmn.model.api.Definitions> importDefinitions)
DMNMarshallerImportsHelper
ItemDefinition
from the importDefinitions
map.getImportedItemDefinitions
in interface DMNMarshallerImportsHelper
importDefinitions
- is a map of Definitions
indexed by Import
.ItemDefinition
s.public List<org.kie.dmn.model.api.ItemDefinition> getImportedItemDefinitionsByNamespace(org.guvnor.common.services.project.model.WorkspaceProject workspaceProject, String modelName, String namespace)
DMNMarshallerImportsHelper
ItemDefinition
s for a given namespace
.getImportedItemDefinitionsByNamespace
in interface DMNMarshallerImportsHelper
workspaceProject
- represents the project that will be scanned.modelName
- is the value used as the prefix for imported ItemDefinition
s.namespace
- is the namespace of the model that provides the list of ItemDefinition
s.ItemDefinition
s.public Optional<InputStream> loadPath(org.uberfire.backend.vfs.Path path)
DMNMarshallerImportsHelper
InputStream
from a given Path
.loadPath
in interface DMNMarshallerImportsHelper
path
- to be loaded.InputStream
when the path is valid, otherwise is returns empty.Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.