public abstract class LineReplacementRule extends java.lang.Object implements ILowLevelConvertionRule
TaurusModelConverter to make
complex conversions in the AWM model.
Copyright Micro Focus GmbH.
| Constructor and Description |
|---|
LineReplacementRule() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convertLine(java.lang.String pLine)
Attempts to convert the given line from an AWM XML model.
|
java.lang.String |
getNewValue()
Gets the new value of this rule.
|
java.lang.String |
getOutdatedValue()
Gets the outdated value of this rule (the value to be replaced).
|
abstract java.lang.String |
replaceLine(java.lang.String pLine) |
static java.lang.String |
replaceXMLAttribute(java.lang.String pLine,
java.lang.String pAttributeLabel,
java.lang.String pNewValue,
boolean pRemoveAttributeValue) |
public java.lang.String convertLine(java.lang.String pLine)
ILowLevelConvertionRuleconvertLine in interface ILowLevelConvertionRulepLine - the line for potential conversionpublic abstract java.lang.String replaceLine(java.lang.String pLine)
pLine - the line that should be replacedpublic java.lang.String getNewValue()
ILowLevelConvertionRulegetNewValue in interface ILowLevelConvertionRulepublic java.lang.String getOutdatedValue()
ILowLevelConvertionRulegetOutdatedValue in interface ILowLevelConvertionRulepublic static java.lang.String replaceXMLAttribute(java.lang.String pLine,
java.lang.String pAttributeLabel,
java.lang.String pNewValue,
boolean pRemoveAttributeValue)
pLine - the line that should be editedpAttributeLabel - the xml attribute label, that should be editedpNewValue - the new value, that should replace the old valuepRemoveAttributeValue - whether the value of the attribute should be replaced aswell
or notStringCopyright © 2015 Micro Focus GmbH. All rights reserved.