public class OMTransformer extends Object implements SourceTransformer
| Constructor and Description |
|---|
OMTransformer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setRootDatabaseName(Database database)
Sets the rootDatabaseName attribute of the database element
to the database's name.
|
static void |
setRootDatabaseNameAttribute(SourceElement databaseElement)
Sets the rootDatabaseName attribute of the database element
to the database's name.
|
SourceElement |
transform(Object modelRoot,
ControllerState controllerState)
Transforms the source tree so it can be used by the om templates.
|
public SourceElement transform(Object modelRoot, ControllerState controllerState) throws SourceTransformerException
transform in interface SourceTransformermodelRoot - the database root element of the source tree, not null.controllerState - the controller state, not null.SourceTransformerException - if the transformation fails.public static void setRootDatabaseNameAttribute(SourceElement databaseElement)
databaseElement - the database element, not null.public static void setRootDatabaseName(Database database)
database - the database element, not null.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.