/** * 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; }
return parse(jcrPath, listener);
/** * 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; }
return parse(jcrPath, listener);
/** * 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; }
JcrPathParser.parse(oakPath, listener);
JcrPathParser.parse(oakPath, listener);
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
JcrPathParser.parse(oakPath, listener);
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
JcrPathParser.parse(jcrPath, listener); if (parseErrors.length() != 0) { log.debug("Could not parse path " + jcrPath + ": " + parseErrors.toString());
type != PropertyType.LONG && type != PropertyType.BOOLEAN && JcrPathParser.validate(value.getString());
JcrPathParser.parse(jcrPath, listener); if (parseErrors.length() != 0) { log.debug("Could not parse path " + jcrPath + ": " + parseErrors.toString());
if (oakValue == null || !JcrPathParser.validate(oakValue)) { throw new ValueFormatException("Invalid path: " + value);
JcrPathParser.parse(jcrPath, listener); if (parseErrors.length() != 0) { log.debug("Could not parse path " + jcrPath + ": " + parseErrors.toString());
if (oakValue == null || !JcrPathParser.validate(oakValue)) { throw new ValueFormatException("Invalid path: " + value);