org.openmdx.filter1.cci
Class BooleanPropertyFilterImpl

java.lang.Object
  extended by org.openmdx.base.accessor.jmi.spi.RefFilter_1
      extended by org.openmdx.base.accessor.jmi.spi.RefPredicate_1
          extended by org.openmdx.filter1.cci.BooleanPropertyFilterImpl
All Implemented Interfaces:
Serializable, RefFilter_1_0, RefFilter_1_1, BooleanPropertyFilter, PropertyFilter, BooleanPropertyQuery, PropertyQuery, AnyTypePredicate

public class BooleanPropertyFilterImpl
extends RefPredicate_1
implements BooleanPropertyFilter, BooleanPropertyQuery

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmdx.base.accessor.jmi.spi.RefPredicate_1
filter, name, quantor
 
Constructor Summary
BooleanPropertyFilterImpl(RefPackage_1_0 aPackage)
           
BooleanPropertyFilterImpl(RefPackage_1_0 aPackage, FilterProperty[] filterProperties, AttributeSpecifier[] attributeSpecifiers)
           
BooleanPropertyFilterImpl(RefPackage_1_0 aPackage, FilterProperty[] filterProperties, AttributeSpecifier[] attributeSpecifiers, RefFilter_1_0 delegateFilter, Short delegateQuantor, String delegateName)
           
 
Method Summary
 void forAllName(short operator, Collection values)
          Adds a constraint for the attribute name to the filter.
 void forAllName(short operator, String[] filterValues)
          Adds a constraint for the attribute name to the filter.
 void forAllOperator(short operator, Collection values)
          Adds a constraint for the attribute operator to the filter.
 void forAllOperator(short operator, short[] filterValues)
          Adds a constraint for the attribute operator to the filter.
 void forAllQuantor(short operator, Collection values)
          Adds a constraint for the attribute quantor to the filter.
 void forAllQuantor(short operator, short[] filterValues)
          Adds a constraint for the attribute quantor to the filter.
 BooleanTypePredicate forAllValue()
          Adds a constraint for the feature value to the predicate.
 void forAllValue(short operator, boolean[] filterValues)
          Adds a constraint for the attribute value to the filter.
 void forAllValue(short operator, Collection values)
          Adds a constraint for the attribute value to the filter.
 StringTypePredicate name()
          Adds a constraint for the feature name to the predicate.
 ComparableTypePredicate operator()
          Adds a constraint for the feature operator to the predicate.
 SimpleTypeOrder orderByName()
          Allows to adds a sort instruction for Property depending the feature name Note: The order in which orderBy… instructions are given is relevant!
 void orderByName(short order)
          Specifies the sort order of all the instances that match the filter criteria.
 SimpleTypeOrder orderByOperator()
          Allows to adds a sort instruction for Property depending the feature operator Note: The order in which orderBy… instructions are given is relevant!
 void orderByOperator(short order)
          Specifies the sort order of all the instances that match the filter criteria.
 SimpleTypeOrder orderByQuantor()
          Allows to adds a sort instruction for Property depending the feature quantor Note: The order in which orderBy… instructions are given is relevant!
 void orderByQuantor(short order)
          Specifies the sort order of all the instances that match the filter criteria.
 MultivaluedTypeOrder orderByValue()
          Allows to adds a sort instruction for BooleanProperty depending the feature value Note: The order in which orderBy… instructions are given is relevant!
 void orderByValue(short order)
          Specifies the sort order of all the instances that match the filter criteria.
 ComparableTypePredicate quantor()
          Adds a constraint for the feature quantor to the predicate.
 void thereExistsName(short operator, Collection values)
          Adds a constraint for the attribute name to the filter.
 void thereExistsName(short operator, String[] filterValues)
          Adds a constraint for the attribute name to the filter.
 void thereExistsOperator(short operator, Collection values)
          Adds a constraint for the attribute operator to the filter.
 void thereExistsOperator(short operator, short[] filterValues)
          Adds a constraint for the attribute operator to the filter.
 void thereExistsQuantor(short operator, Collection values)
          Adds a constraint for the attribute quantor to the filter.
 void thereExistsQuantor(short operator, short[] filterValues)
          Adds a constraint for the attribute quantor to the filter.
 BooleanTypePredicate thereExistsValue()
          Adds a constraint for the feature value to the predicate.
 void thereExistsValue(short operator, boolean[] filterValues)
          Adds a constraint for the attribute value to the filter.
 void thereExistsValue(short operator, Collection values)
          Adds a constraint for the attribute value to the filter.
 MultivaluedFeaturePredicate value()
          Adds a constraint to the predicate for BooleanProperty testing whether the feature value has values or not.
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefPredicate_1
elementOf, elementOf, equalTo, notAnElementOf, notAnElementOf, notEqualTo, refAddValue
 
