Package sc.layer

Enum CodeType

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

    public enum CodeType
    extends java.lang.Enum<CodeType>
    The top-level categorization of layers by type. When a layer contains more than one, either don't set it or choose Application. While this is mainly used for navigation in the IDE and management UI and so optional, but Framework layers are put below others in the layer stack. TODO: now we also have configLayer a property in the Layer that also affects sorting and overlaps with these settings here. Do we need a better way to designate 'runnable' layers - like those that only specify dependencies? Or maybe that's a separate property like configLayer. also need a way to see if layers are compatible and maybe to suggest 'option' layers for when you include one layer - see all of the options it can be used with to choose another layer. Maybe a wizard that starts at the frameworks, and works down to find a run configuration? TODO: allow default code type to be set in the layer bundle since we tend to have framework bundles, test bundles etc.
    • Method Summary

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

      • Model

        public static final CodeType Model
      • Style

        public static final CodeType Style
      • Application

        public static final CodeType Application
      • Persist

        public static final CodeType Persist
      • Framework

        public static final CodeType Framework
      • Admin

        public static final CodeType Admin
      • Deploy

        public static final CodeType Deploy
      • Test

        public static final CodeType Test
    • Field Detail

      • allSet

        public static java.util.EnumSet<CodeType> allSet
      • nonFrameworkSet

        public static java.util.EnumSet<CodeType> nonFrameworkSet
    • Method Detail

      • values

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

        public static CodeType 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