Package org.andromda.metafacades.uml

Examples of org.andromda.metafacades.uml.PackageFacade


        String arraySuffix = this.getArraySuffix();

        if (this.getFullyQualifiedName().indexOf(arraySuffix) != -1)
        {
            PackageFacade packageFacade = this.getRootPackage();
            String fullQualifiedName = this.getFullyQualifiedName(true);

            if (this.logger.isDebugEnabled())
            {
                this.logger.debug(
                    "Looking for non-array type of element " + fullQualifiedName + " with array suffix " + arraySuffix +
                    ", root: " + packageFacade);
                this.logger.debug("Metaobject: " + this.metaObject + " its model is : " + this.metaObject.getModel());
            }
            nonArrayType =
                (ClassifierFacade)packageFacade.findModelElement(StringUtils.replace(
                        fullQualifiedName,
                        arraySuffix,
                        ""));
        }
        return nonArrayType;
View Full Code Here


  private Package getPackage(String name, ModelAccessFacade model) {
    Iterator it = model.getModelElements().iterator();
    while (it.hasNext()) {
      ModelElementFacade mef = (ModelElementFacade) it.next();
      if (mef instanceof PackageFacade) {
        PackageFacade pf = (PackageFacade) mef;
        Package p = (Package) ((PackageFacadeLogicImpl) pf)
            .getMetaObject();
        if (p.getName() != null && p.getName().equals(name)) {
          return p;
        }
View Full Code Here

TOP

Related Classes of org.andromda.metafacades.uml.PackageFacade

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.