Methods inherited from class org.openmdx.base.accessor.jmi.spi.RefFilter_1
clear, refAddValue, refAddValue, refAddValue, refAddValue, refAddValue, refAddValue, refGetAttributeSpecifiers, refGetFilterProperties, refGetOrder, refGetOrder, refGetPredicate, refGetPredicate, refGetPredicate, refGetPredicate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.openmdx.base.accessor.jmi.cci.RefFilter_1_0
clear, refAddValue, refAddValue, refAddValue, refGetAttributeSpecifiers, refGetFilterProperties
 
Methods inherited from interface org.w3c.cci2.AnyTypePredicate
elementOf, elementOf, equalTo, notAnElementOf, notAnElementOf, notEqualTo
 

Constructor Detail

BooleanPropertyFilterImpl

public BooleanPropertyFilterImpl(RefPackage_1_0 aPackage)

BooleanPropertyFilterImpl

public BooleanPropertyFilterImpl(RefPackage_1_0 aPackage,
                                 FilterProperty[] filterProperties,
                                 AttributeSpecifier[] attributeSpecifiers)

BooleanPropertyFilterImpl

public BooleanPropertyFilterImpl(RefPackage_1_0 aPackage,
                                 FilterProperty[] filterProperties,
                                 AttributeSpecifier[] attributeSpecifiers,
                                 RefFilter_1_0 delegateFilter,
                                 Short delegateQuantor,
                                 String delegateName)
Method Detail

forAllValue

public void forAllValue(short operator,
                        Collection values)
Description copied from interface: BooleanPropertyFilter
Adds a constraint for the attribute value to the filter. An instance of class BooleanProperty is excluded from the result set unless all its values of attribute value satisfy the given condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the filter condition is met!

You can set at most one thereExistsValue or forAllValue constraint for this attribute.

Specified by:
forAllValue in interface BooleanPropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute value to be compared to.
See Also:
FilterOperators

thereExistsValue

public void thereExistsValue(short operator,
                             Collection values)
Description copied from interface: BooleanPropertyFilter
Adds a constraint for the attribute value to the filter. An instance of class BooleanProperty is excluded from the result set unless at least one of its values of attribute value satisfies the given condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the filter condition is not met!

You can set at most one thereExistsValue or forAllValue constraint for this attribute.

Specified by:
thereExistsValue in interface BooleanPropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute value to be compared to.
See Also:
FilterOperators

forAllValue

public void forAllValue(short operator,
                        boolean[] filterValues)
Description copied from interface: BooleanPropertyFilter
Adds a constraint for the attribute value to the filter. An instance of class BooleanProperty is excluded from the result set unless all its values of attribute value satisfy the given condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the filter condition is met!

You can set at most one thereExistsValue or forAllValue constraint for this attribute.

Specified by:
forAllValue in interface BooleanPropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute value to be compared to.
See Also:
FilterOperators

thereExistsValue

public void thereExistsValue(short operator,
                             boolean[] filterValues)
Description copied from interface: BooleanPropertyFilter
Adds a constraint for the attribute value to the filter. An instance of class BooleanProperty is excluded from the result set unless at least one of its values of attribute value satisfies the given condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the filter condition is not met!

You can set at most one thereExistsValue or forAllValue constraint for this attribute.

Specified by:
thereExistsValue in interface BooleanPropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute value to be compared to.
See Also:
FilterOperators

orderByValue

public void orderByValue(short order)
Description copied from interface: BooleanPropertyFilter
Specifies the sort order of all the instances that match the filter criteria.

Specified by:
orderByValue in interface BooleanPropertyFilter
Parameters:
order - The sort order for this filter.
See Also:
Directions

value

public MultivaluedFeaturePredicate value()
Description copied from interface: BooleanPropertyQuery
Adds a constraint to the predicate for BooleanProperty testing whether the feature value has values or not.

