congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
EDIConfigDigester.digestSegments
Code IndexAdd Tabnine to your IDE (free)

How to use
digestSegments
method
in
org.milyn.edisax.model.EDIConfigDigester

Best Java code snippets using org.milyn.edisax.model.EDIConfigDigester.digestSegments (Showing top 4 results out of 315)

origin: org.milyn/milyn-smooks-all

/**
 * 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);
    }
  }
}
origin: smooks/smooks

/**
 * 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);
    }
  }
}
origin: org.virtuslab/milyn-edisax-parser

/**
 * 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);
    }
  }
}
origin: org.milyn/milyn-edisax-parser

/**
 * 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);
    }
  }
}
org.milyn.edisax.modelEDIConfigDigesterdigestSegments

Javadoc

Digest attributes and child elements of Segments element. Populates Segments.

Popular methods of EDIConfigDigester

  • <init>
    Public constructor.
  • assertValidXSD
    Assert that schema used for validation are valid, i.e. the schema is either edi-message-mapping-1.0
  • digestComponent
    Digests attributes and child elements of Component element.
  • digestDelimiters
    Digest attributes of Delimiter element and populate Delimiter.
  • digestDescription
    Digest attributes of Description element and populate Description.
  • digestEDIConfig
  • digestField
    Digests attributes and child elements of Field element.
  • digestImport
    Digest attributes of Import element and populate Import.
  • digestParameters
    Digests parameters from parameters attribute and insertsthe parameters into the valueNode. If first
  • digestSegment
    Digests attributes and child elements of Segment element.
  • digestSegmentGroup
  • digestXSDValidatedConfig
    Digest child elements of edimap.
  • digestSegmentGroup,
  • digestXSDValidatedConfig,
  • getAttributeValue,
  • getNodeValue,
  • getNodeValueAsBoolean,
  • getNodeValueAsInteger,
  • retrieveNamespace,
  • setValuesForComponent,
  • setValuesForField

Popular in Java

  • Reading from database using SQL prepared statement
  • putExtra (Intent)
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now