mrglavas 2004/09/29 21:12:33 Added: java/src/org/apache/xerces/impl/dv/xs AnyAtomicDV.java Log: XML Schema 1.1: Adding a type validator for anyAtomicType
as described in the 07/16/2004 draft [1]. Thanks to Ankit Pasricha for this contribution. [1] http://www.w3.org/TR/2004/WD-xmlschema11-2-20040716 Revision Changes Path 1.1 xml-xerces/java/src/org/apache/xerces/impl/dv/xs/AnyAtomicDV.java Index: AnyAtomicDV.java =================================================================== /* * Copyright 2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.xerces.impl.dv.xs; import org.apache.xerces.impl.dv.InvalidDatatypeValueException; import org.apache.xerces.impl.dv.ValidationContext; /** * <p><b>EXPERIMENTAL: This class should not be considered stable. * It is likely it may be altered or replaced/removed in the future.</b></p> * Represent the schema type "anyAtomicType" * * @author Ankit Pasricha, IBM * * @version $Id: AnyAtomicDV.java,v 1.1 2004/09/30 04:12:32 mrglavas Exp $ */ class AnyAtomicDV extends TypeValidator { public short getAllowedFacets() { return 0; } public Object getActualValue(String content, ValidationContext context) throws InvalidDatatypeValueException { return content; } } // class AnyAtomicDV --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]