Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31302/com/sun/xacml/attr
Modified Files:
AttributeDesignator.java AttributeSelector.java
AttributeValue.java
Log Message:
added getChildren to Evaluatable to make it easier to walk the Condition tree
Index: AttributeDesignator.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeDesignator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AttributeDesignator.java 17 Mar 2004 18:03:38 -0000 1.5
--- AttributeDesignator.java 14 May 2004 20:43:07 -0000 1.6
***************
*** 56,59 ****
--- 56,60 ----
import java.util.ArrayList;
+ import java.util.Collections;
import java.util.Iterator;
import java.util.List;
***************
*** 323,326 ****
--- 324,336 ----
/**
+ * Always returns an empty list since designators never have children.
+ *
+ * @return an empty <code>List</code>
+ */
+ public List getChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
* Evaluates the pre-assigned meta-data against the given context,
* trying to find some matching values.
Index: AttributeValue.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeValue.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** AttributeValue.java 17 Mar 2004 18:03:38 -0000 1.5
--- AttributeValue.java 14 May 2004 20:43:07 -0000 1.6
***************
*** 48,51 ****
--- 48,54 ----
import java.net.URI;
+ import java.util.Collections;
+ import java.util.List;
+
/**
***************
*** 100,103 ****
--- 103,115 ----
/**
+ * Always returns an empty list since values never have children.
+ *
+ * @return an empty <code>List</code>
+ */
+ public List getChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
* Returns whether or not this value is actually a bag of values. By
* default this returns <code>false</code>. Typically, only the
Index: AttributeSelector.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeSelector.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** AttributeSelector.java 12 May 2004 21:27:20 -0000 1.8
--- AttributeSelector.java 14 May 2004 20:43:07 -0000 1.9
***************
*** 52,55 ****
--- 52,57 ----
import java.util.ArrayList;
+ import java.util.Collections;
+ import java.util.List;
import org.w3c.dom.NamedNodeMap;
***************
*** 240,243 ****
--- 242,254 ----
/**
+ * Always returns an empty list since selectors never have children.
+ *
+ * @return an empty <code>List</code>
+ */
+ public List getChildren() {
+ return Collections.EMPTY_LIST;
+ }
+
+ /**
* Returns the XPath version this selector is supposed to use. This is
* typically provided by the defaults section of the policy containing
|