com.sun.msv.verifier.regexp.ComplexAcceptor Maven / Gradle / Ivy
/*
* @(#)$Id: ComplexAcceptor.java,v 1.8 2003/06/09 20:37:46 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.verifier.regexp;
import com.sun.msv.grammar.ElementExp;
import com.sun.msv.grammar.Expression;
import com.sun.msv.grammar.ExpressionPool;
import com.sun.msv.verifier.Acceptor;
/**
* Accept that is used when more than one pattern can be applicable to the current context.
*
* @author Kohsuke KAWAGUCHI
*/
public final class ComplexAcceptor extends ComplexAcceptorBaseImpl {
/**
* each item of this array should be considered as read-only.
*/
public final ElementExp[] owners;
private static Expression[] createDefaultContentModels( ElementExp[] owners, ExpressionPool pool ) {
Expression[] r = new Expression[owners.length];
for( int i=0; i © 2015 - 2025 Weber Informatics LLC | Privacy Policy