public abstract class AbstractQOMNode extends Object
AbstractQOMNode
...Modifier and Type | Field and Description |
---|---|
protected NamePathResolver |
resolver |
Constructor and Description |
---|
AbstractQOMNode(NamePathResolver resolver) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
accept(QOMTreeVisitor visitor,
Object data)
Accepts a
visitor and calls the appropriate visit method
depending on the type of this QOM node. |
protected String |
getJCRName(Name name)
Returns the JCR name string for the given
Name or
null if name is null . |
protected String |
getJCRPath(Path path)
Returns the JCR path String for the given
Path object or
null if path is null . |
protected String |
protect(Object expression) |
protected String |
quote(Name name) |
protected String |
quote(Path path) |
protected final NamePathResolver resolver
public AbstractQOMNode(NamePathResolver resolver)
public abstract Object accept(QOMTreeVisitor visitor, Object data) throws Exception
visitor
and calls the appropriate visit method
depending on the type of this QOM node.visitor
- the visitor.data
- user defined data, which is passed to the visit method.Exception
protected String getJCRName(Name name)
Name
or
null
if name
is null
.name
- the Name
.name.toString()
if an
unknown namespace URI is encountered.protected String getJCRPath(Path path)
Path
object or
null
if path
is null
.path
- A Path
object.path.toString()
if an unknown namespace URI is encountered.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.