Codota Logo
EDIConfigDigester.getNodeValueAsBoolean
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain EDIConfigDigester
private void myMethod () {
EDIConfigDigester e =
  • Codota IconURI uRI;URI resourceURI;new EDIConfigDigester(uRI, URIResourceLocator.extractBaseURI(resourceURI))
  • Codota IconURI modelURI;URI importBaseURI;new EDIConfigDigester(modelURI, importBaseURI)
  • Smart code suggestions by Codota
}
origin: org.milyn/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.Component}.
 * @param component the {@link org.milyn.edisax.model.internal.Component} to populate.
 * @param node the Component element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  component.setRequired(getNodeValueAsBoolean(node, "required"));
  component.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, component, namespacePrefix, parent);
}
origin: org.milyn/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.Field}.
 * @param field the {@link org.milyn.edisax.model.internal.Field} to populate.
 * @param node the Field element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  field.setRequired(getNodeValueAsBoolean(node, "required"));
  field.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, field, namespacePrefix, parent);
}
origin: org.virtuslab/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.Field}.
 * @param field the {@link org.milyn.edisax.model.internal.Field} to populate.
 * @param node the Field element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  field.setRequired(getNodeValueAsBoolean(node, "required"));
  field.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, field, namespacePrefix, parent);
}
origin: smooks/smooks

/**
 * Set values in {@link org.milyn.edisax.model.internal.Field}.
 * @param field the {@link org.milyn.edisax.model.internal.Field} to populate.
 * @param node the Field element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  field.setRequired(getNodeValueAsBoolean(node, "required"));
  field.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, field, namespacePrefix, parent);
}
origin: org.milyn/milyn-smooks-all

/**
 * Set values in {@link org.milyn.edisax.model.internal.Field}.
 * @param field the {@link org.milyn.edisax.model.internal.Field} to populate.
 * @param node the Field element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForField(Field field, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  field.setRequired(getNodeValueAsBoolean(node, "required"));
  field.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, field, namespacePrefix, parent);
}
origin: org.milyn/milyn-smooks-all

/**
 * Set values in {@link org.milyn.edisax.model.internal.Component}.
 * @param component the {@link org.milyn.edisax.model.internal.Component} to populate.
 * @param node the Component element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  component.setRequired(getNodeValueAsBoolean(node, "required"));
  component.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, component, namespacePrefix, parent);
}
origin: smooks/smooks

/**
 * Set values in {@link org.milyn.edisax.model.internal.Component}.
 * @param component the {@link org.milyn.edisax.model.internal.Component} to populate.
 * @param node the Component element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  component.setRequired(getNodeValueAsBoolean(node, "required"));
  component.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, component, namespacePrefix, parent);
}
origin: org.virtuslab/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.Component}.
 * @param component the {@link org.milyn.edisax.model.internal.Component} to populate.
 * @param node the Component element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForComponent(Component component, Node node, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  component.setRequired(getNodeValueAsBoolean(node, "required"));
  component.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  setValuesForValueNode(node, component, namespacePrefix, parent);
}
origin: org.milyn/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.SubComponent}.
 * @param node the {@link org.milyn.edisax.model.internal.SubComponent} to populate.
 * @param subComponent the SubComponent element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForSubComponent(Node node, SubComponent subComponent, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  subComponent.setRequired(getNodeValueAsBoolean(node, "required"));
  setValuesForValueNode(node, subComponent, namespacePrefix, parent);
}
origin: smooks/smooks

/**
 * Set values in {@link org.milyn.edisax.model.internal.SubComponent}.
 * @param node the {@link org.milyn.edisax.model.internal.SubComponent} to populate.
 * @param subComponent the SubComponent element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForSubComponent(Node node, SubComponent subComponent, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  subComponent.setRequired(getNodeValueAsBoolean(node, "required"));
  setValuesForValueNode(node, subComponent, namespacePrefix, parent);
}
origin: org.milyn/milyn-smooks-all

/**
 * Set values in {@link org.milyn.edisax.model.internal.SubComponent}.
 * @param node the {@link org.milyn.edisax.model.internal.SubComponent} to populate.
 * @param subComponent the SubComponent element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForSubComponent(Node node, SubComponent subComponent, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  subComponent.setRequired(getNodeValueAsBoolean(node, "required"));
  setValuesForValueNode(node, subComponent, namespacePrefix, parent);
}
origin: org.virtuslab/milyn-edisax-parser

/**
 * Set values in {@link org.milyn.edisax.model.internal.SubComponent}.
 * @param node the {@link org.milyn.edisax.model.internal.SubComponent} to populate.
 * @param subComponent the SubComponent element.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void setValuesForSubComponent(Node node, SubComponent subComponent, String namespacePrefix, MappingNode parent) throws EDIConfigurationException {
  subComponent.setRequired(getNodeValueAsBoolean(node, "required"));
  setValuesForValueNode(node, subComponent, namespacePrefix, parent);
}
origin: smooks/smooks

/**
 * Digest attributes of Import element and populate Import.
 * @param node the Import element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 */
