XPathType (String value) { if ("string".equals(value)) { return XPathType.STRING; } else if ("number".equals(value)) { return XPathType.NUMBER; } else if ("boolean".equals(value)) { return XPathType.BOOLEAN; } else if ("nodeset".equals(value)) { return XPathType.NODESET; } return XPathType.UNKNOWN; }