//# 0 errors, 61 messages
//#
/*
    //#CertificateInformationEntry.java:1:1: class: com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry
    //#CertificateInformationEntry.java:1:1: method: com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__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.ui.core.dialogs.sslcertificate;

/**
 * Describes one piece of information about a certificate.
 *
 * @since 0.6.3m1
 * @author chris
 */
public class CertificateInformationEntry {

    /** The title of the piece of information. */
    private final String title;

    /** The actual value. */
    private final String value;

    /** Whether this value is invalid. */
    private final boolean invalid;

    /** Whether this value is missing. */
    private final boolean missing;

    /**
     * Creates a new CertificateInformationEntry for the specified information.
     *
     * @param title The title of the piece of information
     * @param value The actual value
     * @param invalid Whether the value is invalid
     * @param missing Whether the value is missing
     */
    public CertificateInformationEntry(final String title, final String value,
            final boolean invalid, final boolean missing) {
        super();
    //#CertificateInformationEntry.java:55: method: void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)
    //#input(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): invalid
    //#input(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): missing
    //#input(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this
    //#input(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): title
    //#input(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): value
    //#output(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.invalid
    //#output(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.missing
    //#output(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.title
    //#output(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.value
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.invalid == invalid
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): init'ed(this.invalid)
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.missing == missing
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): init'ed(this.missing)
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.title == title
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): init'ed(this.title)
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): this.value == value
    //#post(void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)): init'ed(this.value)
        this.title = title;
        this.value = value;
        this.invalid = invalid;
        this.missing = missing;
    }
    //#CertificateInformationEntry.java:60: end of method: void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)

    /**
     * Checks whether the value is considered invalid.
     * 
     * @return True if the value is invalid, false otherwise
     */
    public boolean isInvalid() {
        return invalid;
    //#CertificateInformationEntry.java:68: method: bool com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.isInvalid()
    //#input(bool isInvalid()): this
    //#input(bool isInvalid()): this.invalid
    //#output(bool isInvalid()): return_value
    //#post(bool isInvalid()): return_value == this.invalid
    //#post(bool isInvalid()): init'ed(return_value)
    //#CertificateInformationEntry.java:68: end of method: bool com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.isInvalid()
    }

    /**
     * Checks whether the value is considered missing.
     *
     * @return True if the value is missing, false otherwise
     */
    public boolean isMissing() {
        return missing;
    //#CertificateInformationEntry.java:77: method: bool com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.isMissing()
    //#input(bool isMissing()): this
    //#input(bool isMissing()): this.missing
    //#output(bool isMissing()): return_value
    //#post(bool isMissing()): return_value == this.missing
    //#post(bool isMissing()): init'ed(return_value)
    //#CertificateInformationEntry.java:77: end of method: bool com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.isMissing()
    }

    /**
     * Retrieves the title of this piece of information.
     *
     * @return This entry's title
     */
    public String getTitle() {
        return title;
    //#CertificateInformationEntry.java:86: method: String com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.getTitle()
    //#input(String getTitle()): this
    //#input(String getTitle()): this.title
    //#output(String getTitle()): return_value
    //#post(String getTitle()): return_value == this.title
    //#post(String getTitle()): init'ed(return_value)
    //#CertificateInformationEntry.java:86: end of method: String com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.getTitle()
    }

    /**
     * Retrieves the value of this entry.
     *
     * @return This entry's value
     */
    public String getValue() {
        return value;
    //#CertificateInformationEntry.java:95: method: String com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.getValue()
    //#input(String getValue()): this
    //#input(String getValue()): this.value
    //#output(String getValue()): return_value
    //#post(String getValue()): return_value == this.value
    //#post(String getValue()): init'ed(return_value)
    //#CertificateInformationEntry.java:95: end of method: String com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.getValue()
    }
}
    //#output(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Descendant_Table[com/dmdirc/ui/core/dialogs/sslcertificate/CertificateInformationEntry]
    //#output(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.getTitle()Ljava/lang/String;
    //#output(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.getValue()Ljava/lang/String;
    //#output(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.isInvalid()Z
    //#output(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.isMissing()Z
    //#post(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Descendant_Table[com/dmdirc/ui/core/dialogs/sslcertificate/CertificateInformationEntry] == &__Dispatch_Table
    //#post(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.getTitle()Ljava/lang/String; == &getTitle
    //#post(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.getValue()Ljava/lang/String; == &getValue
    //#post(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.isInvalid()Z == &isInvalid
    //#post(com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init): __Dispatch_Table.isMissing()Z == &isMissing
    //#CertificateInformationEntry.java:: end of method: com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry.com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init
    //#CertificateInformationEntry.java:: end of class: com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry
