Ejemplo n.º 1
0
 /**
  * Look up a name and return its value.
  *
  * @param name the name to look up
  * @return the list of nodes associated with the name. If the binding is an Element (the typical
  *     case) its children are returned.
  */
 public ActiveNodeList getValueNodes(Context c, String name) {
   ActiveNode binding = getBinding(name);
   if (binding == null) {
     binding = getActiveAttr(name);
   }
   if (binding == null) return null;
   else if (binding instanceof Namespace) {
     return new TreeNodeList(((Namespace) binding).getBindings());
   } else {
     return binding.getValueNodes(c);
   }
 }