//# 0 errors, 25 messages
//#
/*
    //#PortValidator.java:1:1: class: com.dmdirc.config.prefs.validator.PortValidator
    //#PortValidator.java:1:1: method: com.dmdirc.config.prefs.validator.PortValidator.com.dmdirc.config.prefs.validator.PortValidator__static_init
 * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.dmdirc.config.prefs.validator;

/**
 * Validates a port number.
 * 
 * @author chris
 */
public class PortValidator extends NumericalValidator {
    
    /** The minimum port number. */
    private static final int MIN_PORT = 1;
    
    /** The maximum port number. */
    private static final int MAX_PORT = 65535;

    public PortValidator() {
        super(MIN_PORT, MAX_PORT);
    //#PortValidator.java:38: method: void com.dmdirc.config.prefs.validator.PortValidator.com.dmdirc.config.prefs.validator.PortValidator()
    //#input(void com.dmdirc.config.prefs.validator.PortValidator()): this
    //#output(void com.dmdirc.config.prefs.validator.PortValidator()): this.max
    //#output(void com.dmdirc.config.prefs.validator.PortValidator()): this.min
    //#post(void com.dmdirc.config.prefs.validator.PortValidator()): this.max == 65_535
    //#post(void com.dmdirc.config.prefs.validator.PortValidator()): this.min == 1
    }
    //#PortValidator.java:39: end of method: void com.dmdirc.config.prefs.validator.PortValidator.com.dmdirc.config.prefs.validator.PortValidator()

}
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator]
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.getMax()I
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.getMin()I
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.validate(Ljava/lang/Object;)Lcom/dmdirc/config/prefs/validator/ValidationResponse;
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.validate(Ljava/lang/String;)Lcom/dmdirc/config/prefs/validator/ValidationResponse;
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): com/dmdirc/config/prefs/validator/NumericalValidator.__Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator]
    //#output(com.dmdirc.config.prefs.validator.PortValidator__static_init): com/dmdirc/config/prefs/validator/Validator.__Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator]
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator] == &__Dispatch_Table
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): com/dmdirc/config/prefs/validator/NumericalValidator.__Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator] == &__Dispatch_Table
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): com/dmdirc/config/prefs/validator/Validator.__Descendant_Table[com/dmdirc/config/prefs/validator/PortValidator] == &__Dispatch_Table
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.getMax()I == &com/dmdirc/config/prefs/validator/NumericalValidator.getMax
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.getMin()I == &com/dmdirc/config/prefs/validator/NumericalValidator.getMin
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.validate(Ljava/lang/Object;)Lcom/dmdirc/config/prefs/validator/ValidationResponse; == &com/dmdirc/config/prefs/validator/NumericalValidator.validate
    //#post(com.dmdirc.config.prefs.validator.PortValidator__static_init): __Dispatch_Table.validate(Ljava/lang/String;)Lcom/dmdirc/config/prefs/validator/ValidationResponse; == &com/dmdirc/config/prefs/validator/NumericalValidator.validate
    //#PortValidator.java:: end of method: com.dmdirc.config.prefs.validator.PortValidator.com.dmdirc.config.prefs.validator.PortValidator__static_init
    //#PortValidator.java:: end of class: com.dmdirc.config.prefs.validator.PortValidator
