Class JcrNameParser
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.namepath.JcrNameParser
 
 
- 
public final class JcrNameParser extends java.lang.ObjectParses and validates JCR names. Upon successful completion ofparse(String, Listener, int)the specified listener is informed about the (resulting) JCR name. In case of failureJcrNameParser.Listener.error(String)is called indicating the reason. 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcheckName(java.lang.String jcrName, boolean allowResidual)static booleanparse(java.lang.String jcrName, org.apache.jackrabbit.oak.namepath.JcrNameParser.Listener listener, int index)Parse the specified jcr name and inform the specifiedlistenerabout the result or any error that may occur during parsing.static booleanvalidate(java.lang.String jcrName) 
 - 
 
- 
- 
Method Detail
- 
parse
public 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 specifiedlistenerabout the result or any error that may occur during parsing.- Parameters:
 jcrName- The jcr name to be parsed.listener- The listener to be informed about success or failure.index- index, or0when not specified- Returns:
 - whether parsing was successful
 
 
- 
validate
public static boolean validate(java.lang.String jcrName)
 
- 
checkName
public static void checkName(java.lang.String jcrName, boolean allowResidual) throws javax.jcr.nodetype.ConstraintViolationException- Throws:
 javax.jcr.nodetype.ConstraintViolationException
 
 - 
 
 -