|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.writersforge.catalan.transform.external.DatumAdapter
Simple adapter for exporting both raw Datum tree and DatumQuery support for easy use in Velocity templates.
| Constructor Summary | |
DatumAdapter(org.writersforge.bellows.Datum root)
Creates a new instance of DatumAdapter. |
|
| Method Summary | |
java.lang.String |
getPcdata()
Retrieves all the PCDATA content of the wrapped Datum node and its children. |
java.lang.String |
getPcdata(boolean collapseWhiteSpace)
Retrieves all the PCDATA content of the wrapped Datum node and its children with the specified whitespace behavior. |
org.writersforge.bellows.util.PropertyName |
getProperty(java.lang.String property)
Retrieves a Datum property value from the root node as a PropertyName object. |
org.writersforge.bellows.Datum |
getRoot()
Retrieves the root of the wrapped Datum tree. |
java.lang.String |
getSafePcdata()
Retrieves a Java String-safe version of the PCDATA content in the wrapped Datum node. |
org.writersforge.bellows.util.PropertyName |
getType()
Retrieves element type of root node as a PropertyName object. |
DatumAdapter[] |
query(java.lang.String query)
Runs the Bellows query and wraps all results in other DatumAdapter objects. |
java.lang.String[] |
queryPcdata(java.lang.String query)
Runs the Bellows query, then extracts the PCDATA content from each result node. |
org.writersforge.bellows.util.PropertyName[] |
queryProperties(java.lang.String query,
java.lang.String attribute)
Runs the Bellows query then extracts the Datum property described in attribute from each query result. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DatumAdapter(org.writersforge.bellows.Datum root)
root - Datum tree to wrap| Method Detail |
public org.writersforge.bellows.Datum getRoot()
public org.writersforge.bellows.util.PropertyName getType()
public org.writersforge.bellows.util.PropertyName getProperty(java.lang.String property)
property - the key name of the Datum property
public java.lang.String getPcdata()
public java.lang.String getPcdata(boolean collapseWhiteSpace)
collapseWhiteSpace - if true, collapse whitespace
public java.lang.String getSafePcdata()
public DatumAdapter[] query(java.lang.String query)
query - a Bellows query
public java.lang.String[] queryPcdata(java.lang.String query)
query - a Bellows query
public org.writersforge.bellows.util.PropertyName[] queryProperties(java.lang.String query,
java.lang.String attribute)
attribute from each query result. Wraps each attribute
value in a PropertyName object.
query - a Bellows queryattribute - a Datum property key
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||