You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/11/08 13:59:42 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/dom Axis.java
morten 01/11/08 04:59:42
Modified: java/src/org/apache/xalan/xsltc/dom Axis.java
Log:
Added an array to the Axis class to give an easy indication to the direction
of an axis.
PR: n/a
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.3 +19 -1 xml-xalan/java/src/org/apache/xalan/xsltc/dom/Axis.java
Index: Axis.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/Axis.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Axis.java 2001/08/27 09:07:21 1.2
+++ Axis.java 2001/11/08 12:59:42 1.3
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Axis.java,v 1.2 2001/08/27 09:07:21 morten Exp $
+ * @(#)$Id: Axis.java,v 1.3 2001/11/08 12:59:42 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -70,6 +70,7 @@
*/
public interface Axis {
+
public static final int ANCESTOR = 0;
public static final int ANCESTORORSELF = 1;
public static final int ATTRIBUTE = 2;
@@ -100,5 +101,22 @@
"preceding",
"preceding-sibling",
"self"
+ };
+
+ public static final boolean[] isReverse = {
+ true, // ancestor
+ true, // ancestor-or-self
+ false, // attribute
+ false, // child
+ false, // descendant
+ false, // descendant-or-self
+ false, // following
+ false, // following-sibling
+ false, // namespace
+ false, // namespace-declarations
+ false, // parent (one node, has no order)
+ true, // preceding
+ true, // preceding-sibling
+ false // self (one node, has no order)
};
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org