Class UmlStateMachineModelFactory

All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ResourceLoaderAware, StateMachineComponentResolver<String,String>, StateMachineModelFactory<String,String>

public class UmlStateMachineModelFactory extends AbstractStateMachineModelFactory<String,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.
Author:
Janne Valkealahti
  • Constructor Details

    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource)
      Instantiates a new uml state machine model factory.
      Parameters:
      resource - the resource
    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(String location)
      Instantiates a new uml state machine model factory.
      Parameters:
      location - the resource location
    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(org.springframework.core.io.Resource resource, org.springframework.core.io.Resource[] additionalResources)
      Instantiates a new uml state machine model factory.
      Parameters:
      resource - the resource
      additionalResources - the additional resources
    • UmlStateMachineModelFactory

      public UmlStateMachineModelFactory(String location, String[] additionalLocations)
      Instantiates a new uml state machine model factory.
      Parameters:
      location - the resource location
      additionalLocations - the additional locations
  • Method Details