Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.common.notices
Class Notices  view Notices download Notices.java

java.lang.Object
  extended bycom.aendvari.common.notices.Notices

public class Notices
extends java.lang.Object

Provides a container for a hierarchy of notices.

Uses an com.aendvari.common.osm.Osm to hold Notice objects based on their key.


Field Summary
protected  com.aendvari.common.osm.Osm notices
          The OSM for holding all notices.
 
Constructor Summary
Notices()
          Constructs a Notices instance.
 
Method Summary
 void addNotice(java.lang.String path, Notice notice)
          Add a Notice object at the given path.
 void addNotice(java.lang.String path, java.lang.String name, Notice notice)
          Add a Notice object with the specified name at the given path.
private  void getNotices(java.util.Collection noticesNodes, java.util.Collection noticeObjects, boolean recursive)
          Retrieve a Collection of Notice objects found at the given path.
 java.util.Collection getNotices(java.lang.String path)
          Retrieve a Collection of Notice objects found at the given path.
 java.util.Collection getNotices(java.lang.String path, boolean recursive)
          Retrieve a Collection of Notice objects found at the given path.
private  void removeNotices(java.util.Collection noticesNodes, boolean recursive)
          Removes all Notice objects found at the given path.
 void removeNotices(java.lang.String path)
          Removes all Notice objects found at the given path.
 void removeNotices(java.lang.String path, boolean recursive)
          Removes all Notice objects found at the given path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notices

protected com.aendvari.common.osm.Osm notices
The OSM for holding all notices.

Constructor Detail

Notices

public Notices()
Constructs a Notices instance.

Method Detail

addNotice

public void addNotice(java.lang.String path,
                      java.lang.String name,
                      Notice notice)
Add a Notice object with the specified name at the given path.


addNotice

public void addNotice(java.lang.String path,
                      Notice notice)
Add a Notice object at the given path.


removeNotices

public void removeNotices(java.lang.String path,
                          boolean recursive)
Removes all Notice objects found at the given path.


removeNotices

public void removeNotices(java.lang.String path)
Removes all Notice objects found at the given path. Non-recursive.


removeNotices

private void removeNotices(java.util.Collection noticesNodes,
                           boolean recursive)
Removes all Notice objects found at the given path.


getNotices

public java.util.Collection getNotices(java.lang.String path,
                                       boolean recursive)
Retrieve a Collection of Notice objects found at the given path.


getNotices

public java.util.Collection getNotices(java.lang.String path)
Retrieve a Collection of Notice objects found at the given path. Non-recursive.


getNotices

private void getNotices(java.util.Collection noticesNodes,
                        java.util.Collection noticeObjects,
                        boolean recursive)
Retrieve a Collection of Notice objects found at the given path.