Tabnine Logo
FixedLengthReader.addFieldBindings
Code IndexAdd Tabnine to your IDE (free)

How to use
addFieldBindings
method
in
org.milyn.fixedlength.FixedLengthReader

Best Java code snippets using org.milyn.fixedlength.FixedLengthReader.addFieldBindings (Showing top 3 results out of 315)

origin: org.milyn/milyn-smooks-all

public void addVisitors(VisitorConfigMap visitorMap) {
  initialize();
  if(bindBeanId != null && bindBeanClass != null) {
    Bean bean;
    if(bindingType == FixedLengthBindingType.LIST) {
      Bean listBean = new Bean(ArrayList.class, bindBeanId, "$document");
      bean = listBean.newBean(bindBeanClass, recordElementName);
      listBean.bindTo(bean);
      addFieldBindings(bean);
      listBean.addVisitors(visitorMap);
    } else if(bindingType == FixedLengthBindingType.MAP) {
      if(bindMapKeyField == null) {
        throw new SmooksConfigurationException("FixedLenght 'MAP' Binding must specify a 'keyField' property on the binding configuration.");
      }
      assertValidFieldName(bindMapKeyField);
      Bean mapBean = new Bean(LinkedHashMap.class, bindBeanId, "$document");
      Bean recordBean = new Bean(bindBeanClass, RECORD_BEAN, recordElementName);
      MapBindingWiringVisitor wiringVisitor = new MapBindingWiringVisitor(bindMapKeyField, bindBeanId);
      addFieldBindings(recordBean);
      mapBean.addVisitors(visitorMap);
      recordBean.addVisitors(visitorMap);
      visitorMap.addVisitor(wiringVisitor, recordElementName, null, false);
    } else {
      bean = new Bean(bindBeanClass, bindBeanId, recordElementName);
      addFieldBindings(bean);
      bean.addVisitors(visitorMap);
    }
  }
}
origin: org.virtuslab/milyn-smooks-fixed-length

public void addVisitors(VisitorConfigMap visitorMap) {
  initialize();
  if(bindBeanId != null && bindBeanClass != null) {
    Bean bean;
    if(bindingType == FixedLengthBindingType.LIST) {
      Bean listBean = new Bean(ArrayList.class, bindBeanId, "$document");
      bean = listBean.newBean(bindBeanClass, recordElementName);
      listBean.bindTo(bean);
      addFieldBindings(bean);
      listBean.addVisitors(visitorMap);
    } else if(bindingType == FixedLengthBindingType.MAP) {
      if(bindMapKeyField == null) {
        throw new SmooksConfigurationException("FixedLenght 'MAP' Binding must specify a 'keyField' property on the binding configuration.");
      }
      assertValidFieldName(bindMapKeyField);
      Bean mapBean = new Bean(LinkedHashMap.class, bindBeanId, "$document");
      Bean recordBean = new Bean(bindBeanClass, RECORD_BEAN, recordElementName);
      MapBindingWiringVisitor wiringVisitor = new MapBindingWiringVisitor(bindMapKeyField, bindBeanId);
      addFieldBindings(recordBean);
      mapBean.addVisitors(visitorMap);
      recordBean.addVisitors(visitorMap);
      visitorMap.addVisitor(wiringVisitor, recordElementName, null, false);
    } else {
      bean = new Bean(bindBeanClass, bindBeanId, recordElementName);
      addFieldBindings(bean);
      bean.addVisitors(visitorMap);
    }
  }
}
origin: org.milyn/milyn-smooks-fixed-length

public void addVisitors(VisitorConfigMap visitorMap) {
  initialize();
  if(bindBeanId != null && bindBeanClass != null) {
    Bean bean;
    if(bindingType == FixedLengthBindingType.LIST) {
      Bean listBean = new Bean(ArrayList.class, bindBeanId, "$document");
      bean = listBean.newBean(bindBeanClass, recordElementName);
      listBean.bindTo(bean);
      addFieldBindings(bean);
      listBean.addVisitors(visitorMap);
    } else if(bindingType == FixedLengthBindingType.MAP) {
      if(bindMapKeyField == null) {
        throw new SmooksConfigurationException("FixedLenght 'MAP' Binding must specify a 'keyField' property on the binding configuration.");
      }
      assertValidFieldName(bindMapKeyField);
      Bean mapBean = new Bean(LinkedHashMap.class, bindBeanId, "$document");
      Bean recordBean = new Bean(bindBeanClass, RECORD_BEAN, recordElementName);
      MapBindingWiringVisitor wiringVisitor = new MapBindingWiringVisitor(bindMapKeyField, bindBeanId);
      addFieldBindings(recordBean);
      mapBean.addVisitors(visitorMap);
      recordBean.addVisitors(visitorMap);
      visitorMap.addVisitor(wiringVisitor, recordElementName, null, false);
    } else {
      bean = new Bean(bindBeanClass, bindBeanId, recordElementName);
      addFieldBindings(bean);
      bean.addVisitors(visitorMap);
    }
  }
}
org.milyn.fixedlengthFixedLengthReaderaddFieldBindings

Popular methods of FixedLengthReader

  • assertValidFieldName
  • buildFields
  • initialize

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setScale (BigDecimal)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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