Class Statement
- java.lang.Object
-
- com.priint.pubserver.comet.entity.statement.Statement
-
- All Implemented Interfaces:
java.io.Serializable
public class Statement extends java.lang.Object implements java.io.SerializableEnumeration of all script and statement types.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatement.ClassIdThe Enum ClassId.static classStatement.StatementDescriptorThe StatementDescriptor enumeration classifies several types of statements: ACTIONS (speaking in comet3 terms): the script id denotes the type of this statement, e.g.static classStatement.StatementTypeThe Enum StatementType.static classStatement.UpdatePolicyPolicies for creating / updating default scripts.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIGURATION_QUALIFIERThe Constant CONFIGURATION_QUALIFIER.static java.lang.StringCONFIGURATION_VERSIONThe Constant CONFIGURATION_VERSION.static java.lang.StringNO_IDENTIFIERThe Constant NO_IDENTIFIER.
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<java.lang.Class<?>>getActionClasses(boolean includeObsolete)Gets the action classes.static java.util.List<com.priint.pubserver.comet.entity.statement.Statement.ActionInfo>getActionInfos()Gets the action infos.static java.util.List<Statement.StatementDescriptor>getActionTypes()Gets the action types.static java.lang.StringgetHTMLFragment()Gets the HTML fragment.static java.util.List<Statement.StatementDescriptor>getObsoleteActionTypes()Gets the obsolete action types.static Statement.StatementDescriptorgetStatementDescriptorByClass(java.lang.Class<?> scriptClass)Gets the statement descriptor by class.static Statement.StatementDescriptorgetStatementDescriptorByTypeIdOrClassId(int classId, int typeId)Get the statement descriptor for a (nearly) arbitrary script, such as layout rules, panel scripts, placeholder scripts etc.static voidmain(java.lang.String[] args)The main method.static java.lang.StringshortInfo(Statement.StatementDescriptor sd)Short info.
-
-
-
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
-
-
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 idtypeId- 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
-
getActionTypes
public static java.util.List<Statement.StatementDescriptor> getActionTypes()
Gets the action types.- Returns:
- the action types
-
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
-
-