com.sun.msv.relaxns.grammar.relax.RELAXIslandSchema Maven / Gradle / Ivy
/*
* @(#)$Id: RELAXIslandSchema.java,v 1.10 2003/06/09 20:37:36 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.relax;
import java.util.Iterator;
import java.util.Set;
import org.iso_relax.dispatcher.ElementDecl;
import org.iso_relax.dispatcher.IslandSchema;
import org.iso_relax.dispatcher.SchemaProvider;
import org.xml.sax.ErrorHandler;
import org.xml.sax.SAXException;
import com.sun.msv.grammar.Expression;
import com.sun.msv.grammar.Grammar;
import com.sun.msv.grammar.ReferenceExp;
import com.sun.msv.grammar.relax.AttPoolClause;
import com.sun.msv.grammar.relax.ElementRules;
import com.sun.msv.grammar.relax.HedgeRules;
import com.sun.msv.grammar.relax.RELAXModule;
import com.sun.msv.relaxns.grammar.DeclImpl;
import com.sun.msv.relaxns.grammar.ExternalElementExp;
import com.sun.msv.relaxns.verifier.IslandSchemaImpl;
/**
* IslandSchema implementation for RELXA module.
*
* @author Kohsuke KAWAGUCHI
*/
public class RELAXIslandSchema extends IslandSchemaImpl
{
/** underlying RELAX module which this IslandSchema is representing */
protected final RELAXModule module;
protected Set pendingAnyOtherElements;
public RELAXIslandSchema( RELAXModule module, Set pendingAnyOtherElements ) {
this.module = module;
this.pendingAnyOtherElements = pendingAnyOtherElements;
// export elementRules as ElementDecl
ReferenceExp[] refs= module.elementRules.getAll();
for( int i=0; i © 2015 - 2025 Weber Informatics LLC | Privacy Policy