Package com.sun.msv.grammar

Examples of com.sun.msv.grammar.NameClassVisitor


       
        final RELAXNGReader reader = (RELAXNGReader)this.reader;
       
        reader.restrictionChecker.checkNameClass(nameClass);
       
        nameClass.visit( new NameClassVisitor() {
            public Object onAnyName( AnyNameClass nc ) { return null; }
            public Object onSimple(SimpleNameClass nc) {
                if(nc.namespaceURI.equals(infosetURI))
                    reader.reportError( RELAXNGReader.ERR_INFOSET_URI_ATTRIBUTE );
               
View Full Code Here


           
            exp.exp.getExpandedExp(reader.pool).visit(inAttribute);
            errorContext = oldContext;
        }
        protected void checkAttributeInfiniteName( final AttributeExp exp ) {
            exp.nameClass.visit( new NameClassVisitor() {
                public Object onAnyName( AnyNameClass nc ) { return error(); }
                public Object onSimple( SimpleNameClass nc ) { return null; }
                public Object onNsName( NamespaceNameClass nc ) { return error(); }
                public Object onNot( NotNameClass nc ) { throw new Error(); }    // should not be used
                public Object onDifference( DifferenceNameClass nc ) {
View Full Code Here

   
    final String MAGIC = ".";
    final Set possibleNames = new java.util.HashSet();
   
    // collect possible names
    nc.visit( new NameClassVisitor(){
      public Object onNsName( NamespaceNameClass nc ) {
        possibleNames.add( new StringPair(nc.namespaceURI, MAGIC) );
        return null;
      }
 
View Full Code Here

           
            exp.exp.getExpandedExp(reader.pool).visit(inAttribute);
            errorContext = oldContext;
        }
        protected void checkAttributeInfiniteName( final AttributeExp exp ) {
            exp.nameClass.visit( new NameClassVisitor() {
                public Object onAnyName( AnyNameClass nc ) { return error(); }
                public Object onSimple( SimpleNameClass nc ) { return null; }
                public Object onNsName( NamespaceNameClass nc ) { return error(); }
                public Object onNot( NotNameClass nc ) { throw new Error(); }    // should not be used
                public Object onDifference( DifferenceNameClass nc ) {
View Full Code Here

       
        final RELAXNGReader reader = (RELAXNGReader)this.reader;
       
        reader.restrictionChecker.checkNameClass(nameClass);
       
        nameClass.visit( new NameClassVisitor() {
            public Object onAnyName( AnyNameClass nc ) { return null; }
            public Object onSimple(SimpleNameClass nc) {
                if(nc.namespaceURI.equals(infosetURI))
                    reader.reportError( RELAXNGReader.ERR_INFOSET_URI_ATTRIBUTE );
               
View Full Code Here

TOP

Related Classes of com.sun.msv.grammar.NameClassVisitor

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.