public class ModelCleaner extends Object implements Transformer, MessageSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_REASON_PROP_NAME_REGEX |
static String |
PARAM_REASON_PROPERTY_REGEX
Identifier of the parameter that defines the regular expression for
matching the name of the property that should be implemented by nilreason
in a union with two properties.
|
static String |
RULE_TRF_CLEANER_FIX_UNION_DIRECT
If a union has exactly two properties then this rule sets the tagged
value "gmlImplementedByNilReason" to
true for each
of the two properties whose name matches the regular expression provided
via the required parameter "unionDirectReasonPropertyNameRegex" (with
default value "reason"). |
static String |
TV_IMPLEMENTED_BY_NILREASON |
Constructor and Description |
---|
ModelCleaner() |
Modifier and Type | Method and Description |
---|---|
String |
message(int mnr)
Return a message for a message number.
|
void |
process(GenericModel m,
Options o,
TransformerConfiguration trfConfig,
ShapeChangeResult r)
Processes the model.
|
public static final String PARAM_REASON_PROPERTY_REGEX
public static final String RULE_TRF_CLEANER_FIX_UNION_DIRECT
true
for each
of the two properties whose name matches the regular expression provided
via the required parameter "unionDirectReasonPropertyNameRegex" (with
default value "reason"). The internal
fields are updated based upon the updated set of tagged values (the
internal field 'implementedByNilReason' is therefore also updated to
match the tagged value).public static final String TV_IMPLEMENTED_BY_NILREASON
public static final String DEFAULT_REASON_PROP_NAME_REGEX
public void process(GenericModel m, Options o, TransformerConfiguration trfConfig, ShapeChangeResult r) throws ShapeChangeAbortException
Transformer
process
in interface Transformer
m
- The model to process.o
- Options to control the process execution.r
- Logging target.ShapeChangeAbortException
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2018. All rights reserved.