Example #1
0
 internal virtual void ProcessAllRelationships(PartBridge bridge, Interaction interaction, Visitor visitor)
 {
     foreach (BaseRelationshipBridge relationship in bridge.GetRelationshipBridges())
     {
         ProcessRelationship(interaction, relationship, visitor);
     }
 }
Example #2
0
        /// <summary>Very rarely, there's a mandatory association that has no data.</summary>
        /// <remarks>Very rarely, there's a mandatory association that has no data.</remarks>
        /// <param name="part"></param>
        /// <returns></returns>
        private bool IsTrivial(PartBridge part)
        {
            bool trivial = true;

            foreach (BaseRelationshipBridge relationship in part.GetRelationshipBridges())
            {
                Relationship r = relationship.GetRelationship();
                if (relationship.GetRelationship().Association || !r.HasFixedValue())
                {
                    trivial = false;
                    break;
                }
            }
            return(trivial);
        }