Enum Class ItemTypeSelector

java.lang.Object
java.lang.Enum<ItemTypeSelector>
com.tridion.storage.dao.ItemTypeSelector
All Implemented Interfaces:
Serializable, Comparable<ItemTypeSelector>, Constable

public enum ItemTypeSelector extends Enum<ItemTypeSelector>
This represents the item selector flag in the ItemMeta data, can be used to limit selections to a single type of metadata.
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static ItemTypeSelector[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ItemTypeSelector valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getItemSelector

      public String getItemSelector()
      This gets the string representation of the ItemTypeSelector.
      Returns:
      The string based value of the ItemTypeSelector
    • getEntityName

      public String getEntityName()
      This returns the entity name as a String.
      Returns:
      The entity name as a string
    • getItemLocation

      public String getItemLocation()
      This returns the subfolder as a String in which the metadata is stored.
      Returns:
      The subfolder as a string
    • getItemTypeId

      public int getItemTypeId()
      This returns the resolved item type id which corresponds to those defined in ItemTypes.
      Returns:
      the resolved item type id which corresponds to this ItemTypeSelector.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ItemTypeSelector>
    • of

      public static ItemTypeSelector of(String itemSelector)
      Return ItemTypeSelector enum instance based in itemSelector string value.
      Parameters:
      itemSelector - item selector
      Returns:
      found enum instance