private static String resolve(final PropertyDescriptor descriptor) { final DocumentName name = descriptor.getDocumentName(); final String target = name.getName(); // final String target = descriptor.getKey().toString(); return target; }
private static DocumentName calculateDocumentName(final PropertyKey key, final Method propertyMethod) { final Document annotation = propertyMethod.getAnnotation(Document.class); String name = propertyMethod.getName(); if (annotation != null) { final String value = annotation.name(); if (value != null) { final AnnotationHelper helper = new AnnotationHelper(); final String annName = helper.normalizeString(value); if (StringUtils.isNotBlank(annName)) // NOPMD { name = annName; } } } final String setName = key.getPropertySet(); final String fqn = setName != null ? setName + '.' + name : name; final DocumentName documentName = new DocumentName(fqn); return documentName; }
/** * Returns the name that uniquely identifies the property report within the * report set. * * @return the name that uniquely identifies the property report within the * report set. */ public String getLocalName() { final String metadataValue = descriptor.getDocumentMetaData().getName(); if (StringUtils.isBlank(metadataValue)) { return descriptor.getDocumentName().getName(); } return metadataValue; }