[Sunxacml-commit] sunxacml/com/sun/xacml Obligation.java,1.5,1.6
Brought to you by:
farrukh_najmi,
sethp
|
From: Seth P. <se...@us...> - 2004-03-23 23:10:19
|
Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28919/com/sun/xacml Modified Files: Obligation.java Log Message: Changed assignments from Set to List Index: Obligation.java =================================================================== RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/Obligation.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Obligation.java 17 Mar 2004 18:03:37 -0000 1.5 --- Obligation.java 23 Mar 2004 22:59:48 -0000 1.6 *************** *** 49,55 **** import java.net.URISyntaxException; ! import java.util.HashSet; import java.util.Iterator; ! import java.util.Set; import org.w3c.dom.NamedNodeMap; --- 49,55 ---- import java.net.URISyntaxException; ! import java.util.ArrayList; import java.util.Iterator; ! import java.util.List; import org.w3c.dom.NamedNodeMap; *************** *** 75,90 **** // the attribute assignments ! private Set assignments; /** * Constructor that takes all the data associated with an obligation. ! * The attribute assignment set contains <code>Attribute</code> objects, * but only the fields used by the AttributeAssignmentType are used. * * @param id the obligation's id * @param fulfillOn the effect denoting when to fulfill this obligation ! * @param assignments a set of <code>Attribute</code> objects */ ! public Obligation(URI id, int fulfillOn, Set assignments) { this.id = id; this.fulfillOn = fulfillOn; --- 75,90 ---- // the attribute assignments ! private List assignments; /** * Constructor that takes all the data associated with an obligation. ! * The attribute assignment list contains <code>Attribute</code> objects, * but only the fields used by the AttributeAssignmentType are used. * * @param id the obligation's id * @param fulfillOn the effect denoting when to fulfill this obligation ! * @param assignments a <code>List</code> of <code>Attribute</code>s */ ! public Obligation(URI id, int fulfillOn, List assignments) { this.id = id; this.fulfillOn = fulfillOn; *************** *** 105,109 **** URI id; int fulfillOn = -1; ! Set assignments = new HashSet(); AttributeFactory attrFactory = AttributeFactory.getInstance(); --- 105,109 ---- URI id; int fulfillOn = -1; ! List assignments = new ArrayList(); AttributeFactory attrFactory = AttributeFactory.getInstance(); *************** *** 180,189 **** /** * Returns the attribute assignment data in this obligation. The ! * <code>Set</code> contains objects of type <code>Attribute</code> * with only the correct attribute fields being used. * * @return the assignments */ ! public Set getAssignments() { return assignments; } --- 180,189 ---- /** * Returns the attribute assignment data in this obligation. The ! * <code>List</code> contains objects of type <code>Attribute</code> * with only the correct attribute fields being used. * * @return the assignments */ ! public List getAssignments() { return assignments; } |