KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > content > NodeOperationResult


1 package org.jahia.content;
2
3 /**
4  * <p>Title: This class contains the result of an operation on a node.</p>
5  * <p>Description: This class is usually used in conjunction with the
6  * TreeOperationResult. The latter contains classes of this type (or of a
7  * child class), that describes a specific result for a node.</p>
8  * <p>Copyright: Copyright (c) 2002</p>
9  * <p>Company: </p>
10  * @author Serge Huber
11  * @version 1.0
12  */

13
14 public class NodeOperationResult {
15     private ObjectKey nodeKey;
16     private String JavaDoc languageCode;
17     private String JavaDoc comment;
18
19     /**
20      * Constructor for the result.
21      * @param nodeKey a valid ObjectKey instance that represents the node for
22      * which we are creating the result.
23      * @param languageCode the language for which this result is given
24      * @param comment the text describing the result, or a resource bundle key
25      * to use for internationalization.
26      * @throws ClassNotFoundException thrown if the object type is not
27      * recognized by Jahia
28      * @see org.jahia.content.ObjectKey
29      */

30     public NodeOperationResult (ObjectKey nodeKey, String JavaDoc languageCode,
31                                 String JavaDoc comment) {
32         this.nodeKey = nodeKey;
33         this.languageCode = languageCode;
34         this.comment = comment;
35     }
36
37     public ObjectKey getNodeKey() {
38         return nodeKey;
39     }
40     public String JavaDoc getLanguageCode() {
41         return languageCode;
42     }
43     public String JavaDoc getComment() {
44         return comment;
45     }
46
47 }
Popular Tags