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  * @version $Id: ValidationContext.java,v 1.6 2010/07/23 02:09:29 joehw Exp $
33  */
34 public interface ValidationContext {
35     // whether to validate against facets
needFacetChecking()36     public boolean needFacetChecking();
37 
38     // whether to do extra id/idref/entity checking
needExtraChecking()39     public boolean needExtraChecking();
40 
41     // whether we need to normalize the value that is passed!
needToNormalize()42     public boolean needToNormalize();
43 
44     // are namespaces relevant in this context?
useNamespaces()45     public boolean useNamespaces();
46 
47     // entity
isEntityDeclared(String name)48     public boolean isEntityDeclared (String name);
isEntityUnparsed(String name)49     public boolean isEntityUnparsed (String name);
50 
51     // id
isIdDeclared(String name)52     public boolean isIdDeclared (String name);
addId(String name)53     public void    addId(String name);
54 
55     // idref
addIdRef(String name)56     public void addIdRef(String name);
57 
58     // get symbol from symbol table
getSymbol(String symbol)59     public String getSymbol (String symbol);
60 
61     // qname
getURI(String prefix)62     public String getURI(String prefix);
63 
64     // Locale
getLocale()65     public Locale getLocale();
66 
67 }
68