SuffixingTransform class

A transform that adds a suffix to its rename targets.

Inheritance Hierarchy

SuffixingTransform RenamingTransform PackagedElementTransform

Operations

NameReturnsDescription
constructor(targets, suffix)

SuffixingTransform.constructor

X

Constructor. Creates a new SuffixingTransform with the specified targets.

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

SuffixingTransform.rename

X

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

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

SuffixingTransform.transformElement

X

Parameters
NameTypeDescription
elementPackageableElement 
Return value
void
void  Inherited from RenamingTransform.