public final class JcrNameParser
extends java.lang.Object
parse(String, Listener, int)
the specified listener is informed about the (resulting) JCR name.
In case of failure JcrNameParser.Listener.error(String)
is called indicating
the reason.Modifier and Type | Method and Description |
---|---|
static void |
checkName(java.lang.String jcrName,
boolean allowResidual) |
static boolean |
parse(java.lang.String jcrName,
org.apache.jackrabbit.oak.namepath.JcrNameParser.Listener listener,
int index)
Parse the specified jcr name and inform the specified
listener
about the result or any error that may occur during parsing. |
static boolean |
validate(java.lang.String jcrName) |
public static boolean parse(java.lang.String jcrName, org.apache.jackrabbit.oak.namepath.JcrNameParser.Listener listener, int index)
listener
about the result or any error that may occur during parsing.jcrName
- The jcr name to be parsed.listener
- The listener to be informed about success or failure.index
- index, or 0
when not specifiedpublic static boolean validate(java.lang.String jcrName)
public static void checkName(java.lang.String jcrName, boolean allowResidual) throws ConstraintViolationException
ConstraintViolationException
Copyright © 2010 - 2020 Adobe. All Rights Reserved