<FILTER> : Filter

Java class : leon.info.LyFilter

ROLE

This element describes a filter that may be applied to data of the application. This filter has a type: 'AND' filter (data should meet all the filtering conditions) or 'OR' filter (data should meet at least one of the filtering condition).
A filter may have a name, a short name, and a list of marks, specific data and a help section. A filter contains also a list of filtering conditions that may be simple filter expressions or sub-filters.

ATTRIBUTES

<!ATTLIST FILTER
	  id ID #IMPLIED
	  template IDREF #IMPLIED
	  type ( AND | OR) "AND">
Attribute Mand. Description Default
id no Identifier of the filter.  
template no Reference to the filter used as pattern.  
type no Filter type: 'AND' or 'OR'. The default type is 'AND'. AND

ELEMENTS

<!ELEMENT FILTER 
	  ((EXP | FILTER | FILTER_REF | FILTER_RELATION | FILTER_CRITERIA | FILTER_CRITERIA_REF)*,
	   DATA*)>
Element Mand. Mult. Description
EXP yes no Filter expression.
FILTER yes no Sub-filter.
FILTER_REF yes no Reference of a sub-filter.
FILTER_RELATION yes no Filter on relation.
FILTER_CRITERIA yes no Filter criteria.
FILTER_CRITERIA_REF yes no Filter criteria references.
DATA no yes Specific data.

SAMPLE

<FILTER id="action_filter" type='AND'>
	<EXP idref="obj_lock" not='true' condition='EQUALS' value="1"/>
</FILTER>

<FILTER id="alr_cri_and_maj" type='OR'>
	<EXP idref="alr_sev" condition='EQUALS' value="5"/>
	<EXP idref="alr_sev" condition='EQUALS' value="4"/>
</FILTER>

<FILTER id="arl_cri_and_maj_nack" type='AND'>
	<FILTER_REF idref="alr_cri_and_maj"/>
	<EXP id_ref="alr_ack" condition='EQUALS' value="0"/>
</FILTER>