src/main/java/de/blau/android/validation/BaseValidator.java
/**
     * Check if the element is not one of the ElementType required by the PresetItem
     * 
     * @param status previous validation status
     * @param e the OsmElement
     * @param pi the PresetItem
     * @return new validation status
     */
Check if the element is not one of the ElementType required by the PresetItem

@param status previous validation status
@param e the OsmElement
@param pi the PresetItem
@return new validation status
Check if the element is not one of the ElementType required by the PresetItem @param status previous validation status @param e the OsmElement @param pi the PresetItem @return new validation status
public int validateWrongType(int status, @NonNull OsmElement e, @NonNull PresetItem pi) {
        List<ElementType> elementType = pi.appliesTo();
        if (!elementType.contains(e.getType())) {
            status |= Validator.WRONG_ELEMENT_TYPE;
        }
        return status;
    }
public int validateWrongType ( int status , @ NonNull OsmElement e , @ NonNull PresetItem pi ) { List < ElementType > elementType = pi . appliesTo ( ) ; if ( ! elementType . contains ( e . getType ( ) ) ) { status |= Validator . WRONG_ELEMENT_TYPE ; } return status ; }
Check if the element is not one of the ElementType required by the PresetItem
Check if the element is not one of the ElementType required by the PresetItem