PackageFilterTransform class

Transforms a Model or Package by returning just the Package that matches a specified expression.

Interface Realizations

Operations

NameReturnsDescription
constructor(expression)

PackageFilterTransform.constructor

X

Constructor. Creates a new PackageFilterTransform that only includes the package with the specified name.

Parameters
NameTypeDescription
expressionstring The name of the package. If the name ends with a forward-slash ('/'), nested packages will be included. The expression is case-insensitive.
Return value
Type: PackageFilterTransform 
PackageFilterTransform Constructor. Creates a new PackageFilterTransform that only includes the package with the specified name. 
transform(source)

PackageFilterTransform.transform

X

Transforms the source Model or Package and returns the first Package that matches the expression. The result will be empty if the package could not be found.

Parameters
NameTypeDescription
sourcevoid The Model or Package to transform.
Return value
Type: Package 
Package Transforms the source Model or Package and returns the first Package that matches the expression. The result will be empty if the package could not be found.