return type;
}
public Path parsePath(String path) {
PathBuilder builder = new PathBuilderImpl();
// PathImpl pathImpl = new PathImpl();
StringTokenizer tokenizer = new StringTokenizer(path, "/");
while (tokenizer.hasMoreTokens()) {
String token = tokenizer.nextToken();
// Try and convert it to an integer.
try {
int index = Integer.parseInt(token);
builder.addIndexedStep(index);
} catch (NumberFormatException e) {
// Assume it is a property name.
builder.addPropertyStep(token);
}
}
return builder.getPath();
}