KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dv > dtd > NOTATIONDatatypeValidator


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.dv.dtd;
18
19 import org.apache.xerces.impl.dv.*;
20
21 /**
22  * NOTATIONValidator defines the interface that data type validators must obey.
23  * These validators can be supplied by the application writer and may be useful as
24  * standalone code as well as plugins to the validator architecture.
25  *
26  * @xerces.internal
27  *
28  * @author Jeffrey Rodriguez, IBM
29  * @author Sandy Gao, IBM
30  *
31  * @version $Id: NOTATIONDatatypeValidator.java,v 1.8 2004/10/06 14:56:51 mrglavas Exp $
32  */

33  public class NOTATIONDatatypeValidator implements DatatypeValidator {
34  
35     // construct a NOTATION datatype validator
36
public NOTATIONDatatypeValidator() {
37     }
38
39     /**
40      * Checks that "content" string is valid NOTATION value.
41      * If invalid a Datatype validation exception is thrown.
42      *
43      * @param content the string value that needs to be validated
44      * @param context the validation context
45      * @throws InvalidDatatypeException if the content is
46      * invalid according to the rules for the validators
47      * @see InvalidDatatypeValueException
48      */

49     public void validate(String JavaDoc content, ValidationContext context) throws InvalidDatatypeValueException {
50     }
51
52 }
53
Popular Tags