Exemple #1
0
  public String getPathAsString() {
    StringBuffer sbPath = new StringBuffer();

    for (DocNodeBase path : paths) {
      if (sbPath.length() > 0) {
        sbPath.append(SEPERATOR);
      }

      sbPath.append(path.asEncodedPath());
    }

    return sbPath.toString();
  }
Exemple #2
0
  public String getVisualPathAsString() {
    StringBuffer sbPath = new StringBuffer();

    for (DocNodeBase path : paths) {
      if (sbPath.length() > 0) {
        sbPath.append(SEPERATOR);
      }

      sbPath.append(path.asVisualPath().trim().replaceAll("/", DocNodeBase.SLASH_REPLACEMENT));
    }

    return sbPath.toString();
  }
Exemple #3
0
 public DocPath setNode(DocNodeBase node) {
   initialize();
   paths.addAll(node.getHierarchy());
   return this;
 }
Exemple #4
0
 public boolean containsNodeName(String nodename) {
   for (DocNodeBase node : paths) {
     if (node.asPath().equals(nodename)) return true;
   }
   return false;
 }