+ "transformation rule.";
_showTableError(message, row, column, previousString);
return;
}
PatternObjectAttribute attribute = GTTools
.getPatternObjectAttribute(replacementObject);
if (attribute == null) {
try {
attribute = new PatternObjectAttribute(
replacementObject, "patternObject");
} catch (KernelException e) {
throw new KernelRuntimeException(e, "Unable to "
+ "create patternObject attribute.");
}
}
if (!attribute.getExpression().equals(patternObjectName)) {
_setPatternObject(replacementObject, patternObjectName,
false);
}
}
} else if (column == 2) {
String replacementObjectName = newValue;
if (replacementObjectName.length() > 0) {
NamedObj replacementObject = replacement
.getEntity(replacementObjectName);
if (replacementObject == null) {
replacementObject = replacement
.getRelation(replacementObjectName);
}
if (replacementObject == null) {
String message = "Entity or relation with name \""
+ replacementObjectName
+ "\" cannot be found in the replacement of the "
+ "transformation rule.";
_showTableError(message, row, column, previousString);
return;
}
PatternObjectAttribute attribute = GTTools
.getPatternObjectAttribute(replacementObject);
if (attribute == null) {
String message = "Entity or relation with name \""
+ replacementObject
+ "\" in the replacement part of the "