/** * Returns the set of properties this property belongs to. * * @return the set of properties this property belongs to. */ public String getPropertySet() { final String descriptorValue = descriptor.getKey().getPropertySet(); if (StringUtils.isBlank(descriptorValue)) { return sourceInfo.getElementTypeName(); } return descriptorValue; }
final PropertyDescriptor descriptor, final Locale locale) final String target = descriptor.getKey().getPropertySet();
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; }