/** * Returns the definition of description attribute of a resource object. * * Returns null if there is no description attribute. * * The exception should be never thrown unless there is some bug in the * code. The validation of model consistency should be done at the time of * schema parsing. * * @return definition of secondary identifier attributes * @throws IllegalStateException * if there is more than one description attribute. But this * should never happen. * @throws IllegalStateException * if there is no definition for the referenced attributed */ @Override public ResourceAttributeDefinition getDescriptionAttribute() { return getComplexTypeDefinition().getDescriptionAttribute(); }
processor.addRefAnnotation(MidPointConstants.RA_DISPLAY_NAME_ATTRIBUTE, definition.getDisplayNameAttribute().getName(), appinfo); if (definition.getDescriptionAttribute() != null) { processor.addRefAnnotation(MidPointConstants.RA_DESCRIPTION_ATTRIBUTE, definition.getDescriptionAttribute().getName(), appinfo);