ITaskParseStrategy.java :  » IDE-Eclipse » ui » org » eclipse » ui » internal » cheatsheets » composite » parser » Java Open Source

Java Open Source » IDE Eclipse » ui 
ui » org » eclipse » ui » internal » cheatsheets » composite » parser » ITaskParseStrategy.java
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/

package org.eclipse.ui.internal.cheatsheets.composite.parser;

import org.eclipse.ui.internal.cheatsheets.composite.model.AbstractTask;
import org.w3c.dom.Node;

/**
 * Interface which encapsulates the parsing logic specific to different
 * task kinds.
 */

public interface ITaskParseStrategy {

  /**
   * Called before parsing a new set of children
   */
  public void init();
  
  /**
   * Parse a child node of this task
   * @param childNode The child node
   * @param parentNode The task node
   * @param parentTask The task object
   * @param status Used to add error messages.
   * @return True if this element is a valid child
   */
  public boolean parseElementNode(Node childNode, Node parentNode, AbstractTask parentTask, IStatusContainer status);
  
  /**
   * Called afer all the children have been parsed to check for missing children
   */
  public void parsingComplete(AbstractTask parentTask, IStatusContainer status);


}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.