|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.name.PathFormat
public class PathFormat
PathFormat formats a Path using a
NamespaceResolver.
| Constructor Summary | |
|---|---|
PathFormat()
Deprecated. |
|
| Method Summary | |
|---|---|
static void |
checkFormat(java.lang.String jcrPath)
Deprecated. Checks if jcrPath is a valid JCR-style absolute or relative
path. |
static java.lang.String |
format(Path path,
NamespaceResolver resolver)
Deprecated. Returns a string representation of the qualified path in the
JCR path format. |
static Path |
parse(Path parent,
java.lang.String jcrPath,
NamespaceResolver resolver)
Deprecated. Parses the give jcrPath and returns a Path. |
static Path |
parse(java.lang.String jcrPath,
NamespaceResolver resolver)
Deprecated. Parses jcrPath into a qualified path using
resolver to convert prefixes into namespace URI's. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathFormat()
| Method Detail |
|---|
public static Path parse(java.lang.String jcrPath,
NamespaceResolver resolver)
throws MalformedPathException
jcrPath into a qualified path using
resolver to convert prefixes into namespace URI's.
jcrPath - the jcr path.resolver - the namespace resolver.
MalformedPathException - if jcrPath is malformed.
public static Path parse(Path parent,
java.lang.String jcrPath,
NamespaceResolver resolver)
throws MalformedPathException
jcrPath and returns a Path. If
parent is not null, it is prepended to the
returned list. If resolver is null, this method
only checks the format of the string and returns null.
parent - the parent pathjcrPath - the JCR pathresolver - the namespace resolver to get prefixes for namespace
URI's.
MalformedPathException - if jcrPath is malformed.
public static void checkFormat(java.lang.String jcrPath)
throws MalformedPathException
jcrPath is a valid JCR-style absolute or relative
path.
jcrPath - the path to be checked
MalformedPathException - If jcrPath is not a valid
JCR-style path.
public static java.lang.String format(Path path,
NamespaceResolver resolver)
throws NoPrefixDeclaredException
path in the
JCR path format.
path - the qualified path to resolve.resolver - the namespace resolver.
NoPrefixDeclaredException - if a namespace can not be resolved
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||