PrefixingTransform class

A transform that adds a prefix to its rename targets.

Inheritance Hierarchy

PrefixingTransform RenamingTransform PackagedElementTransform

Operations

NameReturnsDescription
constructor(targets, prefix)

PrefixingTransform.constructor

X

Constructor. Creates a new PrefixingTransform with the specified targets.

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

PrefixingTransform.rename

X

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

PrefixingTransform.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)

PrefixingTransform.transformElement

X

Parameters
NameTypeDescription
elementPackageableElement 
Return value
void
void  Inherited from RenamingTransform.