Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx
In directory sc8-pr-cvs1:/tmp/cvs-serv14798/com/sun/xacml/ctx
Modified Files:
Attribute.java
Log Message:
Introduced new constructor and deprecated the previous one
Index: Attribute.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/ctx/Attribute.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** Attribute.java 29 Aug 2003 18:52:20 -0000 1.4
--- Attribute.java 30 Sep 2003 19:59:13 -0000 1.5
***************
*** 77,81 ****
--- 77,104 ----
/**
+ * Creates a new <code>Attribute</code> of the type specified in the
+ * given <code>AttributeValue</code>.
+ *
+ * @param id the id of the attribute
+ * @param issuer the attribute's issuer or null if there is none
+ * @param issueInstant the moment when the attribute was issued, or null
+ * if it's unspecified
+ * @param value the actual value associated with the attribute meta-data
+ */
+ public Attribute(URI id, String issuer, DateTimeAttribute issueInstant,
+ AttributeValue value) {
+ this(id, value.getType(), issuer, issueInstant, value);
+ }
+
+ /**
* Creates a new <code>Attribute</code>
+ *
+ * @deprecated As of version 1.1, replaced by
+ * {@link #Attribute(URI,String,DateTimeAttribute,AttributeValue)}.
+ * This constructor has some ambiguity in that it allows a
+ * specified datatype and a value that already has some
+ * associated datatype. The new constructor clarifies this
+ * issue by removing the datatype parameter and using the
+ * datatype specified by the given value.
*
* @param id the id of the attribute
|