| org.apache.cocoon.components.source.SourceInspector
All known Subclasses: org.apache.cocoon.components.source.impl.AbstractImageSourceInspector, org.apache.cocoon.components.source.impl.AbstractConfigurableSourceInspector, org.apache.cocoon.components.source.impl.XPathSourceInspector,
SourceInspector | public interface SourceInspector extends Component(Code) | | A source inspector exposes source properties.
author: Stephan Michels author: Unico Hommes version: CVS $Id: SourceInspector.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public SourceProperty[] | getSourceProperties(Source source) Gets all the SourceProperties associated with the given Source.
Parameters: source - the Source for wich to compute the property. | public SourceProperty | getSourceProperty(Source source, String namespace, String name) Gets the SourceProperty associated with the given Source identified
by the requested namespace and name. | public SourceValidity | getValidity(Source source) Get the validity object that describes the validity state
of the properties belonging to the given source. | public boolean | handlesProperty(String namespace, String name) Check if this inspector handles the property of the given type. |
getSourceProperties | public SourceProperty[] getSourceProperties(Source source) throws SourceException(Code) | | Gets all the SourceProperties associated with the given Source.
Parameters: source - the Source for wich to compute the property. the collection of all SourceProperties that could be computedby this SourceInspector. throws: SourceException - |
getSourceProperty | public SourceProperty getSourceProperty(Source source, String namespace, String name) throws SourceException(Code) | | Gets the SourceProperty associated with the given Source identified
by the requested namespace and name.
Parameters: source - the source for which to compute the property Parameters: namespace - the namespace of the property Parameters: name - the name of the property the SourceProperty associated with the Source, null if the inspector does not provide this property. throws: SourceException - |
getValidity | public SourceValidity getValidity(Source source)(Code) | | Get the validity object that describes the validity state
of the properties belonging to the given source.
Parameters: source - the Source for which to calculate the validityits properties, null if the source propertiesare not cacheable. |
handlesProperty | public boolean handlesProperty(String namespace, String name)(Code) | | Check if this inspector handles the property of the given type.
Parameters: namespace - the namespace of the property Parameters: name - the name of the property true if this inspector handles properties of the given typeelse false . |
|
|