private void processProperty(ApiModelProperty apiModelPropertyAnnotation, Model model) {
        if (apiModelPropertyAnnotation == null) {
            return;
        }

        String apiModelPropertyAccess = apiModelPropertyAnnotation.access();
        String apiModelPropertyName = apiModelPropertyAnnotation.name();

        // If the @ApiModelProperty is not populated with both #name and #access, skip it
        if (apiModelPropertyAccess.isEmpty() || apiModelPropertyName.isEmpty()) {
            return;
        }

        // Check to see if the value of @ApiModelProperty#access is one to exclude.
        // If so, remove it from the previously-calculated model.
        if (apiModelPropertyAccessExclusions.contains(apiModelPropertyAccess)) {
            model.getProperties().remove(apiModelPropertyName);
        }
    }
private void processProperty ( ApiModelProperty apiModelPropertyAnnotation , Model model ) { if ( apiModelPropertyAnnotation == null ) { return ; } String apiModelPropertyAccess = apiModelPropertyAnnotation . access ( ) ; String apiModelPropertyName = apiModelPropertyAnnotation . name ( ) ; if ( apiModelPropertyAccess . isEmpty ( ) || apiModelPropertyName . isEmpty ( ) ) { return ; } if ( apiModelPropertyAccessExclusions . contains ( apiModelPropertyAccess ) ) { model . getProperties ( ) . remove ( apiModelPropertyName ) ; } }
Remove property from {@link Model} for provided {@link ApiModelProperty}.
@param apiModelPropertyAnnotation annotation
@param model model with properties