| 
 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||
public Object accumulate(Object element, Object acc) for each
 element of  The Accumulator class is the general class for visiting a collection
 while passing some object to the next element.
 
 
 The Accumulator class is the general class for visiting a collection
 while passing some object to the next element.and of a number
 of other predicates.
  For efficiency reasons, the conditional and will be computed.
 
 For efficiency reasons, the conditional and will be computed. Different filters can be applied to a collection consecutively.
 
 Different filters can be applied to a collection consecutively.ChainNotifier chains instances of this type.public Object mapping(Object)
 on all elements in public void visit(Object)
 on public void visit(Object)
 on the multi-dimensional object array public void visit(Object)
 on public Object mapping(Object)
 on public void visit(Object)
 on public void visit(Object)
 on all elements reachable from public void visit(Object)
 on public void visit(Object)
 on all elements reachable from public void visit(Object)
 on public void visit(Object)
 on R * x = b
FilePredicates that need a base directory
 in order to be used conveniently.
 
    
 
 
 public Set getConnectedNodes(Object node).
public Set getConnectedNodes(Object node).

true.
 A convenience accumulator of collections that checks 
 elements of a collection satisfy the criterion defined in
 
 A convenience accumulator of collections that checks 
 elements of a collection satisfy the criterion defined in 
 public boolean criterion(Object element).
 As with the accumulator, this class can best be used as an anonymous
 inner class, as shown below.
 
 int number = new Counter() {
                public boolean criterion(Object element) {
                  // criterion code
                }
              }.in(collection);
 public boolean criterion(Object)
 on true.
getObject().
 
eventType are considered
   valid.
 If your notifier only accepts non-null events of type
   eventType as valid events, you can simply model implement
   this type to inherit that contract.true from this FileSet.
true for
 a file in order to be excluded in this FileSet.
 
 If you modify the predicates in the returned Or, the behavior
 of this FileSet will also change because we cannot perform a deep clone without
 forcing all predicates to implement clone(), which is too much of
 a burden.
 A convenience accumulator of collections that checks whether some
 element of a collection satisfies the criterion defined in the abstract 
 method
 
 A convenience accumulator of collections that checks whether some
 element of a collection satisfies the criterion defined in the abstract 
 method public boolean criterion(Object element).
 As with Accumulator, this class can best be used as an anonymous
 inner class.
boolean bool =
  new Exists() {
       /oo
         o also public behavior
         o
         o post (* additional precondition for criterion method *)
         o
         o public model boolean isValidElement(Object element);
         o/
       /oo
         o also public behavior
         o
         o post \result == ((MyType)element.someProperty() ...)
         o/
        public boolean criterion(Object element) {
          // criterion code
        }
      }.in(collection);
true.
java.util.Comparator.java.io.File.
 
    
 false for 
 eval()
 
  A pattern consists of a sequence of primitive patterns separated by
 
 A pattern consists of a sequence of primitive patterns separated by File.separator. All FilePredicates will return
 
 All FilePredicates will return false if the argument passed to 
 eval() is not a
 File. A FileSet represents a set of files which satisfy certain
 criteria.
 
 A FileSet represents a set of files which satisfy certain
 criteria.or of 0 predicates is false,
 the new FileSet will initially be empty.
 A FileSetPredicate allows a FileSet to limit the set of directories to process.
 
 A FileSetPredicate allows a FileSet to limit the set of directories to process. 
 false
 from the given collection.
 If you want to remove all object for which this Predicate evaluates
 to true, wrap a Not predicate around this predicate, and
 perform the filter using that predicate.
