hydra-spring/src/main/java/de/escalon/hypermedia/spring/hydra/LinkListSerializer.java
private String getWritableExposedPropertyOrPropertyName(PropertyDescriptor inputParameter) {

        final Method writeMethod = inputParameter.getWriteMethod();
        final Expose expose = writeMethod
                .getAnnotation(Expose.class);
        String propertyName;
        if (expose != null) {
            propertyName = expose.value();
        } else {
            propertyName = inputParameter.getName();
        }
        return propertyName;
    }
private String getWritableExposedPropertyOrPropertyName(PropertyDescriptor inputParameter) {

        final Method writeMethod = inputParameter.getWriteMethod();
        final Expose expose = writeMethod
                .getAnnotation(Expose.class);
        String propertyName;
        if (expose != null) {
            propertyName = expose.value();
        } else {
            propertyName = inputParameter.getName();
        }
        return propertyName;
    }
private String getWritableExposedPropertyOrPropertyName ( PropertyDescriptor inputParameter ) { final Method writeMethod = inputParameter . getWriteMethod ( ) ; final Expose expose = writeMethod . getAnnotation ( Expose . class ) ; String propertyName ; if ( expose != null ) { propertyName = expose . value ( ) ; } else { propertyName = inputParameter . getName ( ) ; } return propertyName ; }
Gets exposed property or parameter name for properties with an appropriate setter (=write) method.

@param inputParameter for exposure
@return property name
Gets exposed property or parameter name for properties with an appropriate setter ( = write ) method .