KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > cheatsheets > composite > parser > ITaskParseStrategy


1 /*******************************************************************************
2  * Copyright (c) 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.ui.internal.cheatsheets.composite.parser;
13
14 import org.eclipse.ui.internal.cheatsheets.composite.model.AbstractTask;
15 import org.w3c.dom.Node JavaDoc;
16
17 /**
18  * Interface which encapsulates the parsing logic specific to different
19  * task kinds.
20  */

21
22 public interface ITaskParseStrategy {
23
24     /**
25      * Called before parsing a new set of children
26      */

27     public void init();
28     
29     /**
30      * Parse a child node of this task
31      * @param childNode The child node
32      * @param parentNode The task node
33      * @param parentTask The task object
34      * @param status Used to add error messages.
35      * @return True if this element is a valid child
36      */

37     public boolean parseElementNode(Node JavaDoc childNode, Node JavaDoc parentNode, AbstractTask parentTask, IStatusContainer status);
38     
39     /**
40      * Called afer all the children have been parsed to check for missing children
41      */

42     public void parsingComplete(AbstractTask parentTask, IStatusContainer status);
43
44
45 }
46
Popular Tags