Package org.apache.ws.jaxme.generator.sg

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


                                " with an argument of type " + chain.getClass().getName() +
                                ": " + e.getClass().getName() + ", " + e.getMessage(), e);
      }
      chain = (SGFactoryChain) o;
    }
    SGFactory result = new SGFactoryImpl(chain);
    result.init();
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here


  }

  public SchemaSG parse(InputSource pSource) throws Exception {
    final String mName = "parse";
    log.finest(mName, "->", pSource.getSystemId());
    SGFactory factory = getSGFactory();
    XSParser parser = factory.newXSParser();
    log.finest(mName, "Parser = " + parser + ", validating = " + getGenerator().isValidating());
    parser.setValidating(getGenerator().isValidating());
    XSSchema schema = parser.parse(pSource);
    log.finest(mName, "Schema = " + schema);
    SchemaSG result = factory.getSchemaSG(schema);
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here

                                " with an argument of type " + chain.getClass().getName() +
                                ": " + e.getClass().getName() + ", " + e.getMessage(), e);
      }
      chain = (SGFactoryChain) o;
    }
    SGFactory result = new SGFactoryImpl(chain);
    result.init();
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here

  }

  public SchemaSG parse(InputSource pSource) throws Exception {
    final String mName = "parse";
    log.finest(mName, "->", pSource.getSystemId());
    SGFactory factory = getSGFactory();
    XSParser parser = factory.newXSParser();
    log.finest(mName, "Parser = " + parser + ", validating = " + getGenerator().isValidating());
    parser.setValidating(getGenerator().isValidating());
    XSSchema schema = parser.parse(pSource);
    log.finest(mName, "Schema = " + schema);
    SchemaSG result = factory.getSchemaSG(schema);
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here

     */
    public JAXBParticleSG(GroupSG pGroup, XSParticle pParticle, Context pClassContext) throws SAXException {
        minOccurs = pParticle.getMinOccurs();
        maxOccurs = pParticle.getMaxOccurs();
        type = pParticle.getType();
        SGFactory factory = pGroup.getFactory();
        if (pParticle.isGroup()) {
            groupSG = factory.getGroupSG(pParticle.getGroup(), pClassContext);
            objectSG = null;
      } else if (pParticle.isElement()) {
            element = pParticle.getElement();
            if (element.isGlobal()) {
                objectSG = factory.getObjectSG(element);
            } else {
              objectSG = factory.getObjectSG(element, pClassContext);
            }
          groupSG = null;
      } else if (pParticle.isWildcard()) {
          objectSG = factory.getObjectSG(pParticle.getWildcard(), pClassContext);
          groupSG = null;
          wildcard = pParticle.getWildcard();
      } else {
          throw new IllegalStateException("Particle is neither group, nor element, or wildcard.");
      }
View Full Code Here

     */
    public JAXBParticleSG(GroupSG pGroup, XSParticle pParticle, Context pClassContext) throws SAXException {
        minOccurs = pParticle.getMinOccurs();
        maxOccurs = pParticle.getMaxOccurs();
        type = pParticle.getType();
        SGFactory factory = pGroup.getFactory();
        if (pParticle.isGroup()) {
            groupSG = factory.getGroupSG(pParticle.getGroup(), pClassContext);
            objectSG = null;
      } else if (pParticle.isElement()) {
            element = pParticle.getElement();
            if (element.isGlobal()) {
                objectSG = factory.getObjectSG(element);
            } else {
              objectSG = factory.getObjectSG(element, pClassContext);
            }
          groupSG = null;
      } else if (pParticle.isWildcard()) {
          objectSG = factory.getObjectSG(pParticle.getWildcard(), pClassContext);
          groupSG = null;
          wildcard = pParticle.getWildcard();
      } else {
          throw new IllegalStateException("Particle is neither group, nor element, or wildcard.");
      }
View Full Code Here

              " with an argument of type " + chain.getClass().getName() +
            ": " + e.getClass().getName() + ", " + e.getMessage(), e);
        }
        chain = (SGFactoryChain) o;
      }
      SGFactory result = new SGFactoryImpl(chain);
      result.init();
      log.finest(mName, "<-", result);
      return result;
    }
View Full Code Here

    public SchemaSG parse(InputSource pSource) throws Exception {
      final String mName = "parse";
      reset();
      log.finest(mName, "->", pSource.getSystemId());
      SGFactory factory = getSGFactory();
      XSSchema schema;
        if (Boolean.valueOf(getGenerator().getProperty("jaxme.dtd.input")).booleanValue()) {
            DTDParser parser = new DTDParser();
            String targetNamespace = getGenerator().getProperty("jaxme.dtd.targetNamespace");
            if (targetNamespace != null  &&  !"".equals(targetNamespace)) {
              parser.setTargetNamespace(new XsAnyURI(targetNamespace));
            }
            schema = parser.parse(pSource);
        } else {
          XSParser parser = factory.newXSParser();
          log.finest(mName, "Parser = " + parser + ", validating = " + getGenerator().isValidating());
          parser.setValidating(getGenerator().isValidating());
          schema = parser.parse(pSource);
        }
      log.finest(mName, "Schema = " + schema);
      SchemaSG result = factory.getSchemaSG(schema);
      log.finest(mName, "<-", result);
      return result;
    }
View Full Code Here

                                " with an argument of type " + chain.getClass().getName() +
                                ": " + e.getClass().getName() + ", " + e.getMessage(), e);
      }
      chain = (SGFactoryChain) o;
    }
    SGFactory result = new SGFactoryImpl(chain);
    result.init();
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here

  }

  public SchemaSG parse(InputSource pSource) throws Exception {
    final String mName = "parse";
    log.finest(mName, "->", pSource.getSystemId());
    SGFactory factory = getSGFactory();
    XSParser parser = factory.newXSParser();
    log.finest(mName, "Parser = " + parser + ", validating = " + getGenerator().isValidating());
    parser.setValidating(getGenerator().isValidating());
    XSSchema schema = parser.parse(pSource);
    log.finest(mName, "Schema = " + schema);
    SchemaSG result = factory.getSchemaSG(schema);
    log.finest(mName, "<-", result);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.generator.sg.SGFactory

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.