KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > compare > XMLChildren


1 /*******************************************************************************
2  * Copyright (c) 2000, 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 package org.eclipse.pde.internal.ui.compare;
12
13 import java.util.HashMap JavaDoc;
14
15 import org.eclipse.jface.text.IDocument;
16
17 /** XMLNode that has children elements */
18 public class XMLChildren extends XMLNode {
19     
20     public int children; // counts the number of children
21
public HashMap JavaDoc childElements; // maps the name of XML child elements to their # of occurence
22

23     public XMLChildren(String JavaDoc XMLType, String JavaDoc id, String JavaDoc value, String JavaDoc signature, IDocument doc, int start, int length) {
24         super(XMLType, id, value, signature, doc, start, length);
25         children= 0;
26         childElements = new HashMap JavaDoc();
27     }
28 }
29
30
Popular Tags