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
}
}
}