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  * <P>StringValidator validates that XML content is a W3C string type.</P>
  28  * <P>The string datatype represents character strings in XML. The
  29  * value space of string is the set of finite-length sequences
  30  * of characters (as defined in [XML 1.0 Recommendation
  31  * (Second Edition)]) that match the Char production
  32  * from [XML 1.0 Recommendation (Second Edition)].
  33  * A character is an atomic unit of communication; it
  34  * is not further specified except to note that every
  35  * character has a corresponding Universal Code Set
  36  * code point ([ISO 10646],[Unicode] and [Unicode3]),
  37  * which is an integer.</P>
  38  *
  39  * @xerces.internal
  40  *
  41  */
  42 public class StringDatatypeValidator implements DatatypeValidator {
  43 
  44     // construct a string datatype validator
  45     public StringDatatypeValidator() {
  46     }
  47 
  48     /**
  49      * Checks that "content" string is valid string value.
  50      * If invalid a Datatype validation exception is thrown.
  51      *
  52      * @param content       the string value that needs to be validated
  53      * @param context       the validation context
  54      * @throws InvalidDatatypeException if the content is
  55      *         invalid according to the rules for the validators
  56      * @see InvalidDatatypeValueException
  57      */
  58     public void validate(String content, ValidationContext context) throws InvalidDatatypeValueException {
  59     }
  60 
  61 }