org.mindswap.ocl
Class OCLFactory

java.lang.Object
  extended byorg.mindswap.ocl.OCLFactory

public class OCLFactory
extends java.lang.Object

Title: OCLModelFactory

Description: Create instances of OCL Model's

Copyright: Copyright (c) 2005

Company: Mindswap (http://www.mindswap.org)


Nested Class Summary
static interface OCLFactory.Interface
          Title: Interface
 
Field Summary
static java.lang.String[] IMPL_LIST
           
 
Constructor Summary
OCLFactory()
           
 
Method Summary
static OCLCache createCache(java.io.File theFile)
          Creates a local OCL cache at the specified location
static OCLConstructor createConstructor(OCLModel theModel)
          Creates a new OCLConstructor
static OCLConstructor createDefaultConstructor(OCLModel theModel)
          Creates a new OCLConstructor representing the default (no argument) constructor
static OCLMethod createMethod(OCLModel theModel)
          Creates a new OCLMethod (as a bnode) in the given model
static OCLMethod createMethod(OCLModel theModel, java.lang.String theURI)
          Creates a new OCLMethod in the given model
static OCLMethodChain createMethodChain(OCLModel theModel)
          Creates a new OCLMethodChain resource (as a bnode)
static OCLMethodChain createMethodChain(OCLModel theModel, java.lang.String theURI)
          Creates a new OCLMethodChain resource
static OCLModel createModel()
          Creates an OCLModel
static OCLObject createObject(OCLModel theModel)
          Creates a new OCLObject (as a bnode) in the given model
static OCLObject createObject(OCLModel theModel, java.lang.String theURI)
          Creates a new OCLObject in the given model
static OCLParameter createParameter(OCLModel theModel)
          Creates a new OCLParameter
static OCLStaticMethod createStaticMethod(OCLModel theModel)
          Creates a new OCLStaticMethod resource (as a bnode) in the given model
static OCLStaticMethod createStaticMethod(OCLModel theModel, java.lang.String theURI)
          Creates a new OCLStaticMethod resource in the given model
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IMPL_LIST

public static final java.lang.String[] IMPL_LIST
Constructor Detail

OCLFactory

public OCLFactory()
Method Detail

createModel

public static OCLModel createModel()
Creates an OCLModel

Returns:
OCLModel the new OCL model

createObject

public static OCLObject createObject(OCLModel theModel)
Creates a new OCLObject (as a bnode) in the given model

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLObject the new OCLObject

createObject

public static OCLObject createObject(OCLModel theModel,
                                     java.lang.String theURI)
Creates a new OCLObject in the given model

Parameters:
theModel - OCLModel the model to create the resource in
theURI - String the URI of the resource, or null to create a bnode
Returns:
OCLObject the new OCLObject

createMethod

public static OCLMethod createMethod(OCLModel theModel)
Creates a new OCLMethod (as a bnode) in the given model

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLMethod the new OCLMethod

createMethod

public static OCLMethod createMethod(OCLModel theModel,
                                     java.lang.String theURI)
Creates a new OCLMethod in the given model

Parameters:
theModel - OCLModel the model to create the resource in
theURI - String the URI of the new resource, or null to create a bnode
Returns:
OCLMethod the new OCLMethod

createStaticMethod

public static OCLStaticMethod createStaticMethod(OCLModel theModel)
Creates a new OCLStaticMethod resource (as a bnode) in the given model

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLStaticMethod the new OCLStaticMethod

createStaticMethod

public static OCLStaticMethod createStaticMethod(OCLModel theModel,
                                                 java.lang.String theURI)
Creates a new OCLStaticMethod resource in the given model

Parameters:
theModel - OCLModel the model to create the resource in
theURI - String the URI of the new resource, or null to create a bnode
Returns:
OCLStaticMethod the new OCLStaticMethod

createMethodChain

public static OCLMethodChain createMethodChain(OCLModel theModel)
Creates a new OCLMethodChain resource (as a bnode)

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLMethodChain the new OCLMethodChain

createMethodChain

public static OCLMethodChain createMethodChain(OCLModel theModel,
                                               java.lang.String theURI)
Creates a new OCLMethodChain resource

Parameters:
theModel - OCLModel the model to create the resource in
theURI - String the URI of the new resource, or null to create a bnode
Returns:
OCLMethodChain the new OCLMethodChain

createDefaultConstructor

public static OCLConstructor createDefaultConstructor(OCLModel theModel)
Creates a new OCLConstructor representing the default (no argument) constructor

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLConstructor a new OCLConstructor corresponding to the default contstructor

createConstructor

public static OCLConstructor createConstructor(OCLModel theModel)
Creates a new OCLConstructor

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLConstructor the new OCLConstructor

createParameter

public static OCLParameter createParameter(OCLModel theModel)
Creates a new OCLParameter

Parameters:
theModel - OCLModel the model to create the resource in
Returns:
OCLParameter the new OCLParameter

createCache

public static OCLCache createCache(java.io.File theFile)
Creates a local OCL cache at the specified location

Parameters:
theFile - File location to create cache
Returns:
OCLCache the new local cache