public class UmlStateMachineModelFactory extends AbstractStateMachineModelFactory<java.lang.String,java.lang.String>
StateMachineModelFactory
which builds StateMachineModel
from
uml representation.
resource
or location
is a main uml file used as a source
passed to parser classes. additionalResources
and additionalLocations
are needed if uml model have references or links to additional uml files as an
import. In case of a these files being located in a classpath which is inside of
a jar, files are copied out into filesystem as eclipse uml libs can only parse
physical files. In a case of this a common "path" from all resources are resolved
and copied into filesystem with a structure so that at least relative links in uml
files will work.Constructor and Description |
---|
UmlStateMachineModelFactory(org.springframework.core.io.Resource resource)
Instantiates a new uml state machine model factory.
|
UmlStateMachineModelFactory(org.springframework.core.io.Resource resource,
org.springframework.core.io.Resource[] additionalResources)
Instantiates a new uml state machine model factory.
|
UmlStateMachineModelFactory(java.lang.String location)
Instantiates a new uml state machine model factory.
|
UmlStateMachineModelFactory(java.lang.String location,
java.lang.String[] additionalLocations)
Instantiates a new uml state machine model factory.
|
Modifier and Type | Method and Description |
---|---|
StateMachineModel<java.lang.String,java.lang.String> |
build()
Builds the state machine model.
|
build, getBeanFactory, getResourceLoader, getStateMachineComponentResolver, registerAction, registerGuard, resolveAction, resolveGuard, setBeanFactory, setResourceLoader, setStateMachineComponentResolver
public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource)
resource
- the resourcepublic UmlStateMachineModelFactory(java.lang.String location)
location
- the resource locationpublic UmlStateMachineModelFactory(org.springframework.core.io.Resource resource, org.springframework.core.io.Resource[] additionalResources)
resource
- the resourceadditionalResources
- the additional resourcespublic UmlStateMachineModelFactory(java.lang.String location, java.lang.String[] additionalLocations)
location
- the resource locationadditionalLocations
- the additional locationspublic StateMachineModel<java.lang.String,java.lang.String> build()
StateMachineModelFactory
build
in interface StateMachineModelFactory<java.lang.String,java.lang.String>
build
in class AbstractStateMachineModelFactory<java.lang.String,java.lang.String>