org.jacorb.notification.filter
Class MappingFilterImpl

java.lang.Object
  extended by org.jacorb.notification.filter.MappingFilterImpl
All Implemented Interfaces:
GCDisposable, NotifyingDisposable, MappingFilterOperations, org.picocontainer.Disposable

public class MappingFilterImpl
extends java.lang.Object
implements GCDisposable, MappingFilterOperations

Version:
$Id: MappingFilterImpl.java,v 1.6 2009-05-03 21:34:47 andre.spiegel Exp $
Author:
Alphonse Bendt

Constructor Summary
MappingFilterImpl(ORB orb, org.jacorb.config.Configuration config, AbstractFilter filter, Any defaultValue)
           
 
Method Summary
 Object activate()
           
 MappingConstraintInfo[] add_mapping_constraints(MappingConstraintPair[] mcp)
           
 void attemptDispose()
           
 java.lang.String constraint_grammar()
           
 Any default_value()
           
 void destroy()
           
 void dispose()
           
 MappingConstraintInfo[] get_all_mapping_constraints()
           
 MappingConstraintInfo[] get_mapping_constraints(int[] constraintIds)
           
 boolean match_structured(StructuredEvent structuredEvent, AnyHolder anyHolder)
           
 boolean match_typed(Property[] propertyArray, AnyHolder anyHolder)
           
 boolean match(Any any, AnyHolder anyHolder)
           
 void modify_mapping_constraints(int[] intArray, MappingConstraintInfo[] mappingConstraintInfos)
           
 void registerDisposable(Disposable d)
          the hooks registered by this method will be run when dispose is called.
 void remove_all_mapping_constraints()
           
 TypeCode value_type()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingFilterImpl

public MappingFilterImpl(ORB orb,
                         org.jacorb.config.Configuration config,
                         AbstractFilter filter,
                         Any defaultValue)
Method Detail

activate

public Object activate()

destroy

public void destroy()
Specified by:
destroy in interface MappingFilterOperations

dispose

public void dispose()
Specified by:
dispose in interface org.picocontainer.Disposable

constraint_grammar

public java.lang.String constraint_grammar()
Specified by:
constraint_grammar in interface MappingFilterOperations

value_type

public TypeCode value_type()
Specified by:
value_type in interface MappingFilterOperations

default_value

public Any default_value()
Specified by:
default_value in interface MappingFilterOperations

add_mapping_constraints

public MappingConstraintInfo[] add_mapping_constraints(MappingConstraintPair[] mcp)
                                                throws InvalidValue,
                                                       InvalidConstraint
Specified by:
add_mapping_constraints in interface MappingFilterOperations
Throws:
InvalidValue
InvalidConstraint

modify_mapping_constraints

public void modify_mapping_constraints(int[] intArray,
                                       MappingConstraintInfo[] mappingConstraintInfos)
                                throws ConstraintNotFound,
                                       InvalidValue,
                                       InvalidConstraint
Specified by:
modify_mapping_constraints in interface MappingFilterOperations
Throws:
ConstraintNotFound
InvalidValue
InvalidConstraint

get_mapping_constraints

public MappingConstraintInfo[] get_mapping_constraints(int[] constraintIds)
                                                throws ConstraintNotFound
Specified by:
get_mapping_constraints in interface MappingFilterOperations
Throws:
ConstraintNotFound

get_all_mapping_constraints

public MappingConstraintInfo[] get_all_mapping_constraints()
Specified by:
get_all_mapping_constraints in interface MappingFilterOperations

remove_all_mapping_constraints

public void remove_all_mapping_constraints()
Specified by:
remove_all_mapping_constraints in interface MappingFilterOperations

match

public boolean match(Any any,
                     AnyHolder anyHolder)
              throws UnsupportedFilterableData
Specified by:
match in interface MappingFilterOperations
Throws:
UnsupportedFilterableData

match_structured

public boolean match_structured(StructuredEvent structuredEvent,
                                AnyHolder anyHolder)
                         throws UnsupportedFilterableData
Specified by:
match_structured in interface MappingFilterOperations
Throws:
UnsupportedFilterableData

match_typed

public boolean match_typed(Property[] propertyArray,
                           AnyHolder anyHolder)
                    throws UnsupportedFilterableData
Specified by:
match_typed in interface MappingFilterOperations
Throws:
UnsupportedFilterableData

attemptDispose

public void attemptDispose()
Specified by:
attemptDispose in interface GCDisposable

registerDisposable

public void registerDisposable(Disposable d)
Description copied from interface: NotifyingDisposable
the hooks registered by this method will be run when dispose is called.

Specified by:
registerDisposable in interface NotifyingDisposable