/** * Digest child elements of edimap. * @param configDoc the Edimap element. * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate. * @param schemaName the schema uri. * @throws org.milyn.edisax.EDIConfigurationException is thrown when unable to retrieve namespace in configuration. */ private void digestXSDValidatedConfig(Document configDoc, Edimap edimap, String schemaName) throws EDIConfigurationException { // Check the namespace attribute Element documentElement = configDoc.getDocumentElement(); //Retrieve the namespace for the schema. String namespacePrefix = retrieveNamespace(documentElement, schemaName); NodeList nodes = documentElement.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "import")) { digestImport(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "description")) { digestDescription(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "delimiters")) { digestDelimiters(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "segments")) { digestSegments(node, edimap, namespacePrefix); } } }
/** * Digest child elements of edimap. * @param configDoc the Edimap element. * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate. * @param schemaName the schema uri. * @throws org.milyn.edisax.EDIConfigurationException is thrown when unable to retrieve namespace in configuration. */ private void digestXSDValidatedConfig(Document configDoc, Edimap edimap, String schemaName) throws EDIConfigurationException { // Check the namespace attribute Element documentElement = configDoc.getDocumentElement(); //Retrieve the namespace for the schema. String namespacePrefix = retrieveNamespace(documentElement, schemaName); NodeList nodes = documentElement.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "import")) { digestImport(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "description")) { digestDescription(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "delimiters")) { digestDelimiters(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "segments")) { digestSegments(node, edimap, namespacePrefix); } } }
/** * Digest child elements of edimap. * @param configDoc the Edimap element. * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate. * @param schemaName the schema uri. * @throws org.milyn.edisax.EDIConfigurationException is thrown when unable to retrieve namespace in configuration. */ private void digestXSDValidatedConfig(Document configDoc, Edimap edimap, String schemaName) throws EDIConfigurationException { // Check the namespace attribute Element documentElement = configDoc.getDocumentElement(); //Retrieve the namespace for the schema. String namespacePrefix = retrieveNamespace(documentElement, schemaName); NodeList nodes = documentElement.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "import")) { digestImport(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "description")) { digestDescription(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "delimiters")) { digestDelimiters(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "segments")) { digestSegments(node, edimap, namespacePrefix); } } }
/** * Digest child elements of edimap. * @param configDoc the Edimap element. * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate. * @param schemaName the schema uri. * @throws org.milyn.edisax.EDIConfigurationException is thrown when unable to retrieve namespace in configuration. */ private void digestXSDValidatedConfig(Document configDoc, Edimap edimap, String schemaName) throws EDIConfigurationException { // Check the namespace attribute Element documentElement = configDoc.getDocumentElement(); //Retrieve the namespace for the schema. String namespacePrefix = retrieveNamespace(documentElement, schemaName); NodeList nodes = documentElement.getChildNodes(); for (int i = 0; i < nodes.getLength(); i++) { Node node = nodes.item(i); if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "import")) { digestImport(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "description")) { digestDescription(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "delimiters")) { digestDelimiters(node, edimap); } else if (node.getNodeName().equalsIgnoreCase(namespacePrefix + "segments")) { digestSegments(node, edimap, namespacePrefix); } } }