Package gamedata

Enum ClassMap.EntryType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ClassMap.EntryType>
    Enclosing class:
    ClassMap

    public static enum ClassMap.EntryType
    extends java.lang.Enum<ClassMap.EntryType>
    An enumeration of the types of entries that may appear in a class map file.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CATEGORY
      An entry for a category that groups entries of other types.
      EDITOR_COMPILED
      An entry for an editor that is created by instantiating a compiled class.
      EDITOR_DIY
      An entry for an editor that is created from a DIY component script.
      EDITOR_SCRIPTED
      An entry for an editor that is created by running an arbitrary script file.
    • Method Summary

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

      • CATEGORY

        public static final ClassMap.EntryType CATEGORY
        An entry for a category that groups entries of other types. Categories cannot be nested.
      • EDITOR_DIY

        public static final ClassMap.EntryType EDITOR_DIY
        An entry for an editor that is created from a DIY component script.
        See Also:
        DIY
      • EDITOR_SCRIPTED

        public static final ClassMap.EntryType EDITOR_SCRIPTED
        An entry for an editor that is created by running an arbitrary script file. It is up to the script file to add the new editor to the application. (If the script completes without adding an editor, it is assumed that the script failed with an error and that the error has already been reported to the user.)
        See Also:
        StrangeEonsAppWindow.addEditor(ca.cgjennings.apps.arkham.StrangeEonsEditor)
    • Method Detail

      • values

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

        public static ClassMap.EntryType 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