Class DelegatingOption

java.lang.Object
com.polarion.platform.persistence.spi.DelegatingOption
All Implemented Interfaces:
IEnumOption

public class DelegatingOption extends Object implements IEnumOption
Author:
POLARION SOFTWARE
  • Constructor Details

    • DelegatingOption

      public DelegatingOption(IEnumOption option)
  • Method Details

    • getEnumId

      public String getEnumId()
      Specified by:
      getEnumId in interface IEnumOption
      Returns:
      The ID of enumeration this option belongs to.
    • getId

      public String getId()
      Specified by:
      getId in interface IEnumOption
    • getName

      public String getName()
      Specified by:
      getName in interface IEnumOption
    • getProperty

      public String getProperty(String key)
      Description copied from interface: IEnumOption
      This method allows the system to pass through some specific attributes for different enumerations, like colors of texts, or url of icons.
      Specified by:
      getProperty in interface IEnumOption
      Returns:
      the String property value
    • getSequenceNumber

      public int getSequenceNumber()
      Specified by:
      getSequenceNumber in interface IEnumOption
      Returns:
      The sequence number as defined or 0 if not defined.
    • getProperties

      public Properties getProperties()
      Specified by:
      getProperties in interface IEnumOption
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isPhantom

      public boolean isPhantom()
      Description copied from interface: IEnumOption
      Phantom options represent values that are not part of the options available in the enumeration (but probably once were). They usually contain no other data than the ID.
      Specified by:
      isPhantom in interface IEnumOption
    • isDefault

      public boolean isDefault()
      Specified by:
      isDefault in interface IEnumOption
    • isHidden

      public boolean isHidden()
      Description copied from interface: IEnumOption
      Indicates that the option should be hidden from selectors in UI
      Specified by:
      isHidden in interface IEnumOption
      Since:
      3.6.0