286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001, 2002,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.dv;
286N/A
286N/Aimport java.util.Locale;
286N/A
286N/A/**
286N/A * ValidationContext has all the information required for the
286N/A * validation of: id, idref, entity, notation, qname
286N/A *
286N/A * @xerces.internal
286N/A *
286N/A * @author Sandy Gao, IBM
286N/A * @version $Id: ValidationContext.java,v 1.6 2010/07/23 02:09:29 joehw Exp $
286N/A */
286N/Apublic interface ValidationContext {
286N/A // whether to validate against facets
286N/A public boolean needFacetChecking();
286N/A
286N/A // whether to do extra id/idref/entity checking
286N/A public boolean needExtraChecking();
286N/A
286N/A // whether we need to normalize the value that is passed!
286N/A public boolean needToNormalize();
286N/A
286N/A // are namespaces relevant in this context?
286N/A public boolean useNamespaces();
286N/A
286N/A // entity
286N/A public boolean isEntityDeclared (String name);
286N/A public boolean isEntityUnparsed (String name);
286N/A
286N/A // id
286N/A public boolean isIdDeclared (String name);
286N/A public void addId(String name);
286N/A
286N/A // idref
286N/A public void addIdRef(String name);
286N/A
286N/A // get symbol from symbol table
286N/A public String getSymbol (String symbol);
286N/A
286N/A // qname
286N/A public String getURI(String prefix);
286N/A
286N/A // Locale
286N/A public Locale getLocale();
286N/A
286N/A}