org.modeldriven.fuml
Class Fuml

java.lang.Object
  extended by org.modeldriven.fuml.Fuml

public class Fuml
extends Object


Constructor Summary
Fuml(File file)
          Loads the given model-file and executes the behavior found within the given model-file.
Fuml(File file, String target)
          Loads the given model-file and executes the given target behavior found within the given model-file
Fuml(File file, String uri, String target)
          Loads the given model-file and executes the given target behavior found within the given model-file
Fuml(String namespaceURI, String target)
          Executes the given previously loaded target behavior.
 
Method Summary
static void load(FileArtifact fileArtifact)
          Reads and loads the given file as a model artifact.
static void load(File file, String uri)
          Reads and loads the given file as a model artifact.
static void load(ResourceArtifact artifact)
          Reads and loads the given resource as a model artifact.
static void loadIncrementally(File file, String uri)
          Reads and loads the given file as a model artifact using an incremental loading scheme.
static void loadIncrementally(ResourceArtifact artifact)
          Reads and loads the given resource as a model artifact using an incremental loading scheme.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fuml

public Fuml(File file)
Loads the given model-file and executes the behavior found within the given model-file. If more than one top-level behavior is found within the given model-file, an error is thrown.

Parameters:
file - the model-file for the given model-file

Fuml

public Fuml(File file,
            String uri,
            String target)
Loads the given model-file and executes the given target behavior found within the given model-file

Parameters:
file - the model-file to load
uri - the runtime-environment specific file or document URI for the given model-file. If null the name of the file is used.
target - the name for the given target behavior to execute

Fuml

public Fuml(File file,
            String target)
Loads the given model-file and executes the given target behavior found within the given model-file

Parameters:
file - the model-file to load
target - the name for the given target behavior to execute

Fuml

public Fuml(String namespaceURI,
            String target)
Executes the given previously loaded target behavior.

Parameters:
namespaceURI - the runtime-environment specific namespace URI for the given target behavior to execute.
target - the name for the given target behavior to execute
Method Detail

load

public static void load(File file,
                        String uri)
Reads and loads the given file as a model artifact.

Parameters:
file - the model-file to load
uri - the runtime-environment specific document URI

load

public static void load(FileArtifact fileArtifact)
Reads and loads the given file as a model artifact.

Parameters:
fileArtifact - the FileArtifact to load

loadIncrementally

public static void loadIncrementally(File file,
                                     String uri)
Reads and loads the given file as a model artifact using an incremental loading scheme.

Parameters:
file - the file to load
uri - the runtime-environment specific document URI

load

public static void load(ResourceArtifact artifact)
Reads and loads the given resource as a model artifact.

Parameters:
file - the file to load

loadIncrementally

public static void loadIncrementally(ResourceArtifact artifact)
Reads and loads the given resource as a model artifact using an incremental loading scheme.

Parameters:
file - the file to load

main

public static void main(String[] args)


Copyright © 2012. All Rights Reserved.