Examples of GroupSG


Examples of org.apache.ws.jaxme.generator.sg.GroupSG

  private GroupHandlerSG newGroupHandlerSG(ParticleSG pParticle, String pName) throws SAXException {
    JavaSource js = getJavaSource();
    JavaInnerClass jic = js.newJavaInnerClass(pName, JavaSource.PUBLIC);
    jic.addExtends(JMSAXGroupParser.class);
    GroupSG group = pParticle.getGroupSG();
    if (group.isSequence()) {
      return new SequenceHandlerSG(outerHandler, ctSG, pParticle, jic);
    } else if (group.isChoice()) {
      return new ChoiceHandlerSG(outerHandler, ctSG, pParticle, jic);
    } else if (group.isAll()) {
      return new AllHandlerSG(outerHandler, ctSG, pParticle, jic);
    } else {
      throw new IllegalStateException("Invalid group 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.