@Override public void propertyOrder(JDefinedClass clazz, JsonNode propertiesNode) { JAnnotationArrayMember annotationValue = clazz.annotate(JsonPropertyOrder.class).paramArray("value"); for (Iterator<String> properties = propertiesNode.fieldNames(); properties.hasNext();) { annotationValue.param(properties.next()); } }
public String[] findSerializationPropertyOrder(AnnotatedClass paramAnnotatedClass) { JsonPropertyOrder localJsonPropertyOrder = (JsonPropertyOrder)paramAnnotatedClass.getAnnotation(JsonPropertyOrder.class); if (localJsonPropertyOrder == null) return null; return localJsonPropertyOrder.value(); }
public Boolean findSerializationSortAlphabetically(AnnotatedClass paramAnnotatedClass) { JsonPropertyOrder localJsonPropertyOrder = (JsonPropertyOrder)paramAnnotatedClass.getAnnotation(JsonPropertyOrder.class); if (localJsonPropertyOrder == null) return null; return Boolean.valueOf(localJsonPropertyOrder.alphabetic()); }