Ejemplo n.º 1
0
 /**
  * Normalizes the current node relative to the path specified in <code>ref</code> and recursively
  * normalizes child nodes.
  *
  * @param ref The reference path to which relative paths are normalized
  * @return This object, to allow chaining of toString() as in <code>
  *     normalized = new HasNode(name).normalize(ref).toString();</code>
  */
 public HasNode normalize(String ref) {
   if (feature == null) {
     nodeName = PathUtil.normalizePaths(ref, new String[] {nodeName})[0];
   } else {
     trueNode.normalize(ref);
     falseNode.normalize(ref);
   }
   return this;
 }