Package net.sf.wsdl2jibx.compiler.event

Examples of net.sf.wsdl2jibx.compiler.event.ChoiceEvent


   */
  protected void processGroupChoice(XmlSchemaChoice choice) {
    if(log.isDebugEnabled())
      log.debug("  processChoice "+ClassUtils.simpleClassName(choice.getClass()));
   
    ChoiceEvent event = createNewChoiceEvent(choice);
   
    handler.foundElementsInChoice(event);
  }
View Full Code Here


      if(targetObj instanceof XmlSchemaElement) {
        eEvent.setWrappedEvent(createNewElementEvent((XmlSchemaElement)targetObj));
       
      } else if(targetObj instanceof XmlSchemaChoice) {
        log.debug("Found wrapper of choice");
        ChoiceEvent cEvent = createNewChoiceEvent((XmlSchemaChoice)targetObj);
        cEvent.setWrapped(true);
        cEvent.setNs(eEvent.getNs());
        cEvent.setName(eEvent.getName());
        cEvent.setNillable(eEvent.isNillable());
        handler.foundElementsInChoice(cEvent);
        return;
       
      } else {
        throw new RuntimeException(ClassUtils.simpleClassName(targetObj.getClass())+" not supported");
View Full Code Here

    if(choice.getMaxOccurs()>1) name = name+"s";
   
    if(log.isDebugEnabled())
      log.debug("Selected JavaType : "+javaType.getClassName());
   
    ChoiceEvent event = new ChoiceEvent();
    event.setName(name);
    event.setMinOccurs((int)choice.getMinOccurs());
    event.setMaxOccurs((int)choice.getMaxOccurs());
    event.setMultiple(choice.getMaxOccurs()>1);
    event.setOptional(choice.getMinOccurs()==0);
    event.setElementEvents(elementEvents);
    event.setJavaType(javaType);
   
    return event;
  }
View Full Code Here

TOP

Related Classes of net.sf.wsdl2jibx.compiler.event.ChoiceEvent

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.