org.apache.myfaces.trinidad.skin

## Class SkinVersion

- java.lang.Object
- - org.apache.myfaces.trinidad.skin.SkinVersion

-     public final class SkinVersion
      extends Object

  The skin version works tightly with the skin family. This allows someone to create versions of their skin, like purple (no version), purple version v2, purple version v3. Then the user can say which skin version they want, like: purple v3 when they pick a skin in trinidad-config.xml. When creating a skin, you give it a version if you care about versioning.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static SkinVersion` | `EMPTY_SKIN_VERSION`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SkinVersion(String name)` Constructor that takes a version name.
    `SkinVersion(String name, boolean defaultVersion)` Constructor that takes a name and a defaultVersion.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `String` | `getName()`
    `int` | `hashCode()`
    `boolean` | `isDefault()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### EMPTY_SKIN_VERSION

          public static final SkinVersion EMPTY_SKIN_VERSION

  - ### Constructor Detail

    - #### SkinVersion

          public SkinVersion(String name)

      Constructor that takes a version name.
      Parameters:
        `name` - the name of the version, like "v1". If name is "default" then we set default as true and name to null. If name is null, it is converted to "".

    - #### SkinVersion

          public SkinVersion(String name,
                     boolean defaultVersion)

      Constructor that takes a name and a defaultVersion.
      Parameters:
        `name` - the name of the version, like "v1". If name is null, it is converted to "".
        `defaultVersion` - true if this skin is the default version for all skins with the same skin family

  - ### Method Detail

    - #### isDefault

          public boolean isDefault()

    - #### getName

          public String getName()

    - #### equals

          public final boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public final int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.