All Downloads are FREE. Search and download functionalities are using the official Maven repository.

msv.msv.src.com.sun.msv.reader.trex.NameClassDifferenceState Maven / Gradle / Ivy

/*
 * @(#)$Id: NameClassDifferenceState.java 1566 2003-06-09 20:37:49Z kk122374 $
 *
 * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved.
 * 
 * This software is the proprietary information of Sun Microsystems, Inc.  
 * Use is subject to license terms.
 * 
 */
package com.sun.msv.reader.trex;

import com.sun.msv.grammar.DifferenceNameClass;
import com.sun.msv.grammar.NameClass;

/**
 * parses <difference> name class.
 * 
 * @author Kohsuke KAWAGUCHI
 */
public class NameClassDifferenceState extends NameClassWithChildState {
    protected NameClass castNameClass( NameClass halfCasted, NameClass newChild ) {
        if( halfCasted==null )    return newChild;    // first item
        else return new DifferenceNameClass( halfCasted, newChild );
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy