1 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 ; 16 17 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 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 46 public ISchemaElement getSchemaElement() { 47 return fSchemaElement; 48 } 49 50 53 public Element getElement() { 54 return fElement; 55 } 56 57 60 public int getActualOccurrences() { 61 return fActualOccurrences; 62 } 63 64 67 public int getAllowedOccurrences() { 68 return fAllowedOccurrences; 69 } 70 71 } 72 | Popular Tags |