#notifyEventListener(EventListener, EventObject) on all
   listeners with the given event.
 The model inspector {#isValidListener(EventListener)} can be
   used to transport information about the registered listeners, thru
   this method, to the actual dispatch method in
    A convenience accumulator of collections that checks whether all
 elements of a collection satisfy the criterion defined in the abstract 
 method
 
 A convenience accumulator of collections that checks whether all
 elements of a collection satisfy the criterion defined in the abstract 
 method public boolean criterion(Object element).
 As with Accumulator, this class can best be used as an anonymous
 inner class.
boolean bool =
  new ForAll() {
       /oo
         o also public behavior
         o
         o post (* additional precondition for criterion method *)
         o
         o public model boolean isValidElement(Object element);
         o/
       /oo
         o also public behavior
         o
         o post \result == ((MyType)element.someProperty() ...)
         o/
        public boolean criterion(Object element) {
          // criterion code
        }
      }.in(collection);
true 
 for all object in the given collection.
L * x = b
Object.
 If 
public boolean accumulate(Object element, boolean acc) for each
 element of public int accumulate(Object element, int acc) for each
 element of true in this FileSet.
true for
 a file in order to be included in this FileSet.
 
 If you modify the predicates in the returned Or, the behavior
 of this FileSet will also change because we cannot perform a deep clone without
 forcing all predicates to implement clone(), which is too much of
 a burden.
listenerType.
TestCase class.
 
    This class adds revision checking to junit tests.
 
 This class adds revision checking to junit tests.listenerType are considered valid. 
  Mappings exchange an element for another element,
 calculated based on the original element.
 
 Mappings exchange an element for another element,
 calculated based on the original element.eval()
 as false.
  Note that if you wrap a NegationAsFailure object in another predicate,
 you will not get the same result as when switching the wrapping predicate
 and the NegationAsFailure.
 Note that if you wrap a NegationAsFailure object in another predicate,
 you will not get the same result as when switching the wrapping predicate
 and the NegationAsFailure.
EventSourceSupport fires
   events.listenerType with
   notifyEventListener(EventListener, EventObject).
null.
 
null is valid as event.
 If your notifier only accepts null as valid events,
   you can simply model implement this type to inherit that contract.or of a number
 of other predicates.
  For efficiency reasons, the conditional
 For efficiency reasons, the conditional or will be 
 computed.true or false.jregex.Pattern interface to the 
 java.util.regex.Pattern interface.
 
 
    
  A PatternPredicate can optionally "contain" another predicate, so it can be used in filesets.
 
 A PatternPredicate can optionally "contain" another predicate, so it can be used in filesets.true or 
 false for an object.
  The Predicate class is actually an implementation of the Strategy 
 pattern.
 The Predicate class is actually an implementation of the Strategy 
 pattern. Since a primitive predicate does not contain any subpredicates, this
 abstract class implements
 Since a primitive predicate does not contain any subpredicates, this
 abstract class implements 
 nbSubPredicates() 
 and getSubPredicates().
 Typically, this class will be used as an anonymous inner class as follows:
 
Predicate myPredicate = new PrimitivePredicate() {
       /oo
        o also public behavior
        o
        o post postcondition;
        o/
       public boolean eval(Object o) throws MyException {
         //calculate boolean value
         //using the given object
       }
   };
  This class implements the
 This class implements the 
 nbSubPredicates() 
 and getSubPredicates()
 methods for predicates that don't contain any sub predicates. In UML this class is used for implementing multiplicity 1:
 In UML this class is used for implementing multiplicity 1:
  In Java, you get the following situation.
 In Java, you get the following situation.
  Note that the question mark is represented by a
 Note that the question mark is represented by a Relation object since
 we don't know its multiplicity. For example, it can replace a regular expression in a file and write the output to another file.
 At this moment, we use JRegex instead of jdk 1.4 regular expressions
 because:
 
 	The 1.4 jdk is not yet available on all major platforms.
 	The current 1.4 JVM is anything but stable on e.g.
 
 For example, it can replace a regular expression in a file and write the output to another file.
 At this moment, we use JRegex instead of jdk 1.4 regular expressions
 because:
 
 	The 1.4 jdk is not yet available on all major platforms.
 	The current 1.4 JVM is anything but stable on e.g. This class provides the general interface that is needed in order to create different types 
 of bindings that can be created by taking two arbitrary multiplicities.
 This class provides the general interface that is needed in order to create different types 
 of bindings that can be created by taking two arbitrary multiplicities.public boolean criterion(Object)
 on the given collection.
O(log(n))
 behavior for 
 add() and
 remove()SkipList based priority queue Do not register this SliderControlledLabel more than once with
 getSlider().
 
 Do not register this SliderControlledLabel more than once with
 getSlider().true for this FilePredicate.
 All files that can make this FilePredicate true will
 be in one of the returned directories.
 
  If your predicate don't throw exceptions, you should subclass 
 TotalPredicate.
 If your predicate don't throw exceptions, you should subclass 
 TotalPredicate. Objects of this class calculate the transitive closure of a graph,
 defined by
 
Objects of this class calculate the transitive closure of a graph,
 defined by public Set getConnectedNodes(Object node),
 starting from a set of nodes or a single start node.true for 
 eval()
ChainNotifier will be used in the case
   where the EventSourceSupport contains listeners of
   different types, or when different call-back methods of the
   listeners need to be called depending on the type of the event
   fired. This filter uses the type of elements of the filtered collection as criterium.
 
 This filter uses the type of elements of the filtered collection as criterium. This class is typically used as follows:
 This class is typically used as follows:
 
 TotalPredicate predicate = new TypePredicate(MyClass.class);
 
 When a TypePredicate is used as a constant in an interface,
 the .class operator will return null, so in that 
 case you must pass the name of the class as a String:
 
 TotalPredicate predicate = new TypePredicate("mypackage.MyClass");
  Visitor
 
 The Visitor class is a
 replacement for the
 
 
 Visitor
 
 The Visitor class is a
 replacement for the java.util.Iterator class that allows a
 programmer to perform a certain action on all elements of a collection.xor of two
 other predicates.
 
| 
 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||