Package com.sun.msv.reader

Examples of com.sun.msv.reader.State


    }
   
    protected State createChildState( StartTagInfo tag ) {
        final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
       
        State s;
        if( super.exp==Expression.epsilon ) {
            // model group must be the first expression child.
            s = reader.createModelGroupState(this,tag);
            if(s!=null )    return s;
        }
View Full Code Here


       
        // simpleContent, ComplexContent, group, all, choice, and sequence
        // are allowed only when we haven't seen type definition.
        if(tag.localName.equals("simpleContent") )    return reader.sfactory.simpleContent(this,tag,decl);
        if(tag.localName.equals("complexContent") )    return reader.sfactory.complexContent(this,tag,decl);
        State s = reader.createModelGroupState(this,tag);
        if(s!=null)        return s;
       
        if( super.exp==null ) {
            // no content model was given.
            // I couldn't "decipher" what should we do in this case.
View Full Code Here

    {// within the island of XSD, foreign namespaces are prohibited.
        final StartTagInfo tag = new StartTagInfo(
            namespaceURI,localName,qName,new AttributesImpl(atts),(IDContextProvider2)null);
        // we have to copy Attributes, otherwise it will be mutated by SAX parser
           
        State nextState = createChildState(tag);
        if(nextState!=null) {
            reader.pushState(nextState,this,tag);
            return;
        }
               
View Full Code Here

            return Expression.anyString;
        }
    }
   
    protected State createChildState( StartTagInfo tag ) {
        State next = getReader().createFacetState(this,tag);
        if(next!=null)        return next;            // facets
       
        return super.createChildState(tag);            // or delegate to the base class
    }
View Full Code Here

        // grammar has to be treated separately so as not to
        // create unnecessary TREXGrammar object.
        if(tag.localName.equals("grammar"))
            return new GrammarState();
       
        State s = super.createChildState(tag);
        if(s!=null) {
            // other pattern element is specified.
            // create wrapper grammar
            final TREXBaseReader reader = (TREXBaseReader)this.reader;
            reader.grammar = reader.sfactory.createGrammar( reader.pool, null );
View Full Code Here

   
    protected State createChildState( StartTagInfo tag )
    {
        if( !tag.namespaceURI.equals(RELAXCoreReader.RELAXCoreNamespace) )    return null;
       
        State next;
       
        // particles
        next = reader.createExpressionChildState(this,tag);
        if(next!=null)        return next;
       
View Full Code Here

        // grammar has to be treated separately so as not to
        // create unnecessary TREXGrammar object.
//        if(tag.localName.equals("grammar"))
//            return new GrammarState();
       
        State s = reader.createExpressionChildState(this,tag);
//        if(s!=null) {
//            // other pattern element is specified.
//            // create wrapper grammar
//            final TREXBaseReader reader = (TREXBaseReader)this.reader;
//            reader.grammar = new TREXGrammar( reader.pool, null );
View Full Code Here

        final XMLSchemaReader reader = (XMLSchemaReader)this.reader;
       
        if( incubator==null && tag.localName.equals("simpleType") )
            return reader.sfactory.simpleType(this,tag);
       
        State s = reader.createAttributeState(this,tag);
        if(s!=null )    return s;
       
        return reader.createFacetState(this,tag);    // facets
    }
View Full Code Here

    }

    protected State createChildState(StartTagInfo tag) {
        if (nameClass == null) // nameClass should be specified before content model.
            {
            State nextState = ((TREXBaseReader) reader).createNameClassChildState(this, tag);
            if (nextState != null)
                return nextState;

            // to provide better error message, analyze the situation further.
            // users tend to forget to supply nameClass and name attribute.
View Full Code Here

        // grammar has to be treated separately so as not to
        // create unnecessary TREXGrammar object.
//        if(tag.localName.equals("grammar"))
//            return new GrammarState();
       
        State s = reader.createExpressionChildState(this,tag);
//        if(s!=null) {
//            // other pattern element is specified.
//            // create wrapper grammar
//            final TREXBaseReader reader = (TREXBaseReader)this.reader;
//            reader.grammar = new TREXGrammar( reader.pool, null );
View Full Code Here

TOP

Related Classes of com.sun.msv.reader.State

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.