|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.spi.commons.logging.AbstractLogger
org.apache.jackrabbit.spi.commons.logging.PathFactoryLogger
public class PathFactoryLogger
Log wrapper for a PathFactory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
AbstractLogger.Callable, AbstractLogger.SafeCallable |
| Field Summary |
|---|
| Fields inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
writer |
| Constructor Summary | |
|---|---|
PathFactoryLogger(PathFactory pathFactory,
LogWriter writer)
Create a new instance for the given pathFactory which uses
writer for persisting log messages. |
|
| Method Summary | |
|---|---|
Path |
create(Name name)
Creates a relative path based on a Name. |
Path |
create(Name name,
int index)
Creates a relative path based on a Name and a normalized index. |
Path |
create(Path.Element element)
Creates a path from the given element. |
Path |
create(Path.Element[] elements)
Create a new Path from the given elements. |
Path |
create(Path parent,
Name name,
boolean normalize)
Creates a new Path out of the given parent path
and the give name. |
Path |
create(Path parent,
Name name,
int index,
boolean normalize)
Creates a new Path out of the given parent |
Path |
create(Path parent,
Path relPath,
boolean normalize)
Return a new Path out of the given parent |
Path |
create(String pathString)
Returns a Path holding the value of the specified
string. |
Path.Element |
createElement(Name name)
Creates a path element from the given name. |
Path.Element |
createElement(Name name,
int index)
Same as PathFactory.createElement(Name) except that an explicit index can be
specified. |
Path.Element |
createElement(String identifier)
Creates a path element from the given identifier. |
Path.Element |
getCurrentElement()
Return the current element. |
Path.Element |
getParentElement()
Return the parent element. |
PathFactory |
getPathFactory()
|
Path.Element |
getRootElement()
Return the root element. |
Path |
getRootPath()
Return the Path of the root node. |
| Methods inherited from class org.apache.jackrabbit.spi.commons.logging.AbstractLogger |
|---|
execute, execute |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PathFactoryLogger(PathFactory pathFactory,
LogWriter writer)
pathFactory which uses
writer for persisting log messages.
pathFactory - writer - | Method Detail |
|---|
public PathFactory getPathFactory()
public Path create(Path parent,
Path relPath,
boolean normalize)
throws RepositoryException
PathFactoryPath out of the given parent path
and the given relative path. If normalize is
true, the returned path will be normalized (or
canonicalized, if the parent path is absolute).
- Specified by:
create in interface PathFactory
- Returns:
-
- Throws:
RepositoryException - If the normalized is
true and the resulting path cannot be normalized.
public Path create(Path parent,
Name name,
boolean normalize)
throws RepositoryException
PathFactoryPath out of the given parent path
and the give name. If normalize is true,
the returned path will be normalized (or canonicalized, if the parent
path is absolute). Use PathFactory.create(Path, Name, int, boolean)
in order to build a Path having an index with his name element.
create in interface PathFactoryparent - the parent pathname - the name of the new path element.normalize - If true the Path is normalized before being returned.
RepositoryException - If the normalized is
true and the resulting path cannot be normalized.
public Path create(Path parent,
Name name,
int index,
boolean normalize)
throws RepositoryException
PathFactoryPath out of the given parent path
and the give name and normalized index. See also
PathFactory.create(Path, Name, boolean).
- Specified by:
create in interface PathFactory
- Parameters:
parent - the parent path.name - the name of the new path element.index - the index of the new path element.normalize - If true the Path is normalized before being returned.
- Returns:
-
- Throws:
RepositoryException - If the normalized is
true and the resulting path cannot be normalized.
public Path create(Name name)
PathFactoryName.
create in interface PathFactoryname - single Name for this relative path.
name.
public Path create(Name name,
int index)
PathFactoryName and a normalized index.
Same as PathFactory.create(Name) but allows to explicitely specify an
index.
create in interface PathFactoryname - single Name for this relative path.index - index of the single name element.
name and normalizedIndex.public Path create(Path.Element element)
PathFactory
create in interface PathFactoryelement - path element
public Path create(Path.Element[] elements)
PathFactoryPath from the given elements.
create in interface PathFactoryPath created from the elements.public Path create(String pathString)
PathFactoryPath holding the value of the specified
string. The string must be in the format returned by the
Path.getString() method.
create in interface PathFactorypathString - a String containing the Path
representation to be parsed.
Path represented by the argumentPath.getString(),
Path.DELIMITERpublic Path.Element createElement(Name name)
PathFactoryname.
The created path element does not contain an explicit index.
If the specified name denotes a special path element (either
PathFactory.getParentElement(), PathFactory.getCurrentElement() or
PathFactory.getRootElement()) then the associated constant is returned.
createElement in interface PathFactoryname - the name of the element
public Path.Element createElement(Name name,
int index)
PathFactoryPathFactory.createElement(Name) except that an explicit index can be
specified.
Note that an IllegalArgumentException will be thrown if the specified
name denotes a special path element (either
PathFactory.getParentElement(), PathFactory.getCurrentElement() or
PathFactory.getRootElement()) since an explicit index is not allowed
in this context.
createElement in interface PathFactoryname - the name of the elementindex - the index if the element.
public Path.Element createElement(String identifier)
throws IllegalArgumentException
PathFactoryidentifier.
createElement in interface PathFactoryidentifier - Node identifier for which the path element should be created.
IllegalArgumentException - If the identifier is null.public Path.Element getCurrentElement()
PathFactory
getCurrentElement in interface PathFactorypublic Path.Element getParentElement()
PathFactory
getParentElement in interface PathFactorypublic Path.Element getRootElement()
PathFactory
getRootElement in interface PathFactorypublic Path getRootPath()
PathFactoryPath of the root node.
getRootPath in interface PathFactoryPath of the root node.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||