|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.writersforge.catalan.transform.rule.QueryRule
|
+--org.writersforge.catalan.transform.rule.RenameRule
A query-based Rule for changing the Datum type (i.e., the XML element name) or the name of a certain Datum property (i.e., the XML attribute).
| Method Summary | |
java.lang.String |
getNewName()
Getter for property newName. |
static RenameRule |
newRenameDatumRule(java.lang.String query,
java.lang.String newName)
Creates a new instance of RenameRule for changing type names in Datum objects. |
static RenameRule |
newRenamePropertyRule(java.lang.String query,
java.lang.String propertyName,
java.lang.String newName)
Creates a new instance of RenameRule for changing the name of Datum properties. |
protected org.writersforge.bellows.Datum |
processDatum(org.writersforge.bellows.Datum content,
org.writersforge.bellows.Datum target)
Applies changes to Datum objects in the supplied content. |
protected org.writersforge.bellows.Datum |
processProperty(org.writersforge.bellows.Datum content,
org.writersforge.bellows.Datum target)
Applies changes to Datum properties in the supplied content. |
| Methods inherited from class org.writersforge.catalan.transform.rule.QueryRule |
getPropertyName, getQuery, isPropertyRule, postProcessTargets, process |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static RenameRule newRenameDatumRule(java.lang.String query,
java.lang.String newName)
query - the Bellows query to select target contentnewName - the new type name of the Datum(s)
public static RenameRule newRenamePropertyRule(java.lang.String query,
java.lang.String propertyName,
java.lang.String newName)
query - the Bellows query to select target contentpropertyName - the name of the target Datum propertynewName - the new name for the Datum properties
public java.lang.String getNewName()
protected org.writersforge.bellows.Datum processDatum(org.writersforge.bellows.Datum content,
org.writersforge.bellows.Datum target)
processDatum in class QueryRulecontent - the root of the processing treetarget - a Datum object to apply the Rule to
protected org.writersforge.bellows.Datum processProperty(org.writersforge.bellows.Datum content,
org.writersforge.bellows.Datum target)
processProperty in class QueryRulecontent - the root of the processing treetarget - a Datum object to apply the Rule to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||