/** * Builds the label of the specified field by joining its names and adding it * to the entity label * * @param entity the entity name * @param fieldNames list of fields * @return label */ private static String buildLabel(String entityName, String... fieldNames) { String label = XmlUtils.convertId("label." + entityName.toLowerCase()); for (String fieldName : fieldNames) { label = XmlUtils.convertId(label.concat(".").concat(fieldName.toLowerCase())); } return label; }
/** * Builds the id of the specified field and adds it to the entity label * * @param suffix * The suffix to complete the field id * * @return label */ public void buildId(String suffix) { String id = XmlUtils.convertId(this.entityName.toLowerCase()); // If suffix is not blank or null, concatenate it if (!StringUtils.isEmpty(suffix)) { id = id.concat("-").concat(XmlUtils.convertId(suffix.toLowerCase())); } this.entityItemId = id; }
/** * Builds the id of the specified detail * * @param suffix * The suffix to complete the field id * */ private void buildDetailItemId(String suffix) { String id = XmlUtils.convertId(this.pathString.toLowerCase()); // If suffix is not blank or null, concatenate it if (!StringUtils.isEmpty(suffix)) { id = id.concat("-").concat(XmlUtils.convertId(suffix.toLowerCase())); } this.entityItemId = id; }
/** * Builds the label of the specified field and adds it to the entity label * * @param entity * the entity name * @param field * the field name * @return label */ public static String buildLabel(String entityName, String fieldName) { String entityLabel = XmlUtils.convertId("label." + entityName.toLowerCase()); // If field is blank or null, only entity label will be generated if (fieldName != null && StringUtils.isBlank(fieldName)) { return entityLabel; } // Else, is necessary to concat fieldName to generate full field label return XmlUtils.convertId(entityLabel.concat(".").concat(fieldName.toLowerCase())); }
/** * Builds the id of the specified field and adds it to the entity label * * @param suffix * The suffix to complete the field id * * @return label */ public void buildId(String suffix) { String id = XmlUtils.convertId(this.entityName.toLowerCase()); // If field is not blank or null, concatenate it if (!StringUtils.isEmpty(this.fieldName)) { id = id.concat("-").concat(XmlUtils.convertId(fieldName.toLowerCase())); } // If suffix is not blank or null, concatenate it if (!StringUtils.isEmpty(suffix)) { id = id.concat("-").concat(XmlUtils.convertId(suffix.toLowerCase())); } this.fieldId = id; }
/** * * Builds the id of the specified entry * */ public void buildId() { String id = StringUtils.EMPTY; if (!StringUtils.isEmpty(this.pathPrefix)) { id = id.concat(XmlUtils.convertId(pathPrefix.toLowerCase())); } if (StringUtils.isNotEmpty(id)) { id.concat("-"); } // If field is not blank or null, concatenate it if (StringUtils.isNotEmpty(this.entityName)) { id = id.concat(XmlUtils.convertId(entityName.toLowerCase())); } this.id = id; }
for (JavaSymbolName constant : enumConstants) { String enumLabelCode = XmlUtils.convertId("enum.".concat(fieldType.getSimpleTypeName()).concat(".") .concat(constant.getSymbolName())); String enumLabelValue = StringUtils.capitalize(constant.getSymbolName().toLowerCase());
private Node verifyTextCommand(final Document document, final JavaType formBackingType, final FieldMetadata field) { final Node tr = document.createElement("tr"); final Node td1 = tr.appendChild(document.createElement("td")); td1.setTextContent("verifyText"); final Node td2 = tr.appendChild(document.createElement("td")); td2.setTextContent(XmlUtils.convertId("_s_" + formBackingType.getFullyQualifiedTypeName() + "_" + field.getFieldName().getSymbolName() + "_" + field.getFieldName().getSymbolName() + "_id")); final Node td3 = tr.appendChild(document.createElement("td")); td3.setTextContent(convertToInitializer(field)); return tr; }
.addAttribute( "id", XmlUtils.convertId("fu:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute("modelAttribute", entityName).build();
.addAttribute( "id", XmlUtils.convertId("l:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute( .addAttribute( "id", XmlUtils.convertId("c:" + formBackingType .getFullyQualifiedTypeName() .addAttribute( "id", XmlUtils.convertId("pl:" + formBackingType.getFullyQualifiedTypeName())) .addAttribute(
fieldElement.setAttribute( "id", XmlUtils.convertId("c:" + formBackingType.getFullyQualifiedTypeName() + "." + field.getFieldName().getSymbolName()));
final String resourceId = XmlUtils.convertId("label." + formBackingType.getFullyQualifiedTypeName().toLowerCase()); properties.put(resourceId, final String pluralResourceId = XmlUtils.convertId(resourceId + ".plural"); final String plural = formBackingTypeMetadataDetails.getPlural(); .getRooIdentifierFields()) { properties.put( XmlUtils.convertId(resourceId + "." + javaTypePersistenceMetadataDetails .getAnnotation(JpaJavaType.GENERATED_VALUE) == null) { properties.put( XmlUtils.convertId(resourceId + "." + javaTypePersistenceMetadataDetails final String fieldResourceId = XmlUtils.convertId(resourceId + "." + fieldName.getSymbolName().toLowerCase()); if (typeLocationService.isInProject(method.getReturnType()) .getReadableSymbolName(); properties.put( XmlUtils.convertId(resourceId + "." + javaTypePersistenceMetadataDetails
.addAttribute( "id", XmlUtils.convertId("fr_" + formbackingObject.getFullyQualifiedTypeName())) .addAttribute("method", "GET").build();