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(); }
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(); }
public DocPath setNode(DocNodeBase node) { initialize(); paths.addAll(node.getHierarchy()); return this; }
public boolean containsNodeName(String nodename) { for (DocNodeBase node : paths) { if (node.asPath().equals(nodename)) return true; } return false; }