Package net.sf.wsdl2jibx.mapping.bean

Examples of net.sf.wsdl2jibx.mapping.bean.JibxStructure


      jibx.getCurrentStructure().setChoice(true);
      jibx.getCurrentStructure().setOrdered(Boolean.FALSE.toString());
     
      for(int i=0;i<cEvent.getElementEvents().size();i++) {
        ElementEvent eEvent = (ElementEvent)cEvent.getElementEvents().get(i);
        JibxStructure struct = jibx.addStructureToStructure(eEvent.getName(), null,
          nsContext.getTypeNS(eEvent.getTypeQName()), eEvent.isNillable(), eEvent.isOptional());
       
        struct.setNs(eEvent.getTypeQName().getNamespaceURI());

        if(cEvent.isNillable()) struct.setType(eEvent.getJavaQName().toString());
      }

    }
  }
View Full Code Here


   * @param field
   * @param mapAs
   * @param nillable
   */
  public void addStructure(String name, String field, String mapAs, boolean nillable, boolean optional) {
    currentStructure = new JibxStructure();
    currentMapping.addChoice(currentStructure);
    currentStructure.setName(name);
    if(field!=null) currentStructure.setField(JavaSourceUtils.toJavaField(field));
    currentStructure.setMapAs(mapAs);
    if(nillable) currentStructure.setNillable(Boolean.toString(nillable));
View Full Code Here

   * @param field
   * @param mapAs
   * @param nillable
   */
  public void addStructureToCollection(String name, String field, String ns, String mapAs, boolean nillable, boolean optional) {
    currentStructure = new JibxStructure();
    currentCollection.addChoice(currentStructure);
    currentStructure.setName(name);
    if(ns!=null) currentStructure.setNs(ns);
    if(field!=null) currentStructure.setField(JavaSourceUtils.toJavaField(field));
    currentStructure.setMapAs(mapAs);
View Full Code Here

   * @param mapAs
   * @param nillable
   * @param optional
   */
  public JibxStructure addStructureToStructure(String name, String field, String mapAs, boolean nillable, boolean optional) {
    JibxStructure structure = new JibxStructure();
    currentStructure.addChoice(structure);
    structure.setName(name);
    structure.setMapAs(mapAs);
    if(field!=null) structure.setField(JavaSourceUtils.toJavaField(field));
    if(nillable) structure.setNillable(Boolean.toString(nillable));
    if(optional) structure.setUsage("optional");

    referencedTypeList.add(mapAs);

    return structure;
  }
View Full Code Here

TOP

Related Classes of net.sf.wsdl2jibx.mapping.bean.JibxStructure

Copyright © 2018 www.massapicom. 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.