KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.content;
2
3
4 /**
5  * <p>Title: Class used to keep some information status when traversing the Tree.</p>
6  * <p>Copyright: Copyright (c) 2002</p>
7  * <p>Company: </p>
8  * @author Khue Nguyen
9  * @version 1.0
10  */

11
12 public class ContentTreeStatus implements ContentTreeStatusInterface{
13
14     private boolean continueWithNextContentObject = true;
15     private boolean continueWithChilds = true;
16     private boolean continueAfterChilds = true;
17
18     public ContentTreeStatus(){
19     }
20
21     /**
22      * Returns true if we should continue processing the next content object
23      * @return
24      */

25     public boolean continueWithNextContentObject(){
26         return this.continueWithNextContentObject;
27     }
28
29     /**
30      * Change the continue with next content object status
31      * @return
32      */

33     public void setContinueWithNextContentObject(boolean value){
34         this.continueWithNextContentObject = value;
35     }
36
37     /**
38      * Returns true if we should continue after processing all childs
39      * @return
40      */

41     public boolean continueAfterChilds(){
42         return this.continueAfterChilds;
43     }
44
45     /**
46      * Change the continue continueAfterChilds status
47      * @return
48      */

49     public void setContinueAfterChilds(boolean value){
50         this.continueAfterChilds = value;
51     }
52
53     /**
54      * Returns true if we should process the child of the last ContentObject
55      * @return
56      */

57     public boolean continueWithChilds(){
58         return this.continueWithChilds;
59     }
60
61     public void setContinueWithChilds(boolean value){
62         this.continueWithChilds = value;
63     }
64 }
Popular Tags