01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.impl.dv.dtd;
19:
20: import org.apache.xerces.impl.dv.*;
21:
22: /**
23: * <P>StringValidator validates that XML content is a W3C string type.</P>
24: * <P>The string datatype represents character strings in XML. The
25: * value space of string is the set of finite-length sequences
26: * of characters (as defined in [XML 1.0 Recommendation
27: * (Second Edition)]) that match the Char production
28: * from [XML 1.0 Recommendation (Second Edition)].
29: * A character is an atomic unit of communication; it
30: * is not further specified except to note that every
31: * character has a corresponding Universal Code Set
32: * code point ([ISO 10646],[Unicode] and [Unicode3]),
33: * which is an integer.</P>
34: *
35: * @xerces.internal
36: *
37: * @version $Id: StringDatatypeValidator.java 446749 2006-09-15 21:51:23Z mrglavas $
38: */
39: public class StringDatatypeValidator implements DatatypeValidator {
40:
41: // construct a string datatype validator
42: public StringDatatypeValidator() {
43: }
44:
45: /**
46: * Checks that "content" string is valid string value.
47: * If invalid a Datatype validation exception is thrown.
48: *
49: * @param content the string value that needs to be validated
50: * @param context the validation context
51: * @throws InvalidDatatypeException if the content is
52: * invalid according to the rules for the validators
53: * @see InvalidDatatypeValueException
54: */
55: public void validate(String content, ValidationContext context)
56: throws InvalidDatatypeValueException {
57: }
58:
59: }
|