Exemplo n.º 1
0
 /** 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);
   }
 }
Exemplo n.º 2
0
 public Value getValue(ValueContext vc) {
   final ActiveEntity activeEntity =
       ((EntityPageState) ((NavigationContext) vc).getActiveState()).getActiveEntity();
   return new GenericValue(
       activeEntity != null ? activeEntity.getEntityName() : "No Active Entity");
 }