01: package com.sun.xml.xsom.impl;
02:
03: import com.sun.xml.xsom.ForeignAttributes;
04: import org.relaxng.datatype.ValidationContext;
05: import org.xml.sax.Locator;
06: import org.xml.sax.helpers.AttributesImpl;
07:
08: /**
09: * Remembers foreign attributes.
10: *
11: * @author Kohsuke Kawaguchi
12: */
13: public final class ForeignAttributesImpl extends AttributesImpl
14: implements ForeignAttributes {
15: private final ValidationContext context;
16: private final Locator locator;
17: /**
18: * {@link ForeignAttributes} forms a linked list.
19: */
20: final ForeignAttributesImpl next;
21:
22: public ForeignAttributesImpl(ValidationContext context,
23: Locator locator, ForeignAttributesImpl next) {
24: this .context = context;
25: this .locator = locator;
26: this .next = next;
27: }
28:
29: public ValidationContext getContext() {
30: return context;
31: }
32:
33: public Locator getLocator() {
34: return locator;
35: }
36: }
|