Examples of TargetNamespaceValidator


Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

  private XmlSchemaRedefine handleRedefine(XmlSchema schema,
      Element redefineEl, Element schemaEl) {

    XmlSchemaRedefine redefine = new XmlSchemaRedefine();
    redefine.schemaLocation = redefineEl.getAttribute("schemaLocation");
    final TargetNamespaceValidator validator = newIncludeValidator(schema);
   
    if (schema.getSourceURI() != null) {
      redefine.schema = resolveXmlSchema(schema.logicalTargetNamespace,
          redefine.schemaLocation, schema.getSourceURI(), validator);
    } else {
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

    final String uri = schemaImport.namespace = importEl
        .getAttribute("namespace");
    schemaImport.schemaLocation = importEl.getAttribute("schemaLocation");

    TargetNamespaceValidator validator = new TargetNamespaceValidator() {
      private boolean isEmpty(String pValue) {
        return pValue == null || Constants.NULL_NS_URI.equals(pValue);
      }

      public void validate(XmlSchema pSchema) {
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

    //includes are not supposed to have a target namespace
    // we should be passing in a null in place of the target
    //namespace

    final TargetNamespaceValidator validator = newIncludeValidator(schema);
    if (schema.getSourceURI() != null) {
      include.schema = resolveXmlSchema(schema.logicalTargetNamespace,
          include.schemaLocation, schema.getSourceURI(), validator);
    } else {
      include.schema = resolveXmlSchema(schema.logicalTargetNamespace,
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

    processExtensibilityComponents(include, includeEl);
    return include;
  }

  private TargetNamespaceValidator newIncludeValidator(final XmlSchema schema) {
    return new TargetNamespaceValidator() {
      private boolean isEmpty(String pValue) {
        return pValue == null || Constants.NULL_NS_URI.equals(pValue);
      }

      public void validate(XmlSchema pSchema) {
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

                                             Element redefineEl, Element schemaEl) {

        XmlSchemaRedefine redefine = new XmlSchemaRedefine();
        redefine.schemaLocation =
                redefineEl.getAttribute("schemaLocation");
        final TargetNamespaceValidator validator = newIncludeValidator(schema);
        redefine.schema =
                resolveXmlSchema(schema.logicalTargetNamespace, redefine.schemaLocation, validator);

        for (Element el = XDOMUtil.getFirstChildElementNS(redefineEl,
                XmlSchema.SCHEMA_NS)
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

        final String uri = schemaImport.namespace = importEl.getAttribute("namespace");
        schemaImport.schemaLocation =
                importEl.getAttribute("schemaLocation");

        TargetNamespaceValidator validator = new TargetNamespaceValidator(){
            private boolean isEmpty(String pValue) {
                return pValue == null  ||  Constants.NULL_NS_URI.equals(pValue);
            }
            public void validate(XmlSchema pSchema) {
                final boolean valid;
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

        //includes are not supposed to have a target namespace
        // we should be passing in a null in place of the target
        //namespace

        final TargetNamespaceValidator validator = newIncludeValidator(schema);
        if(schema.getSourceURI()!=null) {
            include.schema =
                    resolveXmlSchema(
                            schema.logicalTargetNamespace,
                            include.schemaLocation,
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

        processExtensibilityComponents(include,includeEl);
        return include;
    }

    private TargetNamespaceValidator newIncludeValidator(final XmlSchema schema) {
        return new TargetNamespaceValidator(){
            private boolean isEmpty(String pValue) {
                return pValue == null  ||  Constants.NULL_NS_URI.equals(pValue);
            }
            public void validate(XmlSchema pSchema) {
                if (isEmpty(pSchema.syntacticalTargetNamespace)) {
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

                                             Element redefineEl, Element schemaEl) {

        XmlSchemaRedefine redefine = new XmlSchemaRedefine();
        redefine.schemaLocation =
                redefineEl.getAttribute("schemaLocation");
        final TargetNamespaceValidator validator = newIncludeValidator(schema);
        redefine.schema =
                resolveXmlSchema(schema.logicalTargetNamespace, redefine.schemaLocation, validator);

        for (Element el = XDOMUtil.getFirstChildElementNS(redefineEl,
                XmlSchema.SCHEMA_NS)
View Full Code Here

Examples of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

        final String uri = schemaImport.namespace = importEl.getAttribute("namespace");
        schemaImport.schemaLocation =
                importEl.getAttribute("schemaLocation");

        TargetNamespaceValidator validator = new TargetNamespaceValidator(){
            private boolean isEmpty(String pValue) {
                return pValue == null  ||  Constants.NULL_NS_URI.equals(pValue);
            }
            public void validate(XmlSchema pSchema) {
                final boolean valid;
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.