Enum SubjectType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SubjectType>

    public enum SubjectType
    extends java.lang.Enum<SubjectType>

    Enumeration that represents the available subject types.

    The SubjectType can be obtained by calling getType() on a ContainerElement or DirectoryChangeElement.

    It is also a parameter to createSubject() in StreamLink.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CHAT
      Chat subject type.
      CONTAINER
      Container subject type.
      DIRECTORY
      Directory subject type.
      JSON
      JSON subject type.
      NEWS_HEADLINE
      News headline subject type.
      NEWS_STORY
      News story subject type.
      PAGE
      Page subject type.
      PERMISSION
      Permission subject type.
      RECORD
      Record subject type.
      UNKNOWN
      The subject type is unknown.
      USER
      User subject type.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static SubjectType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SubjectType[] 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

      • CHAT

        public static final SubjectType CHAT

        Chat subject type.

      • CONTAINER

        public static final SubjectType CONTAINER

        Container subject type.

      • DIRECTORY

        public static final SubjectType DIRECTORY

        Directory subject type.

      • NEWS_HEADLINE

        public static final SubjectType NEWS_HEADLINE

        News headline subject type.

      • NEWS_STORY

        public static final SubjectType NEWS_STORY

        News story subject type.

      • PAGE

        public static final SubjectType PAGE

        Page subject type.

      • PERMISSION

        public static final SubjectType PERMISSION

        Permission subject type.

      • RECORD

        public static final SubjectType RECORD

        Record subject type.

      • USER

        public static final SubjectType USER

        User subject type.

      • JSON

        public static final SubjectType JSON

        JSON subject type.

      • UNKNOWN

        public static final SubjectType UNKNOWN

        The subject type is unknown.

    • Method Detail

      • values

        public static SubjectType[] 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 (SubjectType c : SubjectType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SubjectType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null