File Source: CertificateInformationEntry.java

         /* 
    P/P   *  Method: com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry__static_init
          */
     1  /*
     2   * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
     3   *
     4   * Permission is hereby granted, free of charge, to any person obtaining a copy
     5   * of this software and associated documentation files (the "Software"), to deal
     6   * in the Software without restriction, including without limitation the rights
     7   * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     8   * copies of the Software, and to permit persons to whom the Software is
     9   * furnished to do so, subject to the following conditions:
    10   *
    11   * The above copyright notice and this permission notice shall be included in
    12   * all copies or substantial portions of the Software.
    13   *
    14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    20   * SOFTWARE.
    21   */
    22  
    23  package com.dmdirc.ui.core.dialogs.sslcertificate;
    24  
    25  /**
    26   * Describes one piece of information about a certificate.
    27   *
    28   * @since 0.6.3m1
    29   * @author chris
    30   */
    31  public class CertificateInformationEntry {
    32  
    33      /** The title of the piece of information. */
    34      private final String title;
    35  
    36      /** The actual value. */
    37      private final String value;
    38  
    39      /** Whether this value is invalid. */
    40      private final boolean invalid;
    41  
    42      /** Whether this value is missing. */
    43      private final boolean missing;
    44  
    45      /**
    46       * Creates a new CertificateInformationEntry for the specified information.
    47       *
    48       * @param title The title of the piece of information
    49       * @param value The actual value
    50       * @param invalid Whether the value is invalid
    51       * @param missing Whether the value is missing
    52       */
    53      public CertificateInformationEntry(final String title, final String value,
    54              final boolean invalid, final boolean missing) {
                 /* 
    P/P           *  Method: void com.dmdirc.ui.core.dialogs.sslcertificate.CertificateInformationEntry(String, String, bool, bool)
                  * 
                  *  Postconditions:
                  *    this.invalid == invalid
                  *    init'ed(this.invalid)
                  *    this.missing == missing
                  *    init'ed(this.missing)
                  *    this.title == title
                  *    init'ed(this.title)
                  *    this.value == value
                  *    init'ed(this.value)
                  */
    55          super();
    56          this.title = title;
    57          this.value = value;
    58          this.invalid = invalid;
    59          this.missing = missing;
    60      }
    61  
    62      /**
    63       * Checks whether the value is considered invalid.
    64       * 
    65       * @return True if the value is invalid, false otherwise
    66       */
    67      public boolean isInvalid() {
                 /* 
    P/P           *  Method: bool isInvalid()
                  * 
                  *  Postconditions:
                  *    return_value == this.invalid
                  *    init'ed(return_value)
                  */
    68          return invalid;
    69      }
    70  
    71      /**
    72       * Checks whether the value is considered missing.
    73       *
    74       * @return True if the value is missing, false otherwise
    75       */
    76      public boolean isMissing() {
                 /* 
    P/P           *  Method: bool isMissing()
                  * 
                  *  Postconditions:
                  *    return_value == this.missing
                  *    init'ed(return_value)
                  */
    77          return missing;
    78      }
    79  
    80      /**
    81       * Retrieves the title of this piece of information.
    82       *
    83       * @return This entry's title
    84       */
    85      public String getTitle() {
                 /* 
    P/P           *  Method: String getTitle()
                  * 
                  *  Postconditions:
                  *    return_value == this.title
                  *    init'ed(return_value)
                  */
    86          return title;
    87      }
    88  
    89      /**
    90       * Retrieves the value of this entry.
    91       *
    92       * @return This entry's value
    93       */
    94      public String getValue() {
                 /* 
    P/P           *  Method: String getValue()
                  * 
                  *  Postconditions:
                  *    return_value == this.value
                  *    init'ed(return_value)
                  */
    95          return value;
    96      }
    97  }








SofCheck Inspector Build Version : 2.17854
CertificateInformationEntry.java 2009-Jun-25 01:54:24
CertificateInformationEntry.class 2009-Sep-02 17:04:13