org.drools.guvnor.client.common
Class AssetFormats

java.lang.Object
  extended by org.drools.guvnor.client.common.AssetFormats

public class AssetFormats
extends Object

Keeps track of the different rule formats we support. Each format type corresponds to the dublin core "format" attribute. This is used both by the UI, to determine what are valid formats, and also on the server. If you are adding new types they need to be registered here. If an asset type is unknown, then it will be opened with the default editor.


Field Summary
static String BPEL_PACKAGE
          For BPEL
static String BPMN_PROCESS
           
static String BPMN2_PROCESS
           
static String BUSINESS_RULE
          Use the rule modeller
static String[] BUSINESS_RULE_FORMATS
          The following group the assets together for lists, helpers etc...
static String DECISION_SPREADSHEET_XLS
          Use a decision table.
static String DECISION_TABLE_GUIDED
           
static String DOCUMENTATION
           
static String DRL
          Vanilla DRL "file"
static String DRL_MODEL
          For fact models in drl.
static String DSL
          For DSL language grammars
static String DSL_TEMPLATE_RULE
          use a DSL, free text editor
static String ENUMERATION
          Use a data enum.
static String FUNCTION
          For functions
static String MODEL
          For "model" assets
static String PROPERTIES
           
static String RULE_FLOW_RF
          Use a ruleflow.
static String RULE_TEMPLATE
           
static String SPRING_CONTEXT
           
static String TEST_SCENARIO
          For test scenarios.
static String WORKING_SET
           
static String XML
           
static String ZIP
           
 
Constructor Summary
AssetFormats()
           
 
Method Summary
static boolean isPackageDependency(String format)
          Will return true if the given asset format is a package dependency (eg a function, DSL, model etc).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FUNCTION

public static final String FUNCTION
For functions

See Also:
Constant Field Values

BPEL_PACKAGE

public static final String BPEL_PACKAGE
For BPEL

See Also:
Constant Field Values

MODEL

public static final String MODEL
For "model" assets

See Also:
Constant Field Values

DSL

public static final String DSL
For DSL language grammars

See Also:
Constant Field Values

DRL

public static final String DRL
Vanilla DRL "file"

See Also:
Constant Field Values

BUSINESS_RULE

public static final String BUSINESS_RULE
Use the rule modeller

See Also:
Constant Field Values

DSL_TEMPLATE_RULE

public static final String DSL_TEMPLATE_RULE
use a DSL, free text editor

See Also:
Constant Field Values

DECISION_SPREADSHEET_XLS

public static final String DECISION_SPREADSHEET_XLS
Use a decision table.

See Also:
Constant Field Values

DECISION_TABLE_GUIDED

public static final String DECISION_TABLE_GUIDED
See Also:
Constant Field Values

RULE_FLOW_RF

public static final String RULE_FLOW_RF
Use a ruleflow.

See Also:
Constant Field Values

BPMN_PROCESS

public static final String BPMN_PROCESS
See Also:
Constant Field Values

BPMN2_PROCESS

public static final String BPMN2_PROCESS
See Also:
Constant Field Values

ENUMERATION

public static final String ENUMERATION
Use a data enum.

See Also:
Constant Field Values

TEST_SCENARIO

public static final String TEST_SCENARIO
For test scenarios.

See Also:
Constant Field Values

DRL_MODEL

public static final String DRL_MODEL
For fact models in drl.

See Also:
Constant Field Values

XML

public static final String XML
See Also:
Constant Field Values

PROPERTIES

public static final String PROPERTIES
See Also:
Constant Field Values

WORKING_SET

public static final String WORKING_SET
See Also:
Constant Field Values

RULE_TEMPLATE

public static final String RULE_TEMPLATE
See Also:
Constant Field Values

DOCUMENTATION

public static final String DOCUMENTATION
See Also:
Constant Field Values

ZIP

public static final String ZIP
See Also:
Constant Field Values

SPRING_CONTEXT

public static final String SPRING_CONTEXT
See Also:
Constant Field Values

BUSINESS_RULE_FORMATS

public static final String[] BUSINESS_RULE_FORMATS
The following group the assets together for lists, helpers etc...

Constructor Detail

AssetFormats

public AssetFormats()
Method Detail

isPackageDependency

public static boolean isPackageDependency(String format)
Will return true if the given asset format is a package dependency (eg a function, DSL, model etc). Package dependencies are needed before the package is validated, and any rule assets are processed.



Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.