com.sun.msv.verifier.identity.MatcherBundle Maven / Gradle / Ivy
/*
* @(#)$Id: MatcherBundle.java,v 1.4 2003/06/09 20:37:43 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.identity;
import org.relaxng.datatype.Datatype;
import org.xml.sax.SAXException;
/**
* Base implementation of Matcher coordinator.
*
* This class behaves as a parent of several other matchers, or as a composite
* XPath matcher.
* Those child matchers are not directly registered to IDConstraintChecker.
* Instead, they receive notifications through this object.
*
* @author Kohsuke KAWAGUCHI
*/
class MatcherBundle extends Matcher {
/** child matchers. */
protected Matcher[] children;
/** depth. */
private int depth = 0;
protected final int getDepth() { return depth; }
/**
* the derived class must initialize the children field appropriately.
*/
protected MatcherBundle( IDConstraintChecker owner ) {
super(owner);
}
protected void startElement( String namespaceURI, String localName ) throws SAXException {
depth++;
for( int i=0; i © 2015 - 2025 Weber Informatics LLC | Privacy Policy