public static String getElementName ( ENamedElement element ) { String value = getValue ( element , "JsonProperty" , "value" ) ; if ( value == null ) { value = getValue ( element , EXTENDED_METADATA , "name" ) ; } return value == null ? element . getName ( ) : value ; }
Returns the name that should be use to serialize the property .