19 package org.turro.action;
21 import java.io.Writer;
23 import org.turro.annotation.EntityInfo;
24 import org.turro.elephant.context.Application;
25 import org.turro.entities.Entities;
26 import org.turro.html.HtmlContent;
27 import org.turro.marker.ElephantMarker;
28 import org.turro.path.Path;
29 import org.turro.reflection.Instances;
38 return getString(entity, wrapper, label, type, link,
null);
43 marker.
put(label, entity);
44 marker.
put(
"wrapper", wrapper);
45 marker.
put(
"link", link.toString());
46 marker.
put(
"type", type.toString());
51 return marker.
parse(label,
"entityInfo");
55 return getTextString(entity, wrapper, label, type, link,
null);
59 return HtmlContent.text(
getString(entity, wrapper, label, type, link, args));
65 Path entityPath =
new Path(path);
67 if(iEntity.writeEntityInfo(out, entityPath, type, link)) {
static boolean writeEntityInfo(Writer out, String path, EntityInfoType type, LinkType link)
static String getString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link, Map< String, Object > args)
static String getTextString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
static String getTextString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link, Map< String, Object > args)
static String getString(Object entity, Object wrapper, String label, EntityInfoType type, LinkType link)
IConstructor getConstructor()
static Application getApplication()
static IElephantEntity getController(String path)
String parse(String rootTmpl, String tmpl)
Object put(Object key, Object value)