public void TestDoValidateCollectionItem(MessagePart objectToValidate, object currentTarget, string key, ValidationResults validationResults)
		{
			this.DoValidateCollectionItem(objectToValidate, currentTarget, key, validationResults);
		}
		public static MessageBase GetMessage(MessagePart element)
		{
			return DslModeling::DomainRoleInfo.GetLinkedElement(element, MessagePartDomainRoleId) as MessageBase;
		}
		public static void SetMessage(MessagePart element, MessageBase newMessageBase)
		{
			DslModeling::DomainRoleInfo.SetLinkedElement(element, MessagePartDomainRoleId, newMessageBase);
		}
		/// <summary>
		/// Constructor
		/// Creates a MessageHasMessageParts link in the same Partition as the given MessageBase
		/// </summary>
		/// <param name="source">MessageBase to use as the source of the relationship.</param>
		/// <param name="target">MessagePart to use as the target of the relationship.</param>
		public MessageHasMessageParts(MessageBase source, MessagePart target)
			: base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(MessageHasMessageParts.MessageBaseDomainRoleId, source), new DslModeling::RoleAssignment(MessageHasMessageParts.MessagePartDomainRoleId, target)}, null)
		{
		}