Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25375/com/sun/xacml/attr
Modified Files:
AttributeFactory.java BaseAttributeFactory.java
Log Message:
added a method that returns the supported identifiers
Index: BaseAttributeFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/BaseAttributeFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** BaseAttributeFactory.java 17 Mar 2004 18:03:38 -0000 1.2
--- BaseAttributeFactory.java 17 May 2004 20:33:45 -0000 1.3
***************
*** 42,46 ****
--- 42,48 ----
import java.net.URI;
+ import java.util.Collections;
import java.util.HashMap;
+ import java.util.Set;
import org.w3c.dom.Node;
***************
*** 87,90 ****
--- 89,101 ----
/**
+ * Returns the datatype identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public Set getSupportedDatatypes() {
+ return Collections.unmodifiableSet(attributeMap.keySet());
+ }
+
+ /**
* Creates a value based on the given DOM root node. The type of the
* attribute is assumed to be present in the node as an XACML attribute
Index: AttributeFactory.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/AttributeFactory.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** AttributeFactory.java 17 Mar 2004 18:03:38 -0000 1.6
--- AttributeFactory.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.NamedNodeMap;
import org.w3c.dom.Node;
***************
*** 138,141 ****
--- 140,150 ----
/**
+ * Returns the datatype identifiers supported by this factory.
+ *
+ * @return a <code>Set</code> of <code>String</code>s
+ */
+ public abstract Set getSupportedDatatypes();
+
+ /**
* Creates a value based on the given DOM root node. The type of the
* attribute is assumed to be present in the node as an XAML attribute
|