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

com.sun.msv.relaxns.grammar.DeclImpl Maven / Gradle / Ivy

There is a newer version: 2.2.5.1
Show newest version
/*
 * @(#)$Id: DeclImpl.java,v 1.6 2003/06/09 20:37:35 kk122374 Exp $
 *
 * 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.relaxns.grammar;

import org.xml.sax.SAXNotRecognizedException;

import com.sun.msv.grammar.Expression;
import com.sun.msv.grammar.ReferenceExp;

/**
 * Implementation of ElementDecl interface by MSV grammar model.
 * 
 * @author Kohsuke KAWAGUCHI
 */
public class DeclImpl
    implements    org.iso_relax.dispatcher.ElementDecl,
                org.iso_relax.dispatcher.AttributesDecl,
                java.io.Serializable {
    /** "meat" of this Rule. */
    public final Expression exp;
    
    /** name of this rule */
    protected final String name;
    
    public DeclImpl( ReferenceExp exp ) {
        this( exp.name, exp.exp );
    }
    public DeclImpl( String name, Expression exp ) {
        this.exp=exp;
        this.name=name;
    }
    
    public String getName() { return name; }
    
    public boolean getFeature( String feature ) throws SAXNotRecognizedException {
        throw new SAXNotRecognizedException(feature);
    }
    
    public Object getProperty( String property ) throws SAXNotRecognizedException {
        throw new SAXNotRecognizedException(property);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy