Package org.apache.ws.jaxme.xs.impl

Examples of org.apache.ws.jaxme.xs.impl.XSLogicalParser


      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here


    int offset = pQName.indexOf(':');
    if (offset > 0) {
      String prefix = pQName.substring(0, offset);
      // The list of extension prefixes is in the outermost schema.
      String[] prefixes;
      XSLogicalParser xsParser = getContext().getXSLogicalParser();
      if (xsParser == null) {
        // Just syntax parsing, take this schema as outermost instance.
        JAXBXsSchema jaxbXsSchema = (JAXBXsSchema) getXsESchema();
        prefixes = jaxbXsSchema.getJaxbExtensionBindingPrefixes();
      } else {
        prefixes = ((JAXBXsSchema) xsParser.getSyntaxSchemas()[0]).getJaxbExtensionBindingPrefixes();
      }

      for (int i = 0;  i < prefixes.length;  i++) {
        if (prefixes[i].equals(prefix)) {
          return new DefaultHandler();
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

  }

  protected boolean isPrefixEnabled(String pPrefix) {
      // The list of extension prefixes is in the outermost schema.
      String[] prefixes;
      XSLogicalParser xsParser = getContext().getXSLogicalParser();
      if (xsParser == null) {
          // Just syntax parsing, take this schema as outermost instance.
          JAXBXsSchema jaxbXsSchema = (JAXBXsSchema) getXsESchema();
          prefixes = jaxbXsSchema.getJaxbExtensionBindingPrefixes();
      } else {
          prefixes = ((JAXBXsSchema) xsParser.getSyntaxSchemas()[0]).getJaxbExtensionBindingPrefixes();
      }

      for (int i = 0;  i < prefixes.length;  i++) {
          if (prefixes[i].equals(pPrefix)) {
              return true;
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

  }

  protected boolean isPrefixEnabled(String pPrefix) {
      // The list of extension prefixes is in the outermost schema.
      String[] prefixes;
      XSLogicalParser xsParser = getContext().getXSLogicalParser();
      if (xsParser == null) {
          // Just syntax parsing, take this schema as outermost instance.
          JAXBXsSchema jaxbXsSchema = (JAXBXsSchema) getXsESchema();
          prefixes = jaxbXsSchema.getJaxbExtensionBindingPrefixes();
      } else {
          prefixes = ((JAXBXsSchema) xsParser.getSyntaxSchemas()[0]).getJaxbExtensionBindingPrefixes();
      }

      for (int i = 0;  i < prefixes.length;  i++) {
          if (prefixes[i].equals(pPrefix)) {
              return true;
View Full Code Here

      parser.set(null);
    }
  }

  protected XSLogicalParser newXSLogicalParser() {
    XSLogicalParser logicalParser = getContext().getXSObjectFactory().newXSLogicalParser();
    logicalParser.setValidating(isValidating());
    for (int i = 0;  i < addedImports.size();  i++) {
      XSLogicalParser.AddedImport addedImport = (XSLogicalParser.AddedImport) addedImports.get(i);
      if (addedImport.getNode() == null) {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation());
      } else {
        logicalParser.addImport(addedImport.getNamespace(), addedImport.getSchemaLocation(), addedImport.getNode());
      }
    }
    return logicalParser;
  }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.xs.impl.XSLogicalParser

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.