5.9.4. Freemarker context object: context

Method Summary

Table 5.68 All Methods: Instance Methods and Abstract Methods

Modifier and Type

Method and Description

boolean

existsPatternProperty(String key)

boolean

existsProjectProperty(String key)

IXMIAttribute

findAttribute(String attributeName)

Find the XMIAttribute with the name attributeName by looking at the currently generated class.

IXMIClass

findClass(String className)

Find the XMIClass with the name className by looking at the currently generated package.

IXMIInterface

findInterface(String interfaceName)

Find the XMIInterface with the name interfaceName by looking at the currently generated package.

IXMIOperation

findOperation(String operationName)

Find the XMIOperation with the name operationName by looking at the currently generated class.

IXMIPackage

findPackage(String packagePath, String packageName)

Find the XMIPackage with the name packageName by looking at the currently generated packages.

org.jdom2.Element

getAttributePattern()

org.jdom2.Element

getClassPattern()

org.jdom2.Element

getCurrentModelAttribute()

org.jdom2.Element

getCurrentModelObject()

org.jdom2.Element

getCurrentModelOperation()

org.jdom2.Element

getCurrentModelPackage()

org.jdom2.Element

getCurrentModelReference()

IExpressions

getExpressions()

org.jdom2.Element

getFilePattern()

String

getForEachPropertyValue()

Value of forEachPropertyValue attribute in pattern element

IXMIAttribute

getGeneratedAttribute()

Gets the XMIClass which is generated in this step.

IXMIClass

getGeneratedClass()

Gets the IXMIClass which is created in this step.

IXMIInterface

getGeneratedInterface()

Gets the IXMIInterface which is created in this step.

IXMIOperation

getGeneratedOperation()

Gets the XMIOperation which is generated in this step.

IXMIPackage

getGeneratedPackage()

Gets the XMIPackage which is generated in this step.

String

getGeneratedValue(String key)

Get the value of an atribute of a generated element.

String

getGenpack()

String

getGenpackpath()

org.jdom2.Element

getInterfacePattern()

org.jdom2.Document

getModel()

org.jdom2.Element

getModelPackage(String modelPackageName)

Gets the modelPackageElement with specified name from model

String

getModelPropertyValue(String key)

Get the value of a model propety with name is key or return null if property not found

org.jdom2.Element

getOperationPattern()

org.jdom2.Element

getPackagePattern()

String

getPatternPropertyValue(String key)

Get the value of a pattern propety with name is key.

String

getPatternPropertyValue(String key, String defaultValue)

org.jdom2.Element

getPreviousModelObject()

org.jdom2.Element

getPreviousModelPackage()

String

getProjectPropertyValue(String key)

String

getProjectPropertyValue(String key, String defaultValue)

Get the value of a project property with name is key.

String

getVar0()

Value of var attribute in pattern element

String

getVar1()

Value of var1 attribute in pattern element

String

getVar2()

Value of var2 attribute in pattern element

String

getVar3()

Value of var3 attribute in pattern element

String

getVar4()

Value of var4 attribute in pattern element

String

getVar5()

Value of var5 attribute in pattern element

org.jdom2.Element

getXmlDocumentPattern()

org.jdom2.Element

getXmlElementPattern()

boolean

isForeachAttribute()

boolean

isForeachObject()

boolean

isForeachOperation()

boolean

isForeachPackage()

boolean

isForeachReference()

boolean

put(String key, Object value)

Adds value to Velocity and FreeMarker context by using key

void

setCurrentModelAttribute(org.jdom2.Element currentModelAttribute)

void

setCurrentModelObject(org.jdom2.Element currentModelObject)

void

setCurrentModelOperation(org.jdom2.Element currentModelOperation)

void

setCurrentModelPackage(org.jdom2.Element currentModelPackage)

void

setCurrentModelReference(org.jdom2.Element currentModelReference)

void

setGenpack(String genpack)