KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > core > builders > ElementOccurrenceResult


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.pde.internal.core.builders;
13
14 import org.eclipse.pde.internal.core.ischema.ISchemaElement;
15 import org.w3c.dom.Element JavaDoc;
16
17 /**
18  * ElementOccurrenceResult
19  *
20  */

21 public class ElementOccurrenceResult {
22
23     private Element fElement;
24     
25     private ISchemaElement fSchemaElement;
26     
27     private int fActualOccurrences;
28     
29     private int fAllowedOccurrences;
30     
31     /**
32      *
33      */

34     public ElementOccurrenceResult(Element element,
35             ISchemaElement schemaElement, int actualOccurrences,
36             int allowedOccurrences) {
37         fElement = element;
38         fActualOccurrences = actualOccurrences;
39         fAllowedOccurrences = allowedOccurrences;
40         fSchemaElement = schemaElement;
41     }
42     
43     /**
44      * @return
45      */

46     public ISchemaElement getSchemaElement() {
47         return fSchemaElement;
48     }
49     
50     /**
51      * @return
52      */

53     public Element getElement() {
54         return fElement;
55     }
56     
57     /**
58      * @return
59      */

60     public int getActualOccurrences() {
61         return fActualOccurrences;
62     }
63     
64     /**
65      * @return
66      */

67     public int getAllowedOccurrences() {
68         return fAllowedOccurrences;
69     }
70     
71 }
72
Popular Tags