/** Expand a single entity. */ public void expandEntity(ActiveEntity n, Output dst) { NodeList value = n.getValueNodes(this); if (value == null) { dst.putNode(n); } else { Copy.copyNodes(value, dst); } }
public Value getValue(ValueContext vc) { final ActiveEntity activeEntity = ((EntityPageState) ((NavigationContext) vc).getActiveState()).getActiveEntity(); return new GenericValue( activeEntity != null ? activeEntity.getEntityName() : "No Active Entity"); }