01: package com.sun.xml.xsom;
02:
03: import org.xml.sax.Attributes;
04: import org.xml.sax.Locator;
05: import org.relaxng.datatype.ValidationContext;
06:
07: /**
08: * Foreign attributes on schema elements.
09: *
10: * <p>
11: * This is not a schema component as defined in the spec,
12: * but this is often useful for a schema processing application.
13: *
14: * @author Kohsuke Kawaguchi
15: */
16: public interface ForeignAttributes extends Attributes {
17: /**
18: * Returns context information of the element to which foreign attributes
19: * are attached.
20: *
21: * <p>
22: * For example, this can be used to resolve relative references to other resources
23: * (by using {@link ValidationContext#getBaseUri()}) or to resolve
24: * namespace prefixes in the attribute values (by using {@link ValidationContext#resolveNamespacePrefix(String)}.
25: *
26: * @return
27: * always non-null.
28: */
29: ValidationContext getContext();
30:
31: /**
32: * Returns the location of the element to which foreign attributes
33: * are attached.
34: */
35: Locator getLocator();
36: }
|