1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one or more 7 * contributor license agreements. See the NOTICE file distributed with 8 * this work for additional information regarding copyright ownership. 9 * The ASF licenses this file to You under the Apache License, Version 2.0 10 * (the "License"); you may not use this file except in compliance with 11 * the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package com.sun.org.apache.xerces.internal.impl.dv.dtd; 23 24 import com.sun.org.apache.xerces.internal.impl.dv.*; 25 26 /** 27 * NOTATIONValidator defines the interface that data type validators must obey. 28 * These validators can be supplied by the application writer and may be useful as 29 * standalone code as well as plugins to the validator architecture. 30 * 31 * @xerces.internal 32 * 33 * @author Jeffrey Rodriguez, IBM 34 * @author Sandy Gao, IBM 35 * 36 */ 37 public class NOTATIONDatatypeValidator implements DatatypeValidator { 38 39 // construct a NOTATION datatype validator 40 public NOTATIONDatatypeValidator() { 41 } 42 43 /** 44 * Checks that "content" string is valid NOTATION value. 45 * If invalid a Datatype validation exception is thrown. 46 * 47 * @param content the string value that needs to be validated 48 * @param context the validation context 49 * @throws InvalidDatatypeException if the content is 50 * invalid according to the rules for the validators 51 * @see InvalidDatatypeValueException 52 */ 53 public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException { 54 } 55 56 }