public class DescriptorTransformer extends Object implements MessageSource, Transformer
Modifier and Type | Field and Description |
---|---|
static String |
RULE_UPDATE_DESCRIPTORS
Updates descriptors of specific model elements.
|
Constructor and Description |
---|
DescriptorTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
message(int mnr)
Return a message for a message number.
|
void |
process(GenericModel genModel,
Options options,
TransformerConfiguration trfConfig,
ShapeChangeResult result)
Processes the model.
|
public static final String RULE_UPDATE_DESCRIPTORS
Each 'DescriptorValue' element contains the name of a specific descriptor. The element also contains attributes to select the model elements for which the descriptor shall be updated. If the element has a 'value', the descriptor of selected model elements is set to it (replacing any previously stored values. If no 'value' is present, then the descriptor will be removed on selected model elements.
public void process(GenericModel genModel, Options options, TransformerConfiguration trfConfig, ShapeChangeResult result) throws ShapeChangeAbortException
Transformer
process
in interface Transformer
genModel
- The model to process.options
- Options to control the process execution.result
- Logging target.ShapeChangeAbortException
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.