java.lang.Object
com.priint.pubserver.comet.entity.statement.Statement
All Implemented Interfaces:
Serializable

public class Statement extends Object implements Serializable
Enumeration of all script and statement types.
See Also:
  • Field Details

    • CONFIGURATION_QUALIFIER

      public static final String CONFIGURATION_QUALIFIER
      The Constant CONFIGURATION_QUALIFIER.
      See Also:
    • CONFIGURATION_VERSION

      public static final String CONFIGURATION_VERSION
      The Constant CONFIGURATION_VERSION.
      See Also:
    • NO_IDENTIFIER

      public static final String NO_IDENTIFIER
      The Constant NO_IDENTIFIER.
      See Also:
  • Constructor Details

    • Statement

      public Statement()
  • Method Details

    • getStatementDescriptorByTypeIdOrClassId

      public static Statement.StatementDescriptor getStatementDescriptorByTypeIdOrClassId(int classId, int typeId)

      Get the statement descriptor for a (nearly) arbitrary script, such as layout rules, panel scripts, placeholder scripts etc.

      You cannot use this method for configuration statements (as known as "panelstatements"), for these types use the getConfigurationStatementDescriptor method instead.

      Parameters:
      classId - the class id
      typeId - the type id
      Returns:
      the statetment descriptor for this classId or typeId
    • getStatementDescriptorByClass

      public static Statement.StatementDescriptor getStatementDescriptorByClass(Class<?> scriptClass)
      Gets the statement descriptor by class.
      Parameters:
      scriptClass - the script class
      Returns:
      the statement descriptor by class
    • getActionClasses

      public static List<Class<?>> getActionClasses(boolean includeObsolete)
      Gets the action classes.
      Parameters:
      includeObsolete - the include obsolete
      Returns:
      the action classes
    • getActionTypes

      public static List<Statement.StatementDescriptor> getActionTypes()
      Gets the action types.
      Returns:
      the action types
    • getObsoleteActionTypes

      public static List<Statement.StatementDescriptor> getObsoleteActionTypes()
      Gets the obsolete action types.
      Returns:
      the obsolete action types
    • shortInfo

      public static String shortInfo(Statement.StatementDescriptor sd)
      Short info.
      Parameters:
      sd - the sd
      Returns:
      the string
    • main

      public static void main(String[] args)
      The main method.
      Parameters:
      args - the arguments
    • getActionInfos

      public static List<com.priint.pubserver.comet.entity.statement.Statement.ActionInfo> getActionInfos()
      Gets the action infos.
      Returns:
      the action infos
    • getHTMLFragment

      public static String getHTMLFragment()
      Gets the HTML fragment.
      Returns:
      the HTML fragment