Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added java doc comments for JavaScript constants (#1882) #1884

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,28 @@
package org.eclipse.birt.data.engine.script;

/**
*
* Default key words of global JavaScript objects
*/

public final class ScriptConstants {

/** constant for object: dataSetRow */
public static final String DATA_SET_ROW_SCRIPTABLE = "dataSetRow";

/** constant for object: row */
public static final String DATA_SET_BINDING_SCRIPTABLE = "row";

/** constant for object: data */
public static final String DATA_BINDING_SCRIPTABLE = "data";

/** constant for object: measure */
public static final String MEASURE_SCRIPTABLE = "measure";

/** constant for object: dimension */
public static final String DIMENSION_SCRIPTABLE = "dimension";

/** constant for object: _outer */
public static final String OUTER_RESULT_KEYWORD = "_outer";

/** constant for object: __rownum */
public static final String ROW_NUM_KEYWORD = "__rownum";
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
*/

public interface IReportItem extends IReportElement {
/**
* Property to handle script constants
*/
ScriptConstants constants = new ScriptConstants();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*/

public interface IReportItem extends IReportElement {
/**
* Property to handle script constants
*/
ScriptConstants constants = new ScriptConstants();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,90 @@
/**
* Constants for script
*/

public class ScriptConstants {

/** property, operator: equal */
public static final String FILTER_OPERATOR_EQ = DesignChoiceConstants.FILTER_OPERATOR_EQ; // $NON-NLS-1$

/** property, operator: not equal */
public static final String FILTER_OPERATOR_NE = DesignChoiceConstants.FILTER_OPERATOR_NE; // $NON-NLS-1$

/** property, operator: lower then */
public static final String FILTER_OPERATOR_LT = DesignChoiceConstants.FILTER_OPERATOR_LT; // $NON-NLS-1$

/** property, operator: lower equal */
public static final String FILTER_OPERATOR_LE = DesignChoiceConstants.FILTER_OPERATOR_LE; // $NON-NLS-1$

/** property, operator: greater equal */
public static final String FILTER_OPERATOR_GE = DesignChoiceConstants.FILTER_OPERATOR_GE; // $NON-NLS-1$

/** property, operator: greater then */
public static final String FILTER_OPERATOR_GT = DesignChoiceConstants.FILTER_OPERATOR_GT; // $NON-NLS-1$

/** property, operator: between */
public static final String FILTER_OPERATOR_BETWEEN = DesignChoiceConstants.FILTER_OPERATOR_BETWEEN; // $NON-NLS-1$

/** property, operator: not between */
public static final String FILTER_OPERATOR_NOT_BETWEEN = DesignChoiceConstants.FILTER_OPERATOR_NOT_BETWEEN; // $NON-NLS-1$

/** property, operator: is null */
public static final String FILTER_OPERATOR_NULL = DesignChoiceConstants.FILTER_OPERATOR_NULL; // $NON-NLS-1$

/** property, operator: is not null */
public static final String FILTER_OPERATOR_NOT_NULL = DesignChoiceConstants.FILTER_OPERATOR_NOT_NULL; // $NON-NLS-1$

/** property, operator: is true */
public static final String FILTER_OPERATOR_TRUE = DesignChoiceConstants.FILTER_OPERATOR_TRUE; // $NON-NLS-1$

/** property, operator: is false */
public static final String FILTER_OPERATOR_FALSE = DesignChoiceConstants.FILTER_OPERATOR_FALSE; // $NON-NLS-1$

/** property, operator: like */
public static final String FILTER_OPERATOR_LIKE = DesignChoiceConstants.FILTER_OPERATOR_LIKE; // $NON-NLS-1$

/** property, operator: top-n */
public static final String FILTER_OPERATOR_TOP_N = DesignChoiceConstants.FILTER_OPERATOR_TOP_N; // $NON-NLS-1$

/** property, operator: botom-n */
public static final String FILTER_OPERATOR_BOTTOM_N = DesignChoiceConstants.FILTER_OPERATOR_BOTTOM_N; // $NON-NLS-1$

/** property, operator: top-percent */
public static final String FILTER_OPERATOR_TOP_PERCENT = DesignChoiceConstants.FILTER_OPERATOR_TOP_PERCENT; // $NON-NLS-1$

/** property, operator: bottom-percent */
public static final String FILTER_OPERATOR_BOTTOM_PERCENT = DesignChoiceConstants.FILTER_OPERATOR_BOTTOM_PERCENT; // $NON-NLS-1$

/** property, operator: not in */
public static final String FILTER_OPERATOR_NOT_IN = DesignChoiceConstants.FILTER_OPERATOR_NOT_IN; // $NON-NLS-1$

/** property, operator: match */
public static final String FILTER_OPERATOR_MATCH = DesignChoiceConstants.FILTER_OPERATOR_MATCH; // $NON-NLS-1$

/** property, operator: not like */
public static final String FILTER_OPERATOR_NOT_LIKE = DesignChoiceConstants.FILTER_OPERATOR_NOT_LIKE; // $NON-NLS-1$

/** property, operator: not match */
public static final String FILTER_OPERATOR_NOT_MATCH = DesignChoiceConstants.FILTER_OPERATOR_NOT_MATCH; // $NON-NLS-1$

/** property, operator: in */
public static final String FILTER_OPERATOR_IN = DesignChoiceConstants.FILTER_OPERATOR_IN; // $NON-NLS-1$


/** property, sort direction: ascending */
public static final String SORT_DIRECTION_ASC = DesignChoiceConstants.SORT_DIRECTION_ASC; // $NON-NLS-1$

/** property, sort direction: descending */
public static final String SORT_DIRECTION_DESC = DesignChoiceConstants.SORT_DIRECTION_DESC; // $NON-NLS-1$

/** property, hyperlink action: none */
public static final String ACTION_LINK_TYPE_NONE = DesignChoiceConstants.ACTION_LINK_TYPE_NONE; // $NON-NLS-1$

/** property, hyperlink action: hyperlink */
public static final String ACTION_LINK_TYPE_HYPERLINK = DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK; // $NON-NLS-1$

/** property, hyperlink action: drill through */
public static final String ACTION_LINK_TYPE_DRILL_THROUGH = DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH; // $NON-NLS-1$
public static final String ACTION_LINK_TYPE_BOOKMARK_LINK = DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK;// $NON-NLS-1$

/** property, hyperlink action: bookmark link */
public static final String ACTION_LINK_TYPE_BOOKMARK_LINK = DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK;// $NON-NLS-1$
}
Loading