|
||||||||||
| 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.CreateRule
A query-based Rule to create new Datum content or a Datum property at the target location(s).
| Method Summary | |
org.writersforge.bellows.Datum |
getDatum()
Getter for property datumName, the name of the new Datum. |
java.lang.Object |
getPropertyValue()
Getter for property propertyValue, the value of the new property. |
static CreateRule |
newCreateDatumRule(java.lang.String query,
org.writersforge.bellows.Datum datum)
Creates a new instance of CreateRule for creating new Datum objects. |
static CreateRule |
newCreatePropertyRule(java.lang.String query,
java.lang.String propertyName,
java.lang.Object propertyValue)
Creates a new instance of CreateRule for creating new 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 CreateRule newCreateDatumRule(java.lang.String query,
org.writersforge.bellows.Datum datum)
query - the Bellows query to select target contentdatum - the source Datum
public static CreateRule newCreatePropertyRule(java.lang.String query,
java.lang.String propertyName,
java.lang.Object propertyValue)
query - the Bellows query to select target contentpropertyName - the name of the new Datum propertypropertyValue - the value of the new Datum property
public org.writersforge.bellows.Datum getDatum()
public java.lang.Object getPropertyValue()
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 | |||||||||