Package com.sun.msv.relaxns.grammar

Examples of com.sun.msv.relaxns.grammar.ExternalElementExp


    private Expression resolveRef( String namespace, String label, String tagName ) {
        if( namespace==null ) {
            reportError( ERR_MISSING_ATTRIBUTE, tagName, "namespace" );
            return Expression.nullSet;
        }
        return new ExternalElementExp( pool, namespace, label, new LocatorImpl(locator) );
    }
View Full Code Here


    /** map from StringPair(namespace,label) to ExternalElementExp. */
    private final Map externalElementExps = new java.util.HashMap();
    private ExternalElementExp getExtElementExp( String namespace, String label )
    {
        StringPair name = new StringPair(namespace,label);
        ExternalElementExp exp = (ExternalElementExp)externalElementExps.get(name);
        if( exp!=null )    return exp;
       
        exp = new ExternalElementExp( pool, namespace, label, new LocatorImpl(locator) );
        externalElementExps.put( name, exp );
        return exp;
    }
View Full Code Here

                    // bind content model
                    exp.contentModel = exp.contentModel.visit(this);
                    return exp;
                }
           
                ExternalElementExp eexp = (ExternalElementExp)exp;
                IslandSchema is = provider.getSchemaByNamespace(eexp.namespaceURI);
                if(is==null) {
                    errorHandler.error( new SAXParseException(
                        localize(ERR_UNDEFINED_NAMESPACE, eexp.namespaceURI),
                        eexp.source) );
View Full Code Here

            IslandSchema is = provider.getSchemaByNamespace(namespace);
            ElementDecl[] rules = is.getElementDecls();
           
            for( int j=0; j<rules.length; j++ )
                exp = module.pool.createChoice(exp,
                    new ExternalElementExp(module.pool,namespace,rules[j].getName(),null));
        }
       
        return exp;
    }
View Full Code Here

    private Expression resolveRef( String namespace, String label, String tagName ) {
        if( namespace==null ) {
            reportError( ERR_MISSING_ATTRIBUTE, tagName, "namespace" );
            return Expression.nullSet;
        }
        return new ExternalElementExp( pool, namespace, label, new LocatorImpl(getLocator()) );
    }
View Full Code Here

                    // bind content model
                    exp.contentModel = exp.contentModel.visit(this);
                    return exp;
                }
           
                ExternalElementExp eexp = (ExternalElementExp)exp;
                IslandSchema is = provider.getSchemaByNamespace(eexp.namespaceURI);
                if(is==null) {
                    errorHandler.error( new SAXParseException(
                        localize(ERR_UNDEFINED_NAMESPACE, eexp.namespaceURI),
                        eexp.source) );
View Full Code Here

    /** map from StringPair(namespace,label) to ExternalElementExp. */
    private final Map externalElementExps = new java.util.HashMap();
    private ExternalElementExp getExtElementExp( String namespace, String label )
    {
        StringPair name = new StringPair(namespace,label);
        ExternalElementExp exp = (ExternalElementExp)externalElementExps.get(name);
        if( exp!=null )    return exp;
       
        exp = new ExternalElementExp( pool, namespace, label, new LocatorImpl(getLocator()) );
        externalElementExps.put( name, exp );
        return exp;
    }
View Full Code Here

            IslandSchema is = provider.getSchemaByNamespace(namespace);
            ElementDecl[] rules = is.getElementDecls();
           
            for( int j=0; j<rules.length; j++ )
                exp = module.pool.createChoice(exp,
                    new ExternalElementExp(module.pool,namespace,rules[j].getName(),null));
        }
       
        return exp;
    }
View Full Code Here

TOP

Related Classes of com.sun.msv.relaxns.grammar.ExternalElementExp

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.