org.modeldriven.fuml
Class Fuml

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

public class Fuml
extends java.lang.Object


Constructor Summary
Fuml(java.io.File file)
          Loads the given model-file and executes the behavior found within the given model-file.
Fuml(java.io.File file, java.lang.String target)
          Loads the given model-file and executes the given target behavior found within the given model-file
Fuml(java.io.File file, java.lang.String uri, java.lang.String target)
          Loads the given model-file and executes the given target behavior found within the given model-file
Fuml(java.lang.String namespaceURI, java.lang.String target)
          Executes the given previously loaded target behavior.
 
Method Summary
protected  void execute(java.io.File file, java.lang.String uri, java.lang.String target)
           
protected  void execute(java.lang.String uri, java.lang.String target)
           
static void load(FileArtifact fileArtifact)
          Reads and loads the given file as a model artifact.
static void load(java.io.File file, java.lang.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(java.io.File file, java.lang.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(java.lang.String[] args)
           
protected static void printUsage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Fuml

public Fuml(java.io.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(java.io.File file,
            java.lang.String uri,
            java.lang.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(java.io.File file,
            java.lang.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(java.lang.String namespaceURI,
            java.lang.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(java.io.File file,
                        java.lang.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(java.io.File file,
                                     java.lang.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

execute

protected void execute(java.lang.String uri,
                       java.lang.String target)

execute

protected void execute(java.io.File file,
                       java.lang.String uri,
                       java.lang.String target)

printUsage

protected static void printUsage()

main

public static void main(java.lang.String[] args)


Copyright © 2015. All Rights Reserved.