1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Copyright 2001, 2002,2004 The Apache Software Foundation.
   7  *
   8  * Licensed under the Apache License, Version 2.0 (the "License");
   9  * you may not use this file except in compliance with the License.
  10  * You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl.dv;
  22 
  23 import java.util.Locale;
  24 
  25 /**
  26  * ValidationContext has all the information required for the
  27  * validation of: id, idref, entity, notation, qname
  28  *
  29  * @xerces.internal
  30  *
  31  * @author Sandy Gao, IBM
  32  */
  33 public interface ValidationContext {
  34     // whether to validate against facets
  35     public boolean needFacetChecking();
  36 
  37     // whether to do extra id/idref/entity checking
  38     public boolean needExtraChecking();
  39 
  40     // whether we need to normalize the value that is passed!
  41     public boolean needToNormalize();
  42 
  43     // are namespaces relevant in this context?
  44     public boolean useNamespaces();
  45 
  46     // entity
  47     public boolean isEntityDeclared (String name);
  48     public boolean isEntityUnparsed (String name);
  49 
  50     // id
  51     public boolean isIdDeclared (String name);
  52     public void    addId(String name);
  53 
  54     // idref
  55     public void addIdRef(String name);
  56 
  57     // get symbol from symbol table
  58     public String getSymbol (String symbol);
  59 
  60     // qname
  61     public String getURI(String prefix);
  62 
  63     // Locale
  64     public Locale getLocale();
  65 
  66 }