KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dtd > models > ContentModelValidator


1 /*
2  * Copyright 1999-2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.dtd.models;
18
19 import org.apache.xerces.xni.QName;
20
21 /**
22  * @xerces.internal
23  *
24  * @version $Id: ContentModelValidator.java,v 1.6 2004/10/04 22:00:42 mrglavas Exp $
25  */

26 public interface ContentModelValidator {
27
28     //
29
// Methods
30
//
31

32     /**
33      * validate
34      *
35      * @param children
36      * @param offset
37      * @param length
38      *
39      * @return The value -1 if fully valid, else the 0 based index of the child
40      * that first failed. If the value returned is equal to the number
41      * of children, then the specified children are valid but additional
42      * content is required to reach a valid ending state.
43      */

44     public int validate(QName[] children, int offset, int length);
45
46 } // interface ContentModelValidator
47
Popular Tags