Examples of IgnoreState


Examples of com.sun.msv.reader.IgnoreState

    public void startElement( String namespace, String localName, String qName, Attributes atts )
        throws SAXException
    {
        if(bailOut) {
            // in bail-out mode, ignore all children.
            reader.pushState( new IgnoreState(), this, new StartTagInfo(namespace,localName,qName,atts,reader) );
            return;
        }
       
        if(!inlineModuleExpected) {
            // expecets nothing
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

        public State any                    (State parent,StartTagInfo tag)    { return new AnyElementState(); }
        public State anyAttribute        (State parent,StartTagInfo tag)    { return new AnyAttributeState(); }
        public State include                (State parent,StartTagInfo tag)    { return new IncludeState(); }
        public State import_                (State parent,StartTagInfo tag)    { return new ImportState(); }
        public State redefine            (State parent,StartTagInfo tag)    { return new RedefineState(); }
        public State notation            (State parent,StartTagInfo tag)    { return new IgnoreState(); }
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

    protected State createChildState( StartTagInfo tag ) {
        // accepts elements from the same namespace only.
        if( !startTag.namespaceURI.equals(tag.namespaceURI) )    return null;
       
        if( tag.localName.equals("annotation") )    return new IgnoreState();
        if( tag.localName.equals("simpleType") )    return new SimpleTypeState();
        if( FacetState.facetNames.contains(tag.localName) ) {
            if( incubator==null ) {
                reader.reportError( GrammarReader.ERR_MISSING_ATTRIBUTE, "restriction", "base" );
                onEndChild(new XSDatatypeExp(StringType.theInstance,reader.pool));
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

               
        // unacceptable element
        reader.reportError(GrammarReader.ERR_MALPLACED_ELEMENT, tag.qName );
        // try to recover from error by just ignoring it.
        // element of a foreign namespace. skip subtree
        reader.pushState(new IgnoreState(),this,tag);
    }
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

        if( !startTag.namespaceURI.equals(tag.namespaceURI) )    return null;
       
        final String name = startTag.getAttribute("name");
        String uri = getTargetNamespaceUri();
       
        if( tag.localName.equals("annotation") )    return new IgnoreState();
        if( tag.localName.equals("restriction") )    return new RestrictionState(uri,name);
        if( tag.localName.equals("list") )            return new ListState(uri,name);
        if( tag.localName.equals("union") )        return new UnionState(uri,name);
       
        return null;    // unrecognized
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

                                                 
    protected State createChildState( StartTagInfo tag ) {
        // accepts elements from the same namespace only.
        if( !startTag.namespaceURI.equals(tag.namespaceURI) )    return null;
       
        if( tag.localName.equals("annotation") )    return new IgnoreState();
        if( tag.localName.equals("simpleType") )    return new SimpleTypeState();
       
        return null;    // unrecognized
    }
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

    protected State createChildState( StartTagInfo tag ) {
        // accepts elements from the same namespace only.
        if( !startTag.namespaceURI.equals(tag.namespaceURI) )    return null;
       
        if( tag.localName.equals("annotation") )    return new IgnoreState();
        if( tag.localName.equals("simpleType") )    return new SimpleTypeState();
       
        return null;    // unrecognized
    }
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

            if(v==null) {
                reportError( ERR_UNKNOWN_DATATYPE_VOCABULARY, tag.namespaceURI );
                // put a dummy vocabulary into the map
                // so that user will never receive the same error again.
                grammar.dataTypes.put( tag.namespaceURI, new UndefinedDataTypeVocabulary() );
                return new IgnoreState();    // recover by ignoring this element.
            }           
           
            return v.createTopLevelReaderState(tag);
        }
           
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

     * will be skipped (due to the double inclusion).
     */
    private boolean ignoreContents = false;
   
    protected State createChildState( StartTagInfo tag ) {
        if( ignoreContents    )        return new IgnoreState();
        else                        return super.createChildState(tag);
    }
View Full Code Here

Examples of com.sun.msv.reader.IgnoreState

     * and this class is used to prevent further repetitive error messages.
     */
    private static class UndefinedDataTypeVocabulary implements DataTypeVocabulary
    {
        public State createTopLevelReaderState( StartTagInfo tag )
        { return new IgnoreState(); }    // ignore everything
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.