public EAPackage(EARepository repository)
 {
     element  = new EAElement(repository);
     diagrams = new EADiagramCollection(repository, this);
     elements = new EAElementCollection(repository, this);
     packages = new EAPackageCollection(repository, this);
 }
Esempio n. 2
0
 public EAAttribute(EARepository repository, int elementId)
 {
     TaggedValues = new EAAttributeTagCollection(repository, this);
     ParentID     = elementId;
     Default      = "";
     UpperBound   = "1";
     LowerBound   = "1";
 }
 public static Element AddENUM(this Package enumLib1, string name, Element type, params string[][] codelistEntries)
 {
     return(enumLib1.AddClass(name).With(EARepository.ElementStereotype(Stereotype.ENUM),
                                         e =>
     {
         foreach (var codelistEntry in codelistEntries)
         {
             AddENUMValue(e, codelistEntry[0], codelistEntry[1], codelistEntry[2]);
         }
     }));
 }
 public EADiagramObjectCollection(EARepository repository, EADiagram diagram)
     : base(ObjectType.otDiagramObject, EARepository.CreateDiagramObject, () => diagram.DiagramID)
 {
 }
 public EADiagramCollection(EARepository repository, EAPackage package)
     : base(ObjectType.otDiagram, repository.CreateDiagram, () => package.PackageID)
 {
 }
 public EAElementCollection(EARepository repository, EAPackage package)
     : base(ObjectType.otElement, repository.CreateElement, () => package.PackageID)
 {
 }
 public EAConnectorCollection(EARepository repository, EAElement element)
     : base(ObjectType.otConnector, repository.CreateConnector, () => element.ElementID)
 {
     this.repository = repository;
 }
 public EAAttributeCollection(EARepository repository, EAElement element)
     : base(ObjectType.otAttribute, repository.CreateAttribute, () => element.ElementID)
 {
 }
 public EAPackageCollection(EARepository repository, EAPackage parent)
     : base(ObjectType.otPackage, repository.CreatePackage, () => parent != null ? parent.PackageID : 0)
 {
 }
 public EAConnectorTagCollection(EARepository repository, EAConnector connector)
     : base(ObjectType.otConnectorTag, repository.CreateConnectorTag, () => connector.ConnectorID)
 {
 }
 public EAAttributeTagCollection(EARepository repository, EAAttribute attribute)
     : base(ObjectType.otAttributeTag, EARepository.CreateAttributeTag, () => attribute.AttributeID)
 {
 }
 public EAConnector(EARepository repository)
 {
     TaggedValues = new EAConnectorTagCollection(repository, this);
     SupplierEnd  = new EAConnectorEnd();
     ClientEnd    = new EAConnectorEnd();
 }
 public EATaggedValueCollection(EARepository repository, EAElement element)
     : base(ObjectType.otTaggedValue, EARepository.CreateTaggedValue, () => element.ElementID)
 {
 }
 public static Element AddPRIM(this Package primLib1, string name)
 {
     return(primLib1.AddClass(name).With(EARepository.ElementStereotype(Stereotype.PRIM)));
 }
 public static Element AddCDT(this Package package, string name)
 {
     return(package.AddClass(name).With(EARepository.ElementStereotype(Stereotype.CDT)));
 }
Esempio n. 16
0
 public EADiagram(EARepository repository)
 {
     diagramObjects = new EADiagramObjectCollection(repository, this);
 }
Esempio n. 17
0
 public EAElement(EARepository repository)
 {
     this.repository = repository;
     attributes      = new EAAttributeCollection(repository, this);
     taggedValues    = new EATaggedValueCollection(repository, this);
 }