Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/combine
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25375/com/sun/xacml/combine
Modified Files:
BaseCombiningAlgFactory.java CombiningAlgFactory.java
Log Message:
added a method that returns the supported identifiers
Index: CombiningAlgFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/combine/CombiningAlgFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** CombiningAlgFactory.java 17 Mar 2004 18:03:38 -0000 1.8
--- CombiningAlgFactory.java 17 May 2004 20:33:45 -0000 1.9
***************
*** 41,44 ****
--- 41,46 ----
import java.net.URI;
+ import java.util.Set;
+
/**
***************
*** 127,130 ****
--- 129,139 ----
/**
+ * Returns the algorithm identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public abstract Set getSupportedAlgorithms();
+
+ /**
* Tries to return the correct combinging algorithm based on the
* given algorithm ID.
Index: BaseCombiningAlgFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/combine/BaseCombiningAlgFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BaseCombiningAlgFactory.java 17 Mar 2004 18:03:38 -0000 1.2
--- BaseCombiningAlgFactory.java 17 May 2004 20:33:45 -0000 1.3
***************
*** 41,45 ****
--- 41,47 ----
import java.net.URI;
+ import java.util.Collections;
import java.util.HashMap;
+ import java.util.Set;
***************
*** 86,89 ****
--- 88,100 ----
/**
+ * Returns the algorithm identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public Set getSupportedAlgorithms() {
+ return Collections.unmodifiableSet(algMap.keySet());
+ }
+
+ /**
* Tries to return the correct combinging algorithm based on the
* given algorithm ID.
|