/// <summary>
		/// Creates a TargetItemCollection, with the items contained in a ReadWriteTargetItemCollection
		/// </summary>
		/// <param name="items"></param>
		public AttributeAssignmentCollection(AttributeAssignmentReadWriteCollection items)
		{
			if (items == null) throw new ArgumentNullException("items");
			foreach (AttributeAssignmentElementReadWrite item in items)
			{
				base.Add(new AttributeAssignmentElement(item.AttributeId, item.DataTypeValue, item.Value, item.SchemaVersion));
			}
		}
 /// <summary>
 /// Creates a TargetItemCollection, with the items contained in a ReadWriteTargetItemCollection
 /// </summary>
 /// <param name="items"></param>
 public AttributeAssignmentCollection(AttributeAssignmentReadWriteCollection items)
 {
     if (items == null)
     {
         throw new ArgumentNullException("items");
     }
     foreach (AttributeAssignmentElementReadWrite item in items)
     {
         base.Add(new AttributeAssignmentElement(item.AttributeId, item.DataTypeValue, item.Value, item.SchemaVersion));
     }
 }
Example #3
0
		/// <summary>
		/// Creates an ObligationElement with the parameters given
		/// </summary>
		/// <param name="obligationId"></param>
		/// <param name="fulfillOn"></param>
		/// <param name="attributeAssignment"></param>
		public ObligationElement( string obligationId, Effect fulfillOn, AttributeAssignmentReadWriteCollection attributeAssignment ) : 
			base( obligationId, fulfillOn, attributeAssignment)
		{
		}
 /// <summary>
 /// Creates an ReadWriteObligationElement with the parameters given
 /// </summary>
 /// <param name="obligationId"></param>
 /// <param name="fulfillOn"></param>
 /// <param name="attributeAssignment"></param>
 public ObligationElementReadWrite(string obligationId, Effect fulfillOn, AttributeAssignmentReadWriteCollection attributeAssignment)
 {
     _obligationId        = obligationId;
     _fulfillOn           = fulfillOn;
     _attributeAssignment = attributeAssignment;
 }
Example #5
0
 /// <summary>
 /// Creates an ObligationElement with the parameters given
 /// </summary>
 /// <param name="obligationId"></param>
 /// <param name="fulfillOn"></param>
 /// <param name="attributeAssignment"></param>
 public ObligationElement(string obligationId, Effect fulfillOn, AttributeAssignmentReadWriteCollection attributeAssignment) :
     base(obligationId, fulfillOn, attributeAssignment)
 {
 }
 /// <summary>
 /// Creates an ReadWriteObligationElement with the parameters given
 /// </summary>
 /// <param name="obligationId"></param>
 /// <param name="fulfillOn"></param>
 /// <param name="attributeAssignment"></param>
 public ObligationElementReadWrite(string obligationId, Effect fulfillOn, AttributeAssignmentReadWriteCollection attributeAssignment)
 {
     _obligationId = obligationId;
     _fulfillOn = fulfillOn;
     _attributeAssignment = attributeAssignment;
 }