|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.conversion.NameParser
public class NameParser
NameParser parses a jcrName using a
NamespaceResolver and a NameFactory.
| Constructor Summary | |
|---|---|
NameParser()
|
|
| Method Summary | |
|---|---|
static void |
checkFormat(String jcrName)
Check the format of the jcr name. |
static org.apache.jackrabbit.spi.Name[] |
parse(String[] jcrNames,
NamespaceResolver resolver,
org.apache.jackrabbit.spi.NameFactory factory)
Parses an array of jcrName and returns the respective
array of Name. |
static org.apache.jackrabbit.spi.Name |
parse(String jcrName,
NamespaceResolver resolver,
org.apache.jackrabbit.spi.NameFactory factory)
Parses the jcrName (either qualified or expanded) and
returns a new Name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NameParser()
| Method Detail |
|---|
public static org.apache.jackrabbit.spi.Name parse(String jcrName,
NamespaceResolver resolver,
org.apache.jackrabbit.spi.NameFactory factory)
throws IllegalNameException,
NamespaceException
jcrName (either qualified or expanded) and
returns a new Name.
jcrName - the name to be parsed. The jcrName may either be in the
qualified or in the expanded form.resolver - NamespaceResolver use to retrieve the
namespace URI from the prefix contained in the given JCR name.
Name
IllegalNameException - If jcrName is not a valid
JCR-style name.
NamespaceException - If the jcr name contains an unknown prefix.
public static org.apache.jackrabbit.spi.Name[] parse(String[] jcrNames,
NamespaceResolver resolver,
org.apache.jackrabbit.spi.NameFactory factory)
throws NameException,
NamespaceException
jcrName and returns the respective
array of Name.
jcrNames - the array of names to be parsedresolver - NamespaceResolver use to retrieve the
namespace URI from the prefix contained in the given JCR name.factory -
Name
IllegalNameException - If jcrName is not a valid
JCR-style name.
NamespaceException - If the jcr name contains an unknown prefix.
NameException
public static void checkFormat(String jcrName)
throws IllegalNameException
jcrName -
IllegalNameException - If the jcrName contains an invalid format.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||