22 package com.sun.org.apache.xerces.internal.impl.dv.xs;
23
24 import com.sun.org.apache.xerces.internal.impl.dv.DatatypeException;
25 import com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeFacetException;
26 import com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeValueException;
27 import com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo;
28 import com.sun.org.apache.xerces.internal.impl.dv.ValidationContext;
29 import com.sun.org.apache.xerces.internal.impl.dv.XSFacets;
30 import com.sun.org.apache.xerces.internal.impl.dv.XSSimpleType;
31 import com.sun.org.apache.xerces.internal.xs.StringList;
32 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem;
33 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
34 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
35 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
36
37 /**
38 * Base class for XSSimpleType wrapper implementations.
39 *
40 * @xerces.internal
41 *
42 * @version $Id: XSSimpleTypeDelegate.java,v 1.3 2010-11-01 04:39:47 joehw Exp $
43 */
44 public class XSSimpleTypeDelegate
45 implements XSSimpleType {
46
47 protected final XSSimpleType type;
48
49 public XSSimpleTypeDelegate(XSSimpleType type) {
50 if (type == null) {
51 throw new NullPointerException();
52 }
53 this.type = type;
54 }
55
56 public XSSimpleType getWrappedXSSimpleType() {
57 return type;
58 }
59
60 public XSObjectList getAnnotations() {
61 return type.getAnnotations();
62 }
|
22 package com.sun.org.apache.xerces.internal.impl.dv.xs;
23
24 import com.sun.org.apache.xerces.internal.impl.dv.DatatypeException;
25 import com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeFacetException;
26 import com.sun.org.apache.xerces.internal.impl.dv.InvalidDatatypeValueException;
27 import com.sun.org.apache.xerces.internal.impl.dv.ValidatedInfo;
28 import com.sun.org.apache.xerces.internal.impl.dv.ValidationContext;
29 import com.sun.org.apache.xerces.internal.impl.dv.XSFacets;
30 import com.sun.org.apache.xerces.internal.impl.dv.XSSimpleType;
31 import com.sun.org.apache.xerces.internal.xs.StringList;
32 import com.sun.org.apache.xerces.internal.xs.XSNamespaceItem;
33 import com.sun.org.apache.xerces.internal.xs.XSObjectList;
34 import com.sun.org.apache.xerces.internal.xs.XSSimpleTypeDefinition;
35 import com.sun.org.apache.xerces.internal.xs.XSTypeDefinition;
36
37 /**
38 * Base class for XSSimpleType wrapper implementations.
39 *
40 * @xerces.internal
41 *
42 */
43 public class XSSimpleTypeDelegate
44 implements XSSimpleType {
45
46 protected final XSSimpleType type;
47
48 public XSSimpleTypeDelegate(XSSimpleType type) {
49 if (type == null) {
50 throw new NullPointerException();
51 }
52 this.type = type;
53 }
54
55 public XSSimpleType getWrappedXSSimpleType() {
56 return type;
57 }
58
59 public XSObjectList getAnnotations() {
60 return type.getAnnotations();
61 }
|