Home | History | Annotate | Download | only in domts
      1 /*
      2  * Copyright (c) 2004 World Wide Web Consortium, (Massachusetts Institute of
      3  * Technology, Institut National de Recherche en Informatique et en
      4  * Automatique, Keio University). All Rights Reserved. This program is
      5  * distributed under the W3C's Software Intellectual Property License. This
      6  * program is distributed in the hope that it will be useful, but WITHOUT ANY
      7  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
      8  * FOR A PARTICULAR PURPOSE. See W3C License
      9  * http://www.w3.org/Consortium/Legal/ for more details.
     10  */
     11 
     12 package org.w3c.domts;
     13 
     14 import org.w3c.dom.Node;
     15 
     16 /**
     17  * This class captures the parameters to one invocation of
     18  * UserDataHandler.handle.
     19  *
     20  */
     21 public class UserDataNotification {
     22   private final short operation;
     23   private final String key;
     24   private final Object data;
     25   private final Node src;
     26   private final Node dst;
     27 
     28   /**
     29    * Public constructor
     30    *
     31    */
     32   public UserDataNotification(short operation,
     33                               String key,
     34                               Object data,
     35                               Node src,
     36                               Node dst) {
     37     this.operation = operation;
     38     this.key = key;
     39     this.data = data;
     40     this.src = src;
     41     this.dst = dst;
     42   }
     43 
     44   /**
     45    * Get value of operation parameter
     46    *
     47    * @return value of operation parameter
     48    */
     49   public final short getOperation() {
     50     return operation;
     51   }
     52 
     53   /**
     54    * Gets value of key parameter
     55    *
     56    * @return value of key parameter
     57    */
     58   public final String getKey() {
     59     return key;
     60   }
     61 
     62   /**
     63    * Gets value of data parameter
     64    *
     65    * @return value of data parameter
     66    */
     67   public final Object getData() {
     68     return data;
     69   }
     70 
     71   /**
     72    * Gets value of src parameter
     73    *
     74    * @return value of src parameter
     75    */
     76   public final Node getSrc() {
     77     return src;
     78   }
     79 
     80   /**
     81    * Gets value of dst parameter
     82    *
     83    * @return value of dst parameter
     84    */
     85   public final Node getDst() {
     86     return dst;
     87   }
     88 }
     89