Specified by:
value in interface BooleanPropertyQuery

thereExistsValue

public BooleanTypePredicate thereExistsValue()
Description copied from interface: BooleanPropertyQuery
Adds a constraint for the feature value to the predicate. The predicate for BooleanProperty evaluates true if at least one of its values of feature value satisfies the given condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the predicate evaluates to false!

Specified by:
thereExistsValue in interface BooleanPropertyQuery

forAllValue

public BooleanTypePredicate forAllValue()
Description copied from interface: BooleanPropertyQuery
Adds a constraint for the feature value to the predicate. The predicate for BooleanProperty evaluates true if all of its values of feature value satisfy the selected condition.

Since the multiplicity for this attribute is 0..n, the attribute can have no values in which case the predicate evaluates to true!

Specified by:
forAllValue in interface BooleanPropertyQuery

orderByValue

public MultivaluedTypeOrder orderByValue()
Description copied from interface: BooleanPropertyQuery
Allows to adds a sort instruction for BooleanProperty depending the feature value Note: The order in which orderBy… instructions are given is relevant!

Specified by:
orderByValue in interface BooleanPropertyQuery

forAllName

public void forAllName(short operator,
                       Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute name to the filter. An instance of class Property is excluded from the result set unless its value of attribute name satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllName and thereExistsName for the same arguments.

You can set at most one thereExistsName or forAllName constraint for this attribute.

Specified by:
forAllName in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute name to be compared to.
See Also:
FilterOperators

thereExistsName

public void thereExistsName(short operator,
                            Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute name to the filter. An instance of class Property is excluded from the result set unless its value of attribute name satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllName and thereExistsName for the same arguments.

You can set at most one thereExistsName or forAllName constraint for this attribute.

Specified by:
thereExistsName in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute name to be compared to.
See Also:
FilterOperators

forAllName

public void forAllName(short operator,
                       String[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute name to the filter. An instance of class Property is excluded from the result set unless its value of attribute name satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllName and thereExistsName for the same arguments.

You can set at most one thereExistsName or forAllName constraint for this attribute.

Specified by:
forAllName in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute name to be compared to.
See Also:
FilterOperators

thereExistsName

public void thereExistsName(short operator,
                            String[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute name to the filter. An instance of class Property is excluded from the result set unless its value of attribute name satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllName and thereExistsName for the same arguments.

You can set at most one thereExistsName or forAllName constraint for this attribute.

Specified by:
thereExistsName in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute name to be compared to.
See Also:
FilterOperators

orderByName

public void orderByName(short order)
Description copied from interface: PropertyFilter
Specifies the sort order of all the instances that match the filter criteria.

Specified by:
orderByName in interface PropertyFilter
Parameters:
order - The sort order for this filter.
See Also:
Directions

name

public StringTypePredicate name()
Description copied from interface: PropertyQuery
Adds a constraint for the feature name to the predicate. The predicate for Property evaluates true if its value of feature name satisfies the selected condition.

Specified by:
name in interface PropertyQuery

orderByName

public SimpleTypeOrder orderByName()
Description copied from interface: PropertyQuery
Allows to adds a sort instruction for Property depending the feature name Note: The order in which orderBy… instructions are given is relevant!

Specified by:
orderByName in interface PropertyQuery

forAllOperator

public void forAllOperator(short operator,
                           Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute operator to the filter. An instance of class Property is excluded from the result set unless its value of attribute operator satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllOperator and thereExistsOperator for the same arguments.

You can set at most one thereExistsOperator or forAllOperator constraint for this attribute.

Specified by:
forAllOperator in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute operator to be compared to.
See Also:
FilterOperators

thereExistsOperator

public void thereExistsOperator(short operator,
                                Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute operator to the filter. An instance of class Property is excluded from the result set unless its value of attribute operator satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllOperator and thereExistsOperator for the same arguments.

You can set at most one thereExistsOperator or forAllOperator constraint for this attribute.

Specified by:
thereExistsOperator in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute operator to be compared to.
See Also:
FilterOperators

forAllOperator

public void forAllOperator(short operator,
                           short[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute operator to the filter. An instance of class Property is excluded from the result set unless its value of attribute operator satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllOperator and thereExistsOperator for the same arguments.

You can set at most one thereExistsOperator or forAllOperator constraint for this attribute.

Specified by:
forAllOperator in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute operator to be compared to.
See Also:
FilterOperators

thereExistsOperator

public void thereExistsOperator(short operator,
                                short[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute operator to the filter. An instance of class Property is excluded from the result set unless its value of attribute operator satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllOperator and thereExistsOperator for the same arguments.

You can set at most one thereExistsOperator or forAllOperator constraint for this attribute.

Specified by:
thereExistsOperator in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute operator to be compared to.
See Also:
FilterOperators

orderByOperator

public void orderByOperator(short order)
Description copied from interface: PropertyFilter
Specifies the sort order of all the instances that match the filter criteria.

Specified by:
orderByOperator in interface PropertyFilter
Parameters:
order - The sort order for this filter.
See Also:
Directions

operator

public ComparableTypePredicate operator()
Description copied from interface: PropertyQuery
Adds a constraint for the feature operator to the predicate. The predicate for Property evaluates true if its value of feature operator satisfies the selected condition.

Specified by:
operator in interface PropertyQuery

orderByOperator

public SimpleTypeOrder orderByOperator()
Description copied from interface: PropertyQuery
Allows to adds a sort instruction for Property depending the feature operator Note: The order in which orderBy… instructions are given is relevant!

Specified by:
orderByOperator in interface PropertyQuery

forAllQuantor

public void forAllQuantor(short operator,
                          Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute quantor to the filter. An instance of class Property is excluded from the result set unless its value of attribute quantor satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllQuantor and thereExistsQuantor for the same arguments.

You can set at most one thereExistsQuantor or forAllQuantor constraint for this attribute.

Specified by:
forAllQuantor in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute quantor to be compared to.
See Also:
FilterOperators

thereExistsQuantor

public void thereExistsQuantor(short operator,
                               Collection values)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute quantor to the filter. An instance of class Property is excluded from the result set unless its value of attribute quantor satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllQuantor and thereExistsQuantor for the same arguments.

You can set at most one thereExistsQuantor or forAllQuantor constraint for this attribute.

Specified by:
thereExistsQuantor in interface PropertyFilter
Parameters:
operator - The operator for this filter.
values - The values you want the attribute quantor to be compared to.
See Also:
FilterOperators

forAllQuantor

public void forAllQuantor(short operator,
                          short[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute quantor to the filter. An instance of class Property is excluded from the result set unless its value of attribute quantor satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllQuantor and thereExistsQuantor for the same arguments.

You can set at most one thereExistsQuantor or forAllQuantor constraint for this attribute.

Specified by:
forAllQuantor in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute quantor to be compared to.
See Also:
FilterOperators

thereExistsQuantor

public void thereExistsQuantor(short operator,
                               short[] filterValues)
Description copied from interface: PropertyFilter
Adds a constraint for the attribute quantor to the filter. An instance of class Property is excluded from the result set unless its value of attribute quantor satisfies the given condition.

Since the multiplicity for this attribute is 1..1, there is no difference between the filter methods forAllQuantor and thereExistsQuantor for the same arguments.

You can set at most one thereExistsQuantor or forAllQuantor constraint for this attribute.

Specified by:
thereExistsQuantor in interface PropertyFilter
Parameters:
operator - The operator for this filter.
filterValues - The values you want the attribute quantor to be compared to.
See Also:
FilterOperators

orderByQuantor

public void orderByQuantor(short order)
Description copied from interface: PropertyFilter
Specifies the sort order of all the instances that match the filter criteria.

Specified by:
orderByQuantor in interface PropertyFilter
Parameters:
order - The sort order for this filter.
See Also:
Directions

quantor

public ComparableTypePredicate quantor()
Description copied from interface: PropertyQuery
Adds a constraint for the feature quantor to the predicate. The predicate for Property evaluates true if its value of feature quantor satisfies the selected condition.

Specified by:
quantor in interface PropertyQuery

orderByQuantor

public SimpleTypeOrder orderByQuantor()
Description copied from interface: PropertyQuery
Allows to adds a sort instruction for Property depending the feature quantor Note: The order in which orderBy… instructions are given is relevant!

Specified by:
orderByQuantor in interface PropertyQuery


This software is published under the BSD license. Copyright © 2003-2008, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.