Package org.jresearch.flexess.core.model.impl

Examples of org.jresearch.flexess.core.model.impl.AttributeMetaInfo


    return poMeta;

  }

  protected void createMetaAttribute(BaseObjectMetaInfo poMeta, EAttribute attribute) {
    AttributeMetaInfo am = new AttributeMetaInfo();
    am.setId(attribute.getName());
    String description = EcoreUtil.getAnnotation(attribute, UamPackage.eNS_URI, IPObjectConstant.DESCRIPTION_ATTR);
    am.setDescription(description);
    am.setName(attribute.getName());
    am.setType(attribute.getEAttributeType().getClassifierID());
    am.setDefaultValue(attribute.getDefaultValueLiteral());
    String type = attribute.getEAttributeType().getInstanceClassName();
    am.setTypeDescription(type.substring(type.lastIndexOf('.') + 1));
    if (poMeta instanceof PermissionMetaInfo) {
      String isUser = EcoreUtil.getAnnotation(attribute, UamPackage.eNS_URI, IAttributeConstant.ANNOTATION_KEY_RUNTIME);
      if (isUser != null) {
        try {
          boolean isUserAttr = Boolean.parseBoolean(isUser);
          am.setUserAttribute(isUserAttr);
        } catch (Exception e) {
          // ignore it
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.jresearch.flexess.core.model.impl.AttributeMetaInfo

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.