org.openbp.jaspira.decoration
Class ListDecorator

java.lang.Object
  extended by org.openbp.jaspira.decoration.FilteredDecorator
      extended by org.openbp.jaspira.decoration.ListDecorator
All Implemented Interfaces:
Decorator
Direct Known Subclasses:
DebuggerPlugin.BreakPointDecorator

public abstract class ListDecorator
extends FilteredDecorator

The list decorator is backuped by an internal list of qualifying owners. It supports adding and removal of owners.

Author:
Stephan Moritz

Constructor Summary
ListDecorator()
           
 
Method Summary
 void add(java.lang.Object owner)
          Adds an owner to the internal list,
 void clear()
          Clears the owner list.
 boolean isEmpty()
          Checks if the list of owners is empty.
 boolean qualifies(java.lang.Object owner)
          Checks for qualification of an object.
 void remove(java.lang.Object owner)
          Removes an owner from the internal list.
 
Methods inherited from class org.openbp.jaspira.decoration.FilteredDecorator
decorate, doDecorate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDecorator

public ListDecorator()
Method Detail

qualifies

public boolean qualifies(java.lang.Object owner)
Checks for qualification of an object.

Specified by:
qualifies in class FilteredDecorator
Parameters:
owner - Owner of the object. This parameter is passed to the DecorationMgr.decorate(java.lang.Object, java.lang.String, java.lang.Object) method.
Returns:
true If the object is part of the internal list of this decorator.
false If the object doesn't qualify.

add

public void add(java.lang.Object owner)
Adds an owner to the internal list,

Parameters:
owner - Owner to add

remove

public void remove(java.lang.Object owner)
Removes an owner from the internal list.

Parameters:
owner - Owner to remove

clear

public void clear()
Clears the owner list.


isEmpty

public boolean isEmpty()
Checks if the list of owners is empty.



Copyright © 2011. All Rights Reserved.