Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25375/com/sun/xacml/cond
Modified Files:
BaseFunctionFactory.java FunctionFactory.java
Log Message:
added a method that returns the supported identifiers
Index: FunctionFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond/FunctionFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** FunctionFactory.java 17 Mar 2004 18:03:38 -0000 1.6
--- FunctionFactory.java 17 May 2004 20:33:45 -0000 1.7
***************
*** 42,45 ****
--- 42,47 ----
import java.net.URI;
+ import java.util.Set;
+
import org.w3c.dom.Node;
***************
*** 279,282 ****
--- 281,291 ----
/**
+ * Returns the function identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public abstract Set getSupportedFunctions();
+
+ /**
* Tries to get an instance of the specified function.
*
Index: BaseFunctionFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/cond/BaseFunctionFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BaseFunctionFactory.java 17 Mar 2004 18:03:38 -0000 1.2
--- BaseFunctionFactory.java 17 May 2004 20:33:45 -0000 1.3
***************
*** 43,46 ****
--- 43,48 ----
import java.util.HashMap;
+ import java.util.HashSet;
+ import java.util.Set;
import org.w3c.dom.Node;
***************
*** 151,154 ****
--- 153,170 ----
/**
+ * Returns the function identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public Set getSupportedFunctions() {
+ Set set = new HashSet(functionMap.keySet());
+
+ if (superset != null)
+ set.addAll(superset.getSupportedFunctions());
+
+ return set;
+ }
+
+ /**
* Tries to get an instance of the specified function.
*
|