You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by gi...@apache.org on 2001/11/13 23:06:39 UTC
cvs commit: xml-cocoon2/scratchpad/src/org/apache/cocoon/treeprocessor ProcessingNode.java
giacomo 01/11/13 14:06:39
Modified: src/org/apache/cocoon/components/xpath XPathProcessor.java
scratchpad/src/org/apache/cocoon/treeprocessor
ProcessingNode.java
Log:
no need to use public nor static modifier in interfaces
Revision Changes Path
1.4 +17 -18 xml-cocoon2/src/org/apache/cocoon/components/xpath/XPathProcessor.java
Index: XPathProcessor.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/xpath/XPathProcessor.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- XPathProcessor.java 2001/10/11 07:28:20 1.3
+++ XPathProcessor.java 2001/11/13 22:06:39 1.4
@@ -14,25 +14,24 @@
* This is the interface of the XPath processor in Cocoon.
*
* @author <a href="mailto:dims@yahoo.com">Davanum Srinivas</a>
- * @version CVS $Revision: 1.3 $ $Date: 2001/10/11 07:28:20 $ $Author: cziegeler $
+ * @version CVS $Revision: 1.4 $ $Date: 2001/11/13 22:06:39 $ $Author: giacomo $
*/
-public interface XPathProcessor
-{
- /**
- * The role implemented by an <code>XSLTProcessor</code>.
- */
- String ROLE = "org.apache.cocoon.components.xpath.XPathProcessor";
+public interface XPathProcessor {
+ /**
+ * The role implemented by an <code>XSLTProcessor</code>.
+ */
+ String ROLE = "org.apache.cocoon.components.xpath.XPathProcessor";
- /**
- * Use an XPath string to select a single node. XPath namespace
- * prefixes are resolved from the context node, which may not
- * be what you want (see the next method).
- *
- * @param contextNode The node to start searching from.
- * @param str A valid XPath string.
- * @return The first node found that matches the XPath, or null.
- */
- public Node selectSingleNode(Node contextNode, String str);
+ /**
+ * Use an XPath string to select a single node. XPath namespace
+ * prefixes are resolved from the context node, which may not
+ * be what you want (see the next method).
+ *
+ * @param contextNode The node to start searching from.
+ * @param str A valid XPath string.
+ * @return The first node found that matches the XPath, or null.
+ */
+ Node selectSingleNode(Node contextNode, String str);
/**
* Use an XPath string to select a nodelist.
@@ -42,5 +41,5 @@
* @param str A valid XPath string.
* @return A List, should never be null.
*/
- public NodeList selectNodeList(Node contextNode, String str);
+ NodeList selectNodeList(Node contextNode, String str);
}
1.3 +3 -3 xml-cocoon2/scratchpad/src/org/apache/cocoon/treeprocessor/ProcessingNode.java
Index: ProcessingNode.java
===================================================================
RCS file: /home/cvs/xml-cocoon2/scratchpad/src/org/apache/cocoon/treeprocessor/ProcessingNode.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ProcessingNode.java 2001/11/12 18:07:43 1.2
+++ ProcessingNode.java 2001/11/13 22:06:39 1.3
@@ -23,7 +23,7 @@
* on the root node.
*
* @author <a href="mailto:sylvain@apache.org">Sylvain Wallez</a>
- * @version CVS $Revision: 1.2 $ $Date: 2001/11/12 18:07:43 $
+ * @version CVS $Revision: 1.3 $ $Date: 2001/11/13 22:06:39 $
*/
public interface ProcessingNode extends ThreadSafe, Disposable {
@@ -31,7 +31,7 @@
/**
* The key of the <code>SourceResolver</code> in the object model.
*/
- public static String OBJECT_SOURCE_RESOLVER = "source-resolver";
+ String OBJECT_SOURCE_RESOLVER = "source-resolver";
/**
* Process environment.
@@ -52,4 +52,4 @@
* Get the location of this node.
*/
String getLocation();
-}
\ No newline at end of file
+}
----------------------------------------------------------------------
In case of troubles, e-mail: webmaster@xml.apache.org
To unsubscribe, e-mail: cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org