org.openmdx.base.cci
Class ContextCapableFilterImpl

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.base.cci.ContextCapableFilterImpl
All Implemented Interfaces:
Serializable, RefFilter_1_0, RefFilter_1_1, ContextCapableFilter, ContextCapableQuery, AnyTypePredicate

public class ContextCapableFilterImpl
extends RefPredicate_1
implements ContextCapableFilter, ContextCapableQuery

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.openmdx.base.accessor.jmi.spi.RefPredicate_1
filter, name, quantor
 
Constructor Summary
ContextCapableFilterImpl(RefPackage_1_0 aPackage)
           
ContextCapableFilterImpl(RefPackage_1_0 aPackage, FilterProperty[] filterProperties, AttributeSpecifier[] attributeSpecifiers)
           
ContextCapableFilterImpl(RefPackage_1_0 aPackage, FilterProperty[] filterProperties, AttributeSpecifier[] attributeSpecifiers, RefFilter_1_0 delegateFilter, Short delegateQuantor, String delegateName)
           
 
Method Summary
 MultivaluedFeaturePredicate context()
          Adds a constraint to the predicate for ContextCapable testing whether the feature context has values or not.
 ContextQuery forAllContext()
          Adds a constraint for the feature context to the predicate.
 void forAllContext(short operator, Collection values)
          Adds a constraint for the attribute context to the filter.
 void forAllContext(short operator, Context[] filterValues)
          Adds a constraint for the attribute context to the filter.
 ContextQuery thereExistsContext()
          Adds a constraint for the feature context to the predicate.
 void thereExistsContext(short operator, Collection values)
          Adds a constraint for the attribute context to the filter.
 void thereExistsContext(short operator, Context[] filterValues)
          Adds a constraint for the attribute context to the filter.
 
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

ContextCapableFilterImpl

public ContextCapableFilterImpl(RefPackage_1_0 aPackage)

ContextCapableFilterImpl

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

ContextCapableFilterImpl

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

forAllContext

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

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

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

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

thereExistsContext

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

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

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

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

forAllContext

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

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

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

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

thereExistsContext

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

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

You can set at most one thereExistsContext or forAllContext constraint for this attribute.

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

context

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

Specified by:
context in interface ContextCapableQuery

thereExistsContext

public ContextQuery thereExistsContext()
Description copied from interface: ContextCapableQuery
Adds a constraint for the feature context to the predicate. The predicate for ContextCapable evaluates true if its value of feature context satisfies the selected condition.

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

Specified by:
thereExistsContext in interface ContextCapableQuery

forAllContext

public ContextQuery forAllContext()
Description copied from interface: ContextCapableQuery
Adds a constraint for the feature context to the predicate. The predicate for ContextCapable evaluates true if its value of feature context satisfies the selected condition.

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

Specified by:
forAllContext in interface ContextCapableQuery


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