01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package org.apache.xerces.impl.dv;
19:
20: /**
21: * ValidationContext has all the information required for the
22: * validation of: id, idref, entity, notation, qname
23: *
24: * @xerces.internal
25: *
26: * @author Sandy Gao, IBM
27: * @version $Id: ValidationContext.java 446751 2006-09-15 21:54:06Z mrglavas $
28: */
29: public interface ValidationContext {
30: // whether to validate against facets
31: public boolean needFacetChecking();
32:
33: // whether to do extra id/idref/entity checking
34: public boolean needExtraChecking();
35:
36: // whether we need to normalize the value that is passed!
37: public boolean needToNormalize();
38:
39: // are namespaces relevant in this context?
40: public boolean useNamespaces();
41:
42: // entity
43: public boolean isEntityDeclared(String name);
44:
45: public boolean isEntityUnparsed(String name);
46:
47: // id
48: public boolean isIdDeclared(String name);
49:
50: public void addId(String name);
51:
52: // idref
53: public void addIdRef(String name);
54:
55: // get symbol from symbol table
56: public String getSymbol(String symbol);
57:
58: // qname
59: public String getURI(String prefix);
60: }
|