public void Update(String id, IConcept leftValue, IConcept rightValue, IConcept comparisonSign) { if (leftValue == null) { throw new ArgumentNullException(nameof(leftValue)); } if (rightValue == null) { throw new ArgumentNullException(nameof(rightValue)); } if (comparisonSign == null) { throw new ArgumentNullException(nameof(comparisonSign)); } if (!leftValue.HasAttribute <IsValueAttribute>()) { throw new ArgumentException("Left value concept has to be marked as IsValue Attribute.", nameof(leftValue)); } if (!rightValue.HasAttribute <IsValueAttribute>()) { throw new ArgumentException("Right value concept has to be marked as IsValue Attribute.", nameof(rightValue)); } if (!comparisonSign.HasAttribute <IsComparisonSignAttribute>()) { throw new ArgumentException("Comparison Sign concept has to be marked as IsComparisonSign Attribute.", nameof(comparisonSign)); } Update(id); LeftValue = leftValue; RightValue = rightValue; ComparisonSign = comparisonSign; }
public void Update(String id, IConcept processA, IConcept processB, IConcept sequenceSign) { if (processA == null) { throw new ArgumentNullException(nameof(processA)); } if (processB == null) { throw new ArgumentNullException(nameof(processB)); } if (sequenceSign == null) { throw new ArgumentNullException(nameof(sequenceSign)); } if (!processA.HasAttribute <IsProcessAttribute>()) { throw new ArgumentException("Process A concept has to be marked as IsProcess Attribute.", nameof(processA)); } if (!processB.HasAttribute <IsProcessAttribute>()) { throw new ArgumentException("Process B concept has to be marked as IsProcess Attribute.", nameof(processB)); } if (!sequenceSign.HasAttribute <IsSequenceSignAttribute>()) { throw new ArgumentException("Sequence Sign concept has to be marked as IsSequenceSign Attribute.", nameof(sequenceSign)); } Update(id); ProcessA = processA; ProcessB = processB; SequenceSign = sequenceSign; }
public void Update(String id, IConcept concept, IConcept sign, IConcept value) { if (concept == null) { throw new ArgumentNullException(nameof(concept)); } if (sign == null) { throw new ArgumentNullException(nameof(sign)); } if (value == null) { throw new ArgumentNullException(nameof(value)); } if (!sign.HasAttribute <IsSignAttribute>()) { throw new ArgumentException("Sign concept has to be marked as IsSign Attribute.", nameof(sign)); } if (!value.HasAttribute <IsValueAttribute>()) { throw new ArgumentException("Value concept has to be marked as IsValue Attribute.", nameof(value)); } Update(id); Concept = concept; Sign = sign; Value = value; }
public void Update(String id, IConcept concept1, IConcept concept2) { if (concept1 == null) { throw new ArgumentNullException(nameof(concept1)); } if (concept2 == null) { throw new ArgumentNullException(nameof(concept2)); } if (!concept1.HasAttribute <CustomAttribute>()) { throw new ArgumentException("C1 has to be marked as CustomAttribute Attribute.", nameof(concept1)); } if (!concept2.HasAttribute <CustomAttribute>()) { throw new ArgumentException("C2 has to be marked as CustomAttribute Attribute.", nameof(concept2)); } Update(id); Concept1 = concept1; Concept2 = concept2; }