Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31302/com/sun/xacml/cond
Modified Files:
Apply.java Evaluatable.java
Log Message:
added getChildren to Evaluatable to make it easier to walk the Condition tree
Index: Apply.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond/Apply.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Apply.java 17 Mar 2004 18:03:38 -0000 1.7
--- Apply.java 14 May 2004 20:43:07 -0000 1.8
***************
*** 130,134 ****
// if everything checks out, then store the inputs
this.function = function;
! this.evals = Collections.unmodifiableList(evals);
this.bagFunction = bagFunction;
this.isCondition = isCondition;
--- 130,134 ----
// if everything checks out, then store the inputs
this.function = function;
! this.evals = Collections.unmodifiableList(new ArrayList(evals));
this.bagFunction = bagFunction;
this.isCondition = isCondition;
***************
*** 275,279 ****
* Returns the <code>List</code> of children for this <code>Apply</code>.
* The <code>List</code> contains <code>Evaluatable</code>s. The list is
! * unmodifiable.
*
* @return a <code>List</code> of <code>Evaluatable</code>s
--- 275,279 ----
* Returns the <code>List</code> of children for this <code>Apply</code>.
* The <code>List</code> contains <code>Evaluatable</code>s. The list is
! * unmodifiable, and may be empty.
*
* @return a <code>List</code> of <code>Evaluatable</code>s
Index: Evaluatable.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond/Evaluatable.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** Evaluatable.java 17 Mar 2004 18:03:38 -0000 1.3
--- Evaluatable.java 14 May 2004 20:43:07 -0000 1.4
***************
*** 46,49 ****
--- 46,51 ----
import java.net.URI;
+ import java.util.List;
+
/**
***************
*** 86,89 ****
--- 88,100 ----
/**
+ * Returns all children, in order, of this element in the Condition
+ * tree, or en empty set if this element has no children. In XACML 1.x,
+ * only the ApplyType ever has children.
+ *
+ * @return a <code>List</code> of <code>Evaluatable</code>s
+ */
+ public List getChildren();
+
+ /**
* Encodes this <code>Evaluatable</code> into its XML representation and
* writes this encoding to the given <code>OutputStream</code> with no
|