@Override public String toString() { String key = getKey(); StringBuilder str = new StringBuilder(); str.append(getClass().getSimpleName()).append("{") .append("Name:").append(key).append(",") .append("Value:").append(getValue()).append(",") .append("Type:").append(getDataType()).append(",") .append("Value-Type:").append(getValueType()).append(",") .append("Transient:").append(isTransient()).append("}"); return str.toString(); } }
protected void formatProperties(StringBuilder msg, Collection<Property> properties) { for (Property prop : properties) { if (prop.isTransient()) { continue; } msg.append("\n\t\t").append(prop.getKey()).append(": '").append(prop.getValue()).append(":") .append(prop.getDataType()).append(":").append(prop.getValueType()).append("'"); } } }
jsonString.append(JSON_TYPE_LABEL).append(ATTR_SEP); Utils.quote(prop.getDataType(), jsonString).append(ATTR_JSON); if (prop.getValueType() != null && !prop.getValueType().equalsIgnoreCase(ValueTypes.VALUE_TYPE_NONE)) { jsonString.append(JSON_VALUE_TYPE_LABEL).append(ATTR_SEP); Utils.quote(prop.getValueType(), jsonString).append(ATTR_JSON);