private static void processObjectMax(ISchemaObject schemaObject, HashSet<ElementOccurrenceResult> elementSet, HashMap<String, Integer> siblings, int multiplicityTracker, Element element) { if (schemaObject instanceof ISchemaElement) { ISchemaElement schemaElement = (ISchemaElement) schemaObject; Element childElement = findChildElement(element, schemaElement.getName()); if (childElement != null) { processElementMax(schemaElement, elementSet, siblings, multiplicityTracker, childElement); } } else if (schemaObject instanceof ISchemaCompositor) { ISchemaCompositor sCompositor = (ISchemaCompositor) schemaObject; processCompositorMax(sCompositor, elementSet, siblings, multiplicityTracker, element); } }
/** * @param schemaObject * @param proposalList * @param siblings * @param multiplicityTracker */ private static void processObjectMax(ISchemaObject schemaObject, HashSet elementSet, HashMap siblings, int multiplicityTracker, Element element) { if (schemaObject instanceof ISchemaElement) { ISchemaElement schemaElement = (ISchemaElement)schemaObject; Element childElement = findChildElement(element, schemaElement.getName()); if (childElement != null) { processElementMax(schemaElement, elementSet, siblings, multiplicityTracker, childElement); } } else if (schemaObject instanceof ISchemaCompositor) { ISchemaCompositor sCompositor = (ISchemaCompositor)schemaObject; processCompositorMax(sCompositor, elementSet, siblings, multiplicityTracker, element); } }