|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.view.tools.TransformTool
public class TransformTool
View tool for accessing the presentation system.
| Field Summary | |
|---|---|
protected static Logger |
log
|
| Constructor Summary | |
|---|---|
TransformTool()
|
|
TransformTool(Formatter formatter,
Writer writer,
AppModel model)
|
|
| Method Summary | |
|---|---|
Formatter |
getFormatter()
|
String |
getGapDetectionDummy(String itemId)
Returns a string representation of a dummy item's missing properties |
Object |
getItem(MBaseID itemId)
Return an item bean tailored to this view. |
Object |
getItem(String itemId)
Return an item bean tailored to this view. |
Map |
getKnowledgeMap()
|
void |
setKnowledgeMap(Map knowledgeMap)
|
void |
transformElement(org.jdom.Element element)
Write a translated, Velocity-processed content fragment as UTF-8. |
void |
transformItem(String itemId)
|
void |
transformItem(String itemId,
boolean doVelocity)
|
String |
transformItemToString(String itemId)
Write a translated, Velocity-processed content fragment as UTF-8. |
String |
transformItemToString(String itemId,
boolean doVelocity)
|
void |
transformString(String content)
|
void |
transformString(String content,
Writer writer)
Same as transformItem, but taking as source the given string. |
String |
transformStringToString(String content)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static Logger log
| Constructor Detail |
|---|
public TransformTool()
public TransformTool(Formatter formatter,
Writer writer,
AppModel model)
| Method Detail |
|---|
public Formatter getFormatter()
public Object getItem(String itemId)
public String getGapDetectionDummy(String itemId)
itemId - the virtual content identifier of the itempublic Object getItem(MBaseID itemId)
public String transformItemToString(String itemId)
$user.id
which will be resolved in the current request context.
Velocity processing is not done for Latex, as the Latex output can easily
be non-valid input for Velocity.
public String transformItemToString(String itemId,
boolean doVelocity)
public void transformItem(String itemId)
public void transformItem(String itemId,
boolean doVelocity)
public String transformStringToString(String content)
public void transformString(String content)
public void transformString(String content,
Writer writer)
org.activemath.webapp.content.preproc.Preprocessor. Otherwise it would
be enough (plus exception handling) to do
return formatter.xslTransform(content).
content - XML fragment as UTF-8 text.writer - for output of transformed text (UTF-8)public void transformElement(org.jdom.Element element)
element - JDOM Element.public Map getKnowledgeMap()
public void setKnowledgeMap(Map knowledgeMap)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||