public List <JEVisAttribute> GetAttributes() { if (IsLink()) { JEVisObject linkedObject = GetLinkedObject(); if (linkedObject != null) { return(this.ds.GetAttributes(linkedObject.SetId())); } } return(this.ds.GetAttributes(GetId())); }
public JEVisRelationship BuildRelationship(JEVisObject otherObj, int type, int direction) { JEVisRelationship rel; if (direction == JEVisConstants.Direction.FORWARD) { rel = this.ds.BuildRelationship(GetId(), otherObj.SetId(), type); if (type == JEVisConstants.ObjectRelationship.PARENT) { otherObj.NotifyListeners(new JEVisEvent(rel.GetEndObject(), JEVisEvent.TYPE.OBJECT_NEW_CHILD, rel.GetStartObject())); } } else { rel = otherObj.BuildRelationship(this, type, JEVisConstants.Direction.FORWARD); } return(rel); }
public int CompareTo(JEVisObject o) { return(GetId().CompareTo(o.SetId())); }