private void digestImport(Node node, Edimap edimap) {
  Import edimapImport = new Import();
  edimap.getImports().add(edimapImport);
  
  URI resourceURI = importLocator.resolveURI(getAttributeValue(node, "resource"));
  edimapImport.setResourceURI(resourceURI);
  
  edimapImport.setNamespace(getAttributeValue(node, "namespace"));
  edimapImport.setTruncatableFields(getNodeValueAsBoolean(node, "truncatableFields"));
  edimapImport.setTruncatableComponents(getNodeValueAsBoolean(node, "truncatableComponents"));
  edimapImport.setTruncatableSegments(getNodeValueAsBoolean(node, "truncatableSegments"));
}
origin: org.milyn/milyn-edisax-parser

/**
 * Digest attributes of Import element and populate Import.
 * @param node the Import element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 */
private void digestImport(Node node, Edimap edimap) {
  Import edimapImport = new Import();
  edimap.getImports().add(edimapImport);
  
  URI resourceURI = importLocator.resolveURI(getAttributeValue(node, "resource"));
  edimapImport.setResourceURI(resourceURI);
  
  edimapImport.setNamespace(getAttributeValue(node, "namespace"));
  edimapImport.setTruncatableFields(getNodeValueAsBoolean(node, "truncatableFields"));
  edimapImport.setTruncatableComponents(getNodeValueAsBoolean(node, "truncatableComponents"));
  edimapImport.setTruncatableSegments(getNodeValueAsBoolean(node, "truncatableSegments"));
}
origin: org.milyn/milyn-smooks-all

/**
 * Digest attributes of Import element and populate Import.
 * @param node the Import element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 */
private void digestImport(Node node, Edimap edimap) {
  Import edimapImport = new Import();
  edimap.getImports().add(edimapImport);
  
  URI resourceURI = importLocator.resolveURI(getAttributeValue(node, "resource"));
  edimapImport.setResourceURI(resourceURI);
  
  edimapImport.setNamespace(getAttributeValue(node, "namespace"));
  edimapImport.setTruncatableFields(getNodeValueAsBoolean(node, "truncatableFields"));
  edimapImport.setTruncatableComponents(getNodeValueAsBoolean(node, "truncatableComponents"));
  edimapImport.setTruncatableSegments(getNodeValueAsBoolean(node, "truncatableSegments"));
}
origin: org.virtuslab/milyn-edisax-parser

/**
 * Digest attributes of Import element and populate Import.
 * @param node the Import element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 */
private void digestImport(Node node, Edimap edimap) {
  Import edimapImport = new Import();
  edimap.getImports().add(edimapImport);
  
  URI resourceURI = importLocator.resolveURI(getAttributeValue(node, "resource"));
  edimapImport.setResourceURI(resourceURI);
  
  edimapImport.setNamespace(getAttributeValue(node, "namespace"));
  edimapImport.setTruncatableFields(getNodeValueAsBoolean(node, "truncatableFields"));
  edimapImport.setTruncatableComponents(getNodeValueAsBoolean(node, "truncatableComponents"));
  edimapImport.setTruncatableSegments(getNodeValueAsBoolean(node, "truncatableSegments"));
}
origin: org.milyn/milyn-edisax-parser

