|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.source.impl.XPathSourceInspector
public class XPathSourceInspector
This source inspector inspects XML files with a xpath expression.
| Field Summary | |
|---|---|
static String |
DEFAULT_PROPERTY_NAME
The default property name exposed by this SourceInspector. |
static String |
DEFAULT_PROPERTY_NS
The default namespace uri of the property exposed by this SourceInspector. |
| Fields inherited from interface org.apache.cocoon.components.source.SourceInspector |
|---|
ROLE |
| Constructor Summary | |
|---|---|
XPathSourceInspector()
|
|
| Method Summary | |
|---|---|
SourceProperty[] |
getSourceProperties(Source source)
Gets all the SourceProperties associated with the given Source. |
SourceProperty |
getSourceProperty(Source source,
String namespace,
String name)
Gets the SourceProperty associated with the given Source identified by the requested namespace and name. |
SourceValidity |
getValidity(Source source)
Returns NOPValidity |
boolean |
handlesProperty(String namespace,
String name)
Check if this inspector handles the property of the given type. |
void |
parameterize(Parameters params)
|
void |
service(ServiceManager manager)
|
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PROPERTY_NS
The value is http://apache.org/cocoon/inspector/xpath/1.0.
public static final String DEFAULT_PROPERTY_NAME
The value is result .
| Constructor Detail |
|---|
public XPathSourceInspector()
| Method Detail |
|---|
public void service(ServiceManager manager)
service in interface Serviceable
public void parameterize(Parameters params)
throws ParameterException
parameterize in interface ParameterizableParameterException
public SourceProperty getSourceProperty(Source source,
String namespace,
String name)
throws SourceException
SourceInspector
getSourceProperty in interface SourceInspectorsource - the source for which to compute the propertynamespace - the namespace of the propertyname - the name of the property
null
if the inspector does not provide this property.
SourceException
public SourceProperty[] getSourceProperties(Source source)
throws SourceException
SourceInspector
getSourceProperties in interface SourceInspectorsource - the Source for wich to compute the property.
SourceException
public boolean handlesProperty(String namespace,
String name)
SourceInspector
handlesProperty in interface SourceInspectornamespace - the namespace of the propertyname - the name of the property
true if this inspector handles properties of the given type
else false.public SourceValidity getValidity(Source source)
getValidity in interface SourceInspectorsource - the Source for which to calculate the validity
its properties, null if the source properties
are not cacheable.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||