Package com.sun.msv.grammar

Examples of com.sun.msv.grammar.ChoiceExp


                               
            final Set items = new java.util.HashSet();
            boolean more = false;
                               
           
            ChoiceExp ch = (ChoiceExp)constraint;
            Expression[] children = ch.getChildren();                   
            for( int i=0; i<children.length; i++ ) {
                if( children[i] instanceof ValueExp )
                    items.add( ((ValueExp)children[i]).value.toString() );
                else
                    // this is a fairly complex expression
View Full Code Here


        final Set s = new java.util.HashSet();
        boolean more = false;
               
        while( e instanceof ChoiceExp ) {
            ChoiceExp ch = (ChoiceExp)e;
                   
            NameClass nc = ((AttributeExp)ch.exp2).nameClass;
            if( nc instanceof SimpleNameClass )
                s.add( nc.toString() );
            else
View Full Code Here

     * @return
     *        true if this method is abstract.
     */
    public boolean isAbstract() {
        if( exp instanceof ChoiceExp ) {
            ChoiceExp cexp = (ChoiceExp)exp;
            if(cexp.exp1!=body && cexp.exp2!=body)
                throw new Error();    // assertion failed
            return true;
        }
       
View Full Code Here

                               
            final Set items = new java.util.HashSet();
            boolean more = false;
                               
           
            ChoiceExp ch = (ChoiceExp)constraint;
            Expression[] children = ch.getChildren();                   
            for( int i=0; i<children.length; i++ ) {
                if( children[i] instanceof ValueExp )
                    items.add( ((ValueExp)children[i]).value.toString() );
                else
                    // this is a fairly complex expression
View Full Code Here

        final Set s = new java.util.HashSet();
        boolean more = false;
               
        while( e instanceof ChoiceExp ) {
            ChoiceExp ch = (ChoiceExp)e;
                   
            NameClass nc = ((AttributeExp)ch.exp2).nameClass;
            if( nc instanceof SimpleNameClass )
                s.add( nc.toString() );
            else
View Full Code Here

     * @return
     *        true if this method is abstract.
     */
    public boolean isAbstract() {
        if( exp instanceof ChoiceExp ) {
            ChoiceExp cexp = (ChoiceExp)exp;
            if(cexp.exp1!=body && cexp.exp2!=body)
                throw new Error();    // assertion failed
            return true;
        }
       
View Full Code Here

TOP

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

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.