|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectOntModelImpl
org.mindswap.ocl.impl.OCLModelImpl
Title: OCLModelImpl
Description: Implementation of the OCLModel interface
Copyright: Copyright (c) 2005
Company: Mindswap (http://www.mindswap.org)
| Field Summary | |
static java.lang.String |
BOOLEAN
|
static java.lang.String |
BYTE
|
static java.lang.String |
CHAR
|
static java.lang.String |
DOUBLE
|
static java.lang.String |
FLOAT
|
static java.lang.String |
INT
|
static java.lang.String |
LONG
|
static java.lang.String[] |
PRIMITIVES
|
static java.lang.String |
SHORT
|
static java.lang.String |
STRING
|
| Constructor Summary | |
OCLModelImpl()
|
|
| Method Summary | |
OCLConstructor |
createConstructor()
Creates a new OCL constructor |
OCLConstructor |
createDefaultConstructor()
Creates a new OCL default (no parameters) constructor |
OCLMethod |
createMethod(java.lang.String theURI)
Creates a new OCL Method with the given URI, or as a bnode if the URI is null |
OCLMethodChain |
createMethodChain(java.lang.String theURI)
Creates a new OCL MethodChain with the given URI, or as a bnode if the URI is null |
OCLObject |
createObject(java.lang.String theURI)
Creates a new OCL Object with the given URI, or as a bnode if the URI is null |
OCLParameter |
createParameter()
Create a new OCL Parameter |
OCLParameter |
createParameter(java.lang.Class theHasClass,
java.lang.String theValue)
Create a new OCL parameter with the specified type and value |
static java.lang.Object |
createPrimitive(java.lang.String hasClass,
java.lang.String theValue)
Create a primitive of the given type with the specified value |
OCLStaticMethod |
createStaticMethod(java.lang.String theURI)
Creates a new OCL StaticMethod with the given URI, or as a bnode if the URI is null |
OCLCache |
getCache()
Returns the current cache for this model |
static java.lang.Class |
getClassForPrimitive(java.lang.String hasClass)
Given the class name for a primitive, return the java Class object that corresponds to it |
java.lang.Object |
getRegisteredValue(java.lang.String theURL)
Gets a registered object from the model given its url ID. |
boolean |
hasRegisteredValue(java.lang.String theURL)
Checks whether or not an object with the specified URL is registered with the model |
static boolean |
isPrimitiveType(java.lang.String typeString)
Returns whether or not the given type string represents a java primitive |
ResIterator |
listOCLMethodChains()
Lists all OCLMethodChains in the model |
ResIterator |
listOCLMethods()
Lists all OCLMethods in the model |
ResIterator |
listOCLObjects()
Lists all OCLObjects currently in the model |
ResIterator |
listOCLStaticMethods()
Lists all OCLStaticMethods in the model |
void |
register(java.lang.String theURL,
java.lang.Object theObject)
Registers an outside object with the model. |
void |
setCache(OCLCache theCache)
Sets the cache to be used by this model. |
void |
setRegistry(OCLRegistry theRegistry)
Sets the OCL registry for this model |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String INT
public static final java.lang.String FLOAT
public static final java.lang.String CHAR
public static final java.lang.String LONG
public static final java.lang.String BYTE
public static final java.lang.String DOUBLE
public static final java.lang.String SHORT
public static final java.lang.String BOOLEAN
public static final java.lang.String STRING
public static final java.lang.String[] PRIMITIVES
| Constructor Detail |
public OCLModelImpl()
| Method Detail |
public ResIterator listOCLObjects()
OCLModel
listOCLObjects in interface OCLModelpublic ResIterator listOCLMethods()
OCLModel
listOCLMethods in interface OCLModelpublic ResIterator listOCLStaticMethods()
OCLModel
listOCLStaticMethods in interface OCLModelpublic ResIterator listOCLMethodChains()
OCLModel
listOCLMethodChains in interface OCLModel
public void register(java.lang.String theURL,
java.lang.Object theObject)
OCLModel
register in interface OCLModeltheURL - String the url ID of the objecttheObject - Object the object to registerpublic boolean hasRegisteredValue(java.lang.String theURL)
OCLModel
hasRegisteredValue in interface OCLModeltheURL - String the url to check
public java.lang.Object getRegisteredValue(java.lang.String theURL)
OCLModel
getRegisteredValue in interface OCLModeltheURL - String the URL of the object to get
public void setRegistry(OCLRegistry theRegistry)
OCLModel
setRegistry in interface OCLModeltheRegistry - OCLRegistry the new OCL registrypublic static java.lang.Class getClassForPrimitive(java.lang.String hasClass)
hasClass - String the class name
public static java.lang.Object createPrimitive(java.lang.String hasClass,
java.lang.String theValue)
hasClass - String the primitive class to createtheValue - String the value for the new primitive
public static boolean isPrimitiveType(java.lang.String typeString)
typeString - String the type
public void setCache(OCLCache theCache)
OCLModel
setCache in interface OCLModeltheCache - OCLCache the new cache to usepublic OCLCache getCache()
OCLModel
getCache in interface OCLModelpublic OCLObject createObject(java.lang.String theURI)
OCLModel
createObject in interface OCLModeltheURI - String the uri of the new object, or null to create a bnode
public OCLMethod createMethod(java.lang.String theURI)
OCLModel
createMethod in interface OCLModeltheURI - String the uri of the new method, or null to create a bnode
public OCLStaticMethod createStaticMethod(java.lang.String theURI)
OCLModel
createStaticMethod in interface OCLModeltheURI - String the uri of the new method, or null to create a bnode
public OCLMethodChain createMethodChain(java.lang.String theURI)
OCLModel
createMethodChain in interface OCLModeltheURI - String the uri of the new method chain, or null to create a bnode
public OCLConstructor createDefaultConstructor()
OCLModel
createDefaultConstructor in interface OCLModelpublic OCLConstructor createConstructor()
OCLModel
createConstructor in interface OCLModelpublic OCLParameter createParameter()
OCLModel
createParameter in interface OCLModel
public OCLParameter createParameter(java.lang.Class theHasClass,
java.lang.String theValue)
OCLModel
createParameter in interface OCLModeltheHasClass - Class the parameter class typetheValue - String the parameter value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||