Package org.jibx.runtime.impl

Examples of org.jibx.runtime.impl.MarshallingContext.endTag()


      OverlapBehaviorInfo overlapBehaviorInfo = (OverlapBehaviorInfo) obj;
      // start by generating start tag for container
      MarshallingContext ctx = (MarshallingContext) ictx;
      ctx.startTag(index, name).content(overlapBehaviorInfo.getOverlapBehavior().xmlValue())
          .closeStartContent();
      ctx.endTag(index, name);
    }
  }

  /*
   * (non-Javadoc)
 
View Full Code Here


            writeTagsTextContent(ctx, CONNECTION_STRING_TAG_NAME,
                    jdbcDatasource.getConnectionString());

            marshalName(index, ctx, jdbcDatasource.getName());
           
            ctx.endTag(index, JDBC_DATASOURCE_TAG_NAME);             
        } else if (type == DataSourceType.INTERNAL_POOL_DATASOURCE) {
            InternalPoolDatasource internalPoolDatasource =
                (InternalPoolDatasource) dataSource;  
            ctx.startTag(index, INTERNAL_POOL_DATASOURCE_TAG_NAME);
           
View Full Code Here

            writeTagsTextContent(ctx, MAX_WAIT_TAG_NAME,
                    internalPoolDatasource.getMaxWait());

            marshalName(index, ctx, internalPoolDatasource.getName());
           
            ctx.endTag(index, INTERNAL_POOL_DATASOURCE_TAG_NAME);           
        } else if (type == DataSourceType.JNDI_DATASOURCE) {
            JNDIDatasource jndiDatasource = (JNDIDatasource) dataSource;
            ctx.startTag(index, JNDI_DATASOURCE_TAG_NAME);
           
            writeTagsTextContent(ctx, JNDI_NAME_TAG_NAME,
View Full Code Here

            writeTagsTextContent(ctx, JNDI_NAME_TAG_NAME,
                    jndiDatasource.getJndiName());

            marshalName(index, ctx, jndiDatasource.getName());
           
            ctx.endTag(index, JNDI_DATASOURCE_TAG_NAME);           
        } else {
            throw new JiBXException(EXCEPTION_LOCALIZER
                    .format("invalid-datasource-type"));
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.