View Javadoc

1   /*
2    * Copyright 1999-2006 Faculty of Mathematics, Physics
3    * and Informatics, Comenius University, Bratislava. This file is protected by
4    * the Mozilla Public License version 1.1 (the License); you may not use this
5    * file except in compliance with the License. You may obtain a copy of the
6    * License at http://euromath2.sourceforge.net/license.html Unless required by
7    * applicable law or agreed to in writing, software distributed under the
8    * License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
9    * OF ANY KIND, either express or implied. See the License for the specific
10   * language governing permissions and limitations under the License.
11   */
12  package sk.uniba.euromath.document.schema.plug;
13  import java.util.Set;
14  /***
15   * Functionality to return information which foreign qname is the rule able to
16   * accept/generate.
17   * @author Martin Vysny
18   */
19  public interface IForeignNodeP {
20  	/***
21  	 * Tries to obtain a list of namespaces of qnames that are contained in this
22  	 * name list. If the set cannot be computed (or it would be infinite) then
23  	 * return <code>null</code>.
24  	 * @return namespaces of items contained in the namelist, or
25  	 * <code>null</code> if it cannot be computed and/or represented.
26  	 * <code>null</code> namespace is represented as an empty string.
27  	 */
28  	public Set<String> getNamespaces();
29  	/***
30  	 * Checks if the namelist accepts/contains at least one qname from given
31  	 * namespace.
32  	 * @param namespaceURI the namespace to check.
33  	 * @return true if the namelist accepts at least one qname with given
34  	 * namespace.
35  	 */
36  	public boolean acceptsNamespace(String namespaceURI);
37  }