1
2
3
4
5
6
7
8
9
10
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 }