private void createPackage(Package rootPackage) { EnterpriseArchitectModelElementFactory factory = new EnterpriseArchitectModelElementFactory(); requirementsPackage = factory.createPackage(rootPackage, "Requirements"); requirementsPackage.Element.Author = "<imported>"; requirementsPackage.StereotypeEx = "ExchangeDocument"; if (!requirementsPackage.Update()) { throw new ParserFailureException(requirementsPackage.GetLastError()); } }
private Package CreateSpecificationPackage(Specification specification, Package rootPackage, EnterpriseArchitectModelElementFactory factory) { if ((object)specification == null) { throw new ArgumentNullException("specification"); } Package specificationPackage = factory.createPackage(rootPackage, specification.LongName); specificationPackage.Notes = specification.Description; specificationPackage.Element.Author = "<imported>"; specificationPackage.StereotypeEx = "Specification"; if (!specificationPackage.Update()) { throw new ParserFailureException(specificationPackage.GetLastError()); } return(specificationPackage); }
private void createPackage(Package rootPackage) { EnterpriseArchitectModelElementFactory factory = new EnterpriseArchitectModelElementFactory(); requirementsPackage = factory.createPackage(rootPackage, "Requirements"); requirementsPackage.Element.Author = "<imported>"; requirementsPackage.StereotypeEx = "ExchangeDocument"; if (! requirementsPackage.Update()) { throw new ParserFailureException(requirementsPackage.GetLastError()); } }
private Package CreateSpecificationPackage(Specification specification, Package rootPackage, EnterpriseArchitectModelElementFactory factory) { if ((object)specification == null) throw new ArgumentNullException("specification"); Package specificationPackage = factory.createPackage(rootPackage, specification.LongName); specificationPackage.Notes = specification.Description; specificationPackage.Element.Author = "<imported>"; specificationPackage.StereotypeEx = "Specification"; if (! specificationPackage.Update()) throw new ParserFailureException(specificationPackage.GetLastError()); return specificationPackage; }