All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nakedobjects.noa.exceptions.InvalidRegExException Maven / Gradle / Ivy

The newest version!
package org.nakedobjects.noa.exceptions;

import org.nakedobjects.noa.adapter.Naked;

/**
 * The interaction is invalid because has exceeded a 
 * @MaxLength annotation.
 */
public class InvalidRegExException extends InvalidDeclarativelyException {

    private static final long serialVersionUID = 1L;

    public InvalidRegExException(
            String id, Naked argument, 
            String format, String validation, boolean caseSensitive) {
        this(id, null, argument, format, validation, caseSensitive);
    }

    public InvalidRegExException(
            String id, String message, Naked argument, 
            String format, String validation, boolean caseSensitive) {
        super(id, message, argument);
        this.format = format;
        this.validation = validation;
        this.caseSensitive = caseSensitive;
    }

    
    private String format;
    public String getFormat() {
        return format;
    }
    
    private String validation;
    public String getValidation() {
        return validation;
    }

    private boolean caseSensitive;
    public boolean isCaseSensitive() {
        return caseSensitive;
    }
    

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy