com.sap.portal.navigation.json.list

Enum JSONListConstants.JSONListItemType

java.lang.Object
  extended by java.lang.Enum<JSONListConstants.JSONListItemType>
      extended by com.sap.portal.navigation.json.list.JSONListConstants.JSONListItemType
All Implemented Interfaces:
Serializable, Comparable<JSONListConstants.JSONListItemType>
Enclosing class:
JSONListConstants

public static enum JSONListConstants.JSONListItemType
extends Enum<JSONListConstants.JSONListItemType>

Defines the type of a JSONListItem

  • ITEM - an item
  • FOLDER - a folder

  • Enum Constant Summary
    FOLDER
              JSONListItem folder type
    ITEM
              JSONListItem item type
     
    Method Summary
    static JSONListConstants.JSONListItemType valueOf(String name)
              Returns the enum constant of this type with the specified name.
    static JSONListConstants.JSONListItemType[] values()
              Returns an array containing the constants of this enum type, in the order they are declared.
     
    Methods inherited from class java.lang.Enum
    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
     
    Methods inherited from class java.lang.Object
    getClass, notify, notifyAll, wait, wait, wait
     

    Enum Constant Detail

    ITEM

    public static final JSONListConstants.JSONListItemType ITEM
    JSONListItem item type


    FOLDER

    public static final JSONListConstants.JSONListItemType FOLDER
    JSONListItem folder type

    Method Detail

    values

    public static JSONListConstants.JSONListItemType[] values()
    Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
    for (JSONListConstants.JSONListItemType c : JSONListConstants.JSONListItemType.values())
        System.out.println(c);
    

    Returns:
    an array containing the constants of this enum type, in the order they are declared

    valueOf

    public static JSONListConstants.JSONListItemType valueOf(String name)
    Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
    NullPointerException - if the argument is null
    Access Rights

    This class can be accessed from:

    
    
    SC DC Public Part ACH
    [sap.com] EP-RUNTIME [sap.com] tc/ep/navigation/api api EP-PIN


    Copyright 2015 SAP AG Complete Copyright Notice