uk.ac.ucl.cs.emofocl.jmigen.extended
Class JMIContext
java.lang.Object
uk.ac.ucl.cs.emofocl.jmigen.extended.JMIContext
public class JMIContext
- extends Object
- Author:
- James
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMIContext
public JMIContext(String namespace,
String interfacePrefix,
String implementationPrefix,
URL metamodelURL,
NameConverter nameConverter)
getInterfacePrefix
public String getInterfacePrefix()
getMetamodelFilename
public String getMetamodelFilename()
getMetamodelURL
public String getMetamodelURL()
getImplementationPrefix
public String getImplementationPrefix()
- Returns:
getInterfacePackage
public String getInterfacePackage(NamedElement element)
getImplementationPackage
public String getImplementationPackage(NamedElement element)
getXMLNamespace
public String getXMLNamespace()
capitalise
public static String capitalise(String name)
decapitalise
public static String decapitalise(String name)
getAllConcreteClasses
public static Collection getAllConcreteClasses(Specification specification)
getAllAttributes
public static Collection getAllAttributes(MOFClass mOFClass)
- Gets all owned properties recursively.
- Parameters:
class1 -
- Returns:
getDelegatedProperties
public Collection getDelegatedProperties(MOFClass mOFClass)
- Returns all attributes that a class delegates to its superclasses.
- Parameters:
class1 -
- Returns:
getAllOperations
public static Collection getAllOperations(MOFClass mOFClass)
getDelegatedOperations
public Collection getDelegatedOperations(MOFClass mOFClass)
- Returns all operations that a class delegates to its superclasses.
- Parameters:
class1 -
- Returns:
getImmediatePackagePath
public List getImmediatePackagePath(MOFClass mOFClass)
- Returns the path to the immediate package of a class.
- Parameters:
superClass -
- Returns:
getOCLEquivalentType
public static String getOCLEquivalentType(OCLEquivalentPrimitiveType type)
getOCLEquivalentBoxType
public static String getOCLEquivalentBoxType(OCLEquivalentPrimitiveType type)
getOCLEquivalentBoxOp
public static String getOCLEquivalentBoxOp(OCLEquivalentPrimitiveType type)
- Returns the operation used for boxing a primitive type.
- Parameters:
type -
- Returns:
getOCLEquivalentUnboxOp
public static String getOCLEquivalentUnboxOp(OCLEquivalentPrimitiveType type)
- Returns the unboxing operation for a primitive type.
- Parameters:
type -
- Returns:
getOCLEquivalentParseOp
public static String getOCLEquivalentParseOp(OCLEquivalentPrimitiveType type)
- Returns the parse operation for deserializing an OCL equivalent type.
- Parameters:
type -
- Returns:
getNameConverter
public NameConverter getNameConverter()
- Returns: