CapitalizingTransform class

A transform that capitalizes its rename targets, that is, makes the first character uppercase.

Inheritance Hierarchy

CapitalizingTransform RenamingTransform PackagedElementTransform

Operations

NameReturnsDescription
constructor(targets)

CapitalizingTransform.constructor

X

Constructor. Creates a new CapitalizingTransform with the specified targets.

Parameters
NameTypeDescription
targetsRenameTargets [0..1]Optional: indicates which elements to rename. The default is RenameTargets.all.
Return value
Type: CapitalizingTransform 
CapitalizingTransform Constructor. Creates a new CapitalizingTransform with the specified targets.  
rename(name, target)

CapitalizingTransform.rename

X

Parameters
NameTypeDescription
namestring 
targetElement 
Return value
Type: string 
string  
transform(pack)

CapitalizingTransform.transform

X

Transforms the package and returns the transformation result.

Parameters
NameTypeDescription
packTSource The package or model to transform.
Return value
Type: Package 
Package Transforms the package and returns the transformation result. Inherited from PackagedElementTransform.
transformElement(element)

CapitalizingTransform.transformElement

X

Parameters
NameTypeDescription
elementPackageableElement 
Return value
void
void  Inherited from RenamingTransform.