public void SetValue(GKOComponent componentVal) { if (componentVal == null) { throw new NullReferenceException("The component must be specified!"); } this.Component = componentVal; }
public void SetValue(GKOComponent componentVal, GKOAttribute attributeVal) { if (componentVal == null) { throw new NullReferenceException("The component must be specified!"); } else if (attributeVal == null) { throw new NullReferenceException("The attribute must be specified!"); } else if (!componentVal.AttributeValues.ContainsKey(attributeVal)) { throw new NullReferenceException("This attribute is not available for the component!"); } this.Component = componentVal; this.Attribute = attributeVal; }
public ComponentRelationPart(GKOComponent componentVal) { this.SetValue(componentVal); }
public AttributeRelationPart(GKOComponent componentVal, GKOAttribute attributeVal) { this.SetValue(componentVal, attributeVal); }