|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.hyades.ui.internal.filters.BasicFeatureFilterAttribute
public class BasicFeatureFilterAttribute
Constructs a basic filter attribute for the advanved tab for view filters. Values entered can be separated with '|' characters, to mean OR. So Package_name() may be the feature given with relational operators = and like, these will displayed. A user could then enter [feature] [=] [A | B] and this will handle it as feature == A || feature == B.
| Field Summary | |
|---|---|
protected java.lang.String |
_displayText
|
protected org.eclipse.emf.ecore.EStructuralFeature |
_feature
|
protected java.lang.String |
_id
|
protected org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators[] |
_operators
|
protected boolean |
_useNotLikeOperator
|
static java.lang.String |
OR_SEPARATOR
|
| Constructor Summary | |
|---|---|
BasicFeatureFilterAttribute(java.lang.String id,
java.lang.String displayText,
org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators[] operators,
boolean useNotLikeOperator)
The contstructor, initializes an object of this type. |
|
| Method Summary | |
|---|---|
java.lang.String |
defaultValue()
|
java.lang.String |
displayText()
|
org.eclipse.emf.ecore.EStructuralFeature |
feature()
|
protected java.lang.String |
getDisplayValue(java.lang.String value)
Returns the display value from the given value. |
static org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators |
getOperator(java.lang.String operator)
Get the RelationalOperator for the given operator String |
java.lang.String |
getOperator(org.eclipse.hyades.models.hierarchy.extensions.WhereExpression whereExpression)
|
static java.lang.String |
getOperatorString(org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators operator)
Get the operator String for the given RelationalOperators |
protected org.eclipse.hyades.models.hierarchy.extensions.WhereExpression |
getSubWhereExpression(org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators operator,
java.lang.String value,
boolean notExpression)
|
java.lang.String |
getValue(org.eclipse.hyades.models.hierarchy.extensions.WhereExpression whereExpression)
|
protected java.lang.String |
getValueFromDisplayValue(java.lang.String value)
Returns the value from the given entered display value |
protected java.lang.String[] |
getValues(java.lang.String valuesStr)
Returns the set of values separated by OR separators ('|'). |
org.eclipse.hyades.models.hierarchy.extensions.WhereExpression |
getWhereExpression(java.lang.String operator,
java.lang.String value)
|
java.lang.String |
id()
|
java.lang.String[] |
operators()
|
java.lang.String |
validate(java.lang.String operator,
java.lang.String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String OR_SEPARATOR
protected java.lang.String _id
protected java.lang.String _displayText
protected org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators[] _operators
protected org.eclipse.emf.ecore.EStructuralFeature _feature
protected boolean _useNotLikeOperator
| Constructor Detail |
|---|
public BasicFeatureFilterAttribute(java.lang.String id,
java.lang.String displayText,
org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators[] operators,
boolean useNotLikeOperator)
id - String The unique id for the advanced tab associated with this attribute.displayText - String The text displayed in the attribute tab.feature - EStructuralFeature The feature that we filter by in this attribute.operators - RelationalOperators[] The list of relational operators that will be displayed in the advanced tab.useNotLikeOperator - Whether to show a "Not like" operator or not.| Method Detail |
|---|
public org.eclipse.emf.ecore.EStructuralFeature feature()
public java.lang.String id()
id in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.id()public java.lang.String displayText()
displayText in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.displayText()
public java.lang.String validate(java.lang.String operator,
java.lang.String value)
validate in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.validate(String, String)public java.lang.String[] operators()
operators in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.operators()protected java.lang.String getValueFromDisplayValue(java.lang.String value)
protected org.eclipse.hyades.models.hierarchy.extensions.WhereExpression getSubWhereExpression(org.eclipse.emf.ecore.EStructuralFeature feature,
org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators operator,
java.lang.String value,
boolean notExpression)
public org.eclipse.hyades.models.hierarchy.extensions.WhereExpression getWhereExpression(java.lang.String operator,
java.lang.String value)
getWhereExpression in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.getWhereExpression(String, String)protected java.lang.String getDisplayValue(java.lang.String value)
public java.lang.String getValue(org.eclipse.hyades.models.hierarchy.extensions.WhereExpression whereExpression)
getValue in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.getValue(WhereExpression)public java.lang.String getOperator(org.eclipse.hyades.models.hierarchy.extensions.WhereExpression whereExpression)
getOperator in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.getOperator(WhereExpression)public java.lang.String defaultValue()
defaultValue in interface org.eclipse.hyades.ui.filters.IFilterAttributeIFilterAttribute.defaultValue()protected java.lang.String[] getValues(java.lang.String valuesStr)
valuesStr -
public static org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators getOperator(java.lang.String operator)
operator -
public static java.lang.String getOperatorString(org.eclipse.hyades.models.hierarchy.extensions.RelationalOperators operator)
operator -
|
TPTP 4.6.0 Platform Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||