/**
 * Digest attributes and child elements of Segments element. Populates Segments.
 * @param node the Segments element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 * @param namespacePrefix the prefix used to name elements in xml.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void digestSegments(Node node, Edimap edimap, String namespacePrefix) throws EDIConfigurationException {
  SegmentGroup segments = new SegmentGroup();
  setValuesForMappingNode(node, segments, namespacePrefix, null);
  segments.setNamespace(edimap.getDescription().getNamespace());
  edimap.setSegments(segments);
  edimap.setIgnoreUnmappedSegments(getNodeValueAsBoolean(node, "ignoreUnmappedSegments"));
  NodeList nodes = node.getChildNodes();
  for (int i = 0; i < nodes.getLength(); i++) {
    Node currentNode = nodes.item(i);
    digestSegmentGroup(currentNode, edimap.getSegments().getSegments(), namespacePrefix, segments);
  }
}
origin: org.milyn/milyn-smooks-all

/**
 * Digest attributes and child elements of Segments element. Populates Segments.
 * @param node the Segments element.
 * @param edimap the {@link org.milyn.edisax.model.internal.Edimap} to populate.
 * @param namespacePrefix the prefix used to name elements in xml.
 * @throws org.milyn.edisax.EDIConfigurationException is thrown when values are badly formatted.
 */
private void digestSegments(Node node, Edimap edimap, String namespacePrefix) throws EDIConfigurationException {
  SegmentGroup segments = new SegmentGroup();
  setValuesForMappingNode(node, segments, namespacePrefix, null);
  segments.setNamespace(edimap.getDescription().getNamespace());
  edimap.setSegments(segments);
  edimap.setIgnoreUnmappedSegments(getNodeValueAsBoolean(node, "ignoreUnmappedSegments"));
  NodeList nodes = node.getChildNodes();
  for (int i = 0; i < nodes.getLength(); i++) {
    Node currentNode = nodes.item(i);
    digestSegmentGroup(currentNode, edimap.getSegments().getSegments(), namespacePrefix, segments);
  }
}
origin: smooks/smooks

/**
 * Set values in {@link org.milyn.edisax.model.internal.Segment}.
 * @param segment the {@link org.milyn.edisax.model.internal.Segment} to populate.
 * @param node the Segment element.
 */
private void setValuesForSegment(Segment segment, Node node, String namespacePrefix, MappingNode parent) {
  segment.setMaxOccurs(getNodeValueAsInteger(node, "maxOccurs"));
  segment.setMinOccurs(getNodeValueAsInteger(node, "minOccurs"));
  segment.setSegcode(getAttributeValue(node, "segcode"));
  segment.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  segment.setIgnoreUnmappedFields(getNodeValueAsBoolean(node, "ignoreUnmappedFields"));
  segment.setDescription(getAttributeValue(node, "description"));
  setValuesForMappingNode(node, segment, namespacePrefix, parent);
  if(segment.getNodeTypeRef() == null) {
    // Backward compatibility support.  Schema pre v 1.4 supported a segref
    // on <segment>, which we thn generalised as nodeTypeRef for all node types.
    segment.setNodeTypeRef(getAttributeValue(node, "segref"));
  }
}
origin: org.milyn/milyn-smooks-all

/**
 * Set values in {@link org.milyn.edisax.model.internal.Segment}.
 * @param segment the {@link org.milyn.edisax.model.internal.Segment} to populate.
 * @param node the Segment element.
 */
private void setValuesForSegment(Segment segment, Node node, String namespacePrefix, MappingNode parent) {
  segment.setMaxOccurs(getNodeValueAsInteger(node, "maxOccurs"));
  segment.setMinOccurs(getNodeValueAsInteger(node, "minOccurs"));
  segment.setSegcode(getAttributeValue(node, "segcode"));
  segment.setTruncatable(getNodeValueAsBoolean(node, "truncatable"));
  segment.setIgnoreUnmappedFields(getNodeValueAsBoolean(node, "ignoreUnmappedFields"));
  segment.setDescription(getAttributeValue(node, "description"));
  setValuesForMappingNode(node, segment, namespacePrefix, parent);
  if(segment.getNodeTypeRef() == null) {
    // Backward compatibility support.  Schema pre v 1.4 supported a segref
    // on <segment>, which we thn generalised as nodeTypeRef for all node types.
    segment.setNodeTypeRef(getAttributeValue(node, "segref"));
  }
}
org.milyn.edisax.modelEDIConfigDigestergetNodeValueAsBoolean

Javadoc

Gets attribute value from node if it exists. Otherwise returns null.

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
  • digestSegments
    Digest attributes and child elements of Segments element. Populates Segments.
  • digestSegmentGroup,
  • digestSegments,
  • digestXSDValidatedConfig,
  • getAttributeValue,
  • getNodeValue,
  • getNodeValueAsInteger,
  • retrieveNamespace,
  • setValuesForComponent,
  • setValuesForField

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now