/** * Validate the path is syntactically correct, and convert it to an Oak * internal path (including namespace remapping if needed). * * @param path the path * @return the the converted path */ public String getOakPath(String path) { if (path == null) { return null; } if (!JcrPathParser.validate(path)) { throw new IllegalArgumentException("Invalid path: " + path); } String p = namePathMapper.getOakPath(path); if (p == null) { throw new IllegalArgumentException("Invalid path or namespace prefix: " + path); } return p; }
/** * Validate the path is syntactically correct, and convert it to an Oak * internal path (including namespace remapping if needed). * * @param path the path * @return the the converted path */ public String getOakPath(String path) { if (path == null) { return null; } if (!JcrPathParser.validate(path)) { throw new IllegalArgumentException("Invalid path: " + path); } String p = namePathMapper.getOakPath(path); if (p == null) { throw new IllegalArgumentException("Invalid path or namespace prefix: " + path); } return p; }
/** * Validate the path is syntactically correct, and convert it to an Oak * internal path (including namespace remapping if needed). * * @param path the path * @return the the converted path */ public String getOakPath(String path) { if (path == null) { return null; } if (!JcrPathParser.validate(path)) { throw new IllegalArgumentException("Invalid path: " + path); } String p = namePathMapper.getOakPath(path); if (p == null) { throw new IllegalArgumentException("Invalid path or namespace prefix: " + path); } return p; }
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
if (oakValue == null || !JcrPathParser.validate(oakValue)) { throw new ValueFormatException("Invalid path: " + value);
if (oakValue == null || !JcrPathParser.validate(oakValue)) { throw new ValueFormatException("Invalid path: " + value);