Ejemplo n.º 1
0
  private void loadDefinitionDup() {
    definition.addMetaDataBean(new MetaDataBean("dupSimpleVO.ignore", new StringType(0)));
    definition.addMetaDataBean(new MetaDataBean("dupSimpleVO.umaString", new StringType(0)));
    definition.addMetaDataBean(new MetaDataBean("dupSimpleVO.ignore", new CarryReturn(0)));

    ConstructorType constructorTypeDup =
        new ConstructorType(DupItemListVO.class, ConstructorType.DEFAULT);
    OccursMetaDataBean occursMetaDataBeanDup =
        new OccursMetaDataBean(
            constructorTypeDup, new DelimiterMetaDataManager(null, this.delimiter));
    ConstructorType constructorType =
        new ConstructorType(ItemListVO.class, ConstructorType.DEFAULT);
    OccursMetaDataBean occursMetaDataBean =
        new OccursMetaDataBean(constructorType, new DelimiterMetaDataManager(null, this.delimiter));
    occursMetaDataBean.addMetaDataBean(new MetaDataBean("itemString", new StringType(0)));
    occursMetaDataBean.addMetaDataBean(new MetaDataBean("itemInteger", new IntegerType(0)));
    occursMetaDataBean.addMetaDataBean(new MetaDataBean("ignore", new CarryReturn(0)));
    occursMetaDataBean.flush();
    occursMetaDataBeanDup.addMetaDataBean(new MetaDataBean("umaString", new StringType(0)));
    occursMetaDataBeanDup.addMetaDataBean(new MetaDataBean("ignore", new CarryReturn(0)));
    occursMetaDataBeanDup.addMetaDataBean(new MetaDataBean("listItemListVO", occursMetaDataBean));
    // occursMetaDataBeanDup.addMetaDataBean(new MetaDataBean("ignore", new CarryReturn(0)));
    occursMetaDataBeanDup.flush();
    definition.addMetaDataBean(
        new MetaDataBean("dupSimpleVO.dupItemListVO", occursMetaDataBeanDup));
  }
Ejemplo n.º 2
0
  private void loadDefinition() {
    definition.addMetaDataBean(new MetaDataBean("simpleVO.campoString", new StringType(0)));
    definition.addMetaDataBean(new MetaDataBean("simpleVO.campoLong", new LongType(0)));
    definition.addMetaDataBean(new MetaDataBean("simpleVO.campoInteger", new IntegerType(0)));
    definition.addMetaDataBean(new MetaDataBean("simpleVO.campoDate", new DateType(0)));

    ConstructorType constructorType =
        new ConstructorType(ItemListVO.class, ConstructorType.DEFAULT);
    OccursMetaDataBean occursMetaDataBean =
        new OccursMetaDataBean(constructorType, new DelimiterMetaDataManager(null, this.delimiter));
    occursMetaDataBean.addMetaDataBean(new MetaDataBean("itemString", new StringType(0)));
    occursMetaDataBean.addMetaDataBean(new MetaDataBean("itemInteger", new IntegerType(0)));
    occursMetaDataBean
        .flush(); // TODO: Altera o Occurs para que ele trabalhe com o Pattern Builder, com isso
                  // tira a dependencia do flush()
    definition.addMetaDataBean(new MetaDataBean("simpleVO.itemListVO", occursMetaDataBean));
  }