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.validation; 18 19 20 /** 21 * The entity state interface defines methods that must be implemented 22 * by components that store information about entity declarations, as well as by 23 * entity validator that will need to validate attributes of type entity. 24 * 25 * @xerces.internal 26 * 27 * @author Elena Litani, IBM 28 * @version $Id: EntityState.java,v 1.6 2004/10/04 22:07:41 mrglavas Exp $ 29 */ 30 public interface EntityState { 31 /** 32 * Query method to check if entity with this name was declared. 33 * 34 * @param name 35 * @return true if name is a declared entity 36 */ 37 public boolean isEntityDeclared (String name); 38 39 /** 40 * Query method to check if entity is unparsed. 41 * 42 * @param name 43 * @return true if name is an unparsed entity 44 */ 45 public boolean isEntityUnparsed (String name); 46 } 47