Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
WildCAT: A Generic Framework for Context-Aware Applications. Copyright (C) 2008 Bull S.A.S. Copyright (C) 2008 EMN Contact: This library is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Authors: - Pierre-Charles David (initial) - Nicolas Loriant -------------------------------------------------------------------------- $Id: 350 2008-11-10 09:41:14Z loris $ --------------------------------------------------------------------------
 package org.ow2.wildcat.event;
WHierarchyEvent holds events related to the context hierarchy changes.
 public class WHierarchyEvent extends WEvent implements WEventInterface {

Id for serializable class.
     private static final long serialVersionUID = 8748148191888782826L;

The type of operation
     protected Type type;

The object of the operation (ie: a resource or an attribute name)
     protected String target;


source location at which the event was fired
type the type of change in the hierarchy
target the object of the change
     public WHierarchyEvent(final Path sourcefinal Type typefinal String target) {
         this. = type;
         this. = target;


the type of change in the hierarchy
     public Type getType() {
         return this.;


the subject of the event
     public String getTarget() {
         return this.;
      * (non-Javadoc)
      * @see java.lang.Object#toString()
     public String toString() {
         return super.toString() + ": " + this..toString() + " "
         + this.;

The types of events
    public enum Type {
New to GrepCode? Check out our FAQ X