KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dv > ValidationContext


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.dv;
18
19 /**
20  * ValidationContext has all the information required for the
21  * validation of: id, idref, entity, notation, qname
22  *
23  * @xerces.internal
24  *
25  * @author Sandy Gao, IBM
26  * @version $Id: ValidationContext.java,v 1.5 2004/10/06 14:56:50 mrglavas Exp $
27  */

28 public interface ValidationContext {
29     // whether to validate against facets
30
public boolean needFacetChecking();
31
32     // whether to do extra id/idref/entity checking
33
public boolean needExtraChecking();
34
35     // whether we need to normalize the value that is passed!
36
public boolean needToNormalize();
37
38     // are namespaces relevant in this context?
39
public boolean useNamespaces();
40
41     // entity
42
public boolean isEntityDeclared (String JavaDoc name);
43     public boolean isEntityUnparsed (String JavaDoc name);
44
45     // id
46
public boolean isIdDeclared (String JavaDoc name);
47     public void addId(String JavaDoc name);
48
49     // idref
50
public void addIdRef(String JavaDoc name);
51
52     // get symbol from symbol table
53
public String JavaDoc getSymbol (String JavaDoc symbol);
54
55     // qname
56
public String JavaDoc getURI(String JavaDoc prefix);
57 }
58
Popular Tags