Package org.apache.ws.commons.schema.utils

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


        processExtensibilityComponents(include,schemaEl);
        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

TOP

Related Classes of org.apache.ws.commons.schema.utils.TargetNamespaceValidator

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.