private static void processSequenceMax(ISchemaCompositor compositor, HashSet<ElementOccurrenceResult> elementSet, HashMap<String, Integer> siblings, int multiplicityTracker, Element element) { ISchemaObject[] schemaObject = compositor.getChildren(); // Unbounded max occurs are represented by the maximum integer value if (multiplicityTracker < Integer.MAX_VALUE) { // Multiply the max occurs amount to the overall multiplicity multiplicityTracker = compositor.getMaxOccurs() * multiplicityTracker; } // Process the compositors children for (int i = 0; i < compositor.getChildCount(); i++) { processObjectMax(schemaObject[i], elementSet, siblings, multiplicityTracker, element); } }
/** * @param compositor * @param elementSet * @param siblings * @param multiplicityTracker */ private static void processSequenceMax( ISchemaCompositor compositor, HashSet elementSet, HashMap siblings, int multiplicityTracker, Element element) { ISchemaObject[] schemaObject = compositor.getChildren(); // Unbounded max occurs are represented by the maximum integer value if (multiplicityTracker < Integer.MAX_VALUE) { // Multiply the max occurs amount to the overall multiplicity multiplicityTracker = compositor.getMaxOccurs() * multiplicityTracker; } // Process the compositors children for (int i = 0; i < compositor.getChildCount(); i++) { processObjectMax(schemaObject[i], elementSet, siblings, multiplicityTracker, element); } }
private static void processChoiceMax(ISchemaCompositor compositor, HashSet<ElementOccurrenceResult> elementSet, HashMap<String, Integer> siblings, int multiplicityTracker, Element element) { // Unbounded max occurs are represented by the maximum integer value if (multiplicityTracker < Integer.MAX_VALUE) { // Multiply the max occurs amount to the overall multiplicity multiplicityTracker = compositor.getMaxOccurs() * multiplicityTracker; } adjustChoiceMaxSiblings(compositor, siblings); ISchemaObject[] schemaObject = compositor.getChildren(); // Process the compositors children for (int i = 0; i < compositor.getChildCount(); i++) { processObjectMax(schemaObject[i], elementSet, siblings, multiplicityTracker, element); } }
/** * @param compositor * @param elementSet * @param siblings * @param multiplicityTracker */ private static void processChoiceMax( ISchemaCompositor compositor, HashSet elementSet, HashMap siblings, int multiplicityTracker, Element element) { // Unbounded max occurs are represented by the maximum integer value if (multiplicityTracker < Integer.MAX_VALUE) { // Multiply the max occurs amount to the overall multiplicity multiplicityTracker = compositor.getMaxOccurs() * multiplicityTracker; } adjustChoiceMaxSiblings(compositor, siblings); ISchemaObject[] schemaObject = compositor.getChildren(); // Process the compositors children for (int i = 0; i < compositor.getChildCount(); i++) { processObjectMax(schemaObject[i], elementSet, siblings, multiplicityTracker, element); } }