Class Statement

  • All Implemented Interfaces:
    java.io.Serializable

    public class Statement
    extends java.lang.Object
    implements java.io.Serializable
    Enumeration of all script and statement types.
    See Also:
    Serialized Form
    • Field Detail

      • CONFIGURATION_QUALIFIER

        public static final java.lang.String CONFIGURATION_QUALIFIER
        The Constant CONFIGURATION_QUALIFIER.
        See Also:
        Constant Field Values
      • CONFIGURATION_VERSION

        public static final java.lang.String CONFIGURATION_VERSION
        The Constant CONFIGURATION_VERSION.
        See Also:
        Constant Field Values
      • NO_IDENTIFIER

        public static final java.lang.String NO_IDENTIFIER
        The Constant NO_IDENTIFIER.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Statement

        public Statement()
    • Method Detail

      • 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​(java.lang.Class<?> scriptClass)
        Gets the statement descriptor by class.
        Parameters:
        scriptClass - the script class
        Returns:
        the statement descriptor by class
      • getActionClasses

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

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

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

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

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

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