/*   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.
 */

// TODO - consider moving this to public ....

package org.apache.xmlbeans.impl.common;

public interface XmlLocale
{
    boolean sync   ( );
    boolean noSync ( );

    void enter ( );
    void exit  ( );

    // whether lexFloat/lexDouble should reject lexical forms that are outside
    // the xsd:float/xsd:double space (hex floats, the java "Infinity" token and
    // the f/F/d/D suffix). Driven by XmlOptions.setLoadStrictFloatingPoint.
    default boolean isLoadStrictFloatingPoint ( ) { return false; }

    // whether xsd:decimal lexing should accept scientific/exponent notation
    // (e.g. "1E5"), which is outside the xsd:decimal lexical space. Defaults to
    // false (reject). Driven by XmlOptions.setLoadAllowDecimalExponent.
    default boolean isLoadAllowDecimalExponent ( ) { return false; }
}
