private AttributeModel(AttributeDef def) throws QuickFixException { this.name = def.getName(); this.description = def.getDescription(); this.type = def.getTypeDef().getName().toLowerCase(); this.required = def.isRequired(); if (def.getDefaultValue() != null) { this.defaultValue = def.getDefaultValue().getValue().toString(); } else { this.defaultValue = null; } DefDescriptor<?> parentDesc = def.getParentDescriptor(); if (parentDesc == null || parentDesc.equals(ComponentDefModel.this.descriptor)) { this.parentName = null; this.parentDefType = null; } else { this.parentName = parentDesc.getNamespace() + ":" + parentDesc.getName(); this.parentDefType = parentDesc.getDefType().name().toLowerCase(); } }