Package com.xmlit.project.engine.struct.impl

Examples of com.xmlit.project.engine.struct.impl.StructChoiceImpl


      ((StructSequenceImpl) current).setNegative(rootNode
          .getAttributeAsBoolean(Not));

    } else if (Main.Choice.equals(rootNode.getAttribute(Type))) {
      current = new StructChoiceImpl(rootNode.getAttribute(Name));
    } else {
      current = new StructSimpleImpl(rootNode.getAttribute(Name));
      ((StructSimpleImpl) current).setSimplePattern(handleEscape(rootNode
          .getAttribute(Regex)));
      ((StructSimpleImpl) current).setAllowedChars(handleEscape(rootNode
View Full Code Here


      if ("sequence".equals("" + group.getCompositor())) {
        current = new StructSequenceImpl(element.getName()
            .getLocalName());
      } else if ("choice".equals("" + group.getCompositor())) {
        current = new StructChoiceImpl(element.getName().getLocalName());
      } else if ("all".equals("" + group.getCompositor())) {
        throw new RuntimeException("'all' is not supported yet");
      }

      for (XSParticle child : group.getParticles()) {
View Full Code Here

      if ("sequence".equals("" + group.getCompositor())) {
        current = new StructSequenceImpl(element.getName()
            .getLocalName());
        mandatory = handleSequence((StructSequence) current, element);
      } else if ("choice".equals("" + group.getCompositor())) {
        current = new StructChoiceImpl(element.getName().getLocalName());
      } else if ("all".equals("" + group.getCompositor())) {
        throw new RuntimeException("Choice is not supported yet");
      }

      // System.out.println(element.getName());
View Full Code Here

TOP

Related Classes of com.xmlit.project.engine.struct.impl.StructChoiceImpl

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.