Elements API reference

Overview

This reference describes the utility types that are part of the @yellicode/elements package. Currently, these types are mainly model transforms that can be used to transform Yellicode models when in a code generation template.

The @yellicode/elements package also contains the meta model API that is used to navigate Yellicode models. The meta model API is documented in a separate Model API reference.

Interfaces

Classes

DependencySortTransform Sorts the types within a package (and within each nested package) based on their dependencies, in such a way that dependencies appear before dependents. Dependencies are determined based on generalizations, interface realizations, attributes and operation parameters.
ElementTypeTransform Transforms packageable element elements of one element type to another element type. For example, this transform lets you transform all classes in a model or package to interfaces.
PackageFilterTransform Transforms a Model or Package by returning just the Package that matches a specified expression.
PackagedElementTransform A base class for transforms that need to be applied recursively to all nested packaged elements in a model or package.
CapitalizingTransform A transform that capitalizes its rename targets, that is, makes the first character uppercase.
LowerToUpperCamelCaseTransform A transform that converts its rename targets from lowerCamelCase to UpperCamelCase.
PrefixingTransform A transform that adds a prefix to its rename targets.
RenamingTransform A base class for renaming classes, interfaces, properties, operations parameters, enumerations and enumeration literals.
SuffixingTransform A transform that adds a suffix to its rename targets.
UnCapitalizingTransform A transform that uncapitalizes its rename targets, that is, makes the first character lowercase.
UpperToLowerCamelCaseTransform A transform that converts its rename targets from UpperCamelCase to lowerCamelCase.

Enumerations

DependencyKind A bitwise enumeration used to specify what types of dependency to include during a DependencySortTransform.
RenameTargets Enumerates which element types to be renamed when performing rename transforms.