01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.xml.impl;
17:
18: import org.eclipse.xsd.XSDAttributeDeclaration;
19: import org.eclipse.xsd.XSDNamedComponent;
20: import org.eclipse.xsd.XSDSchemaContent;
21: import org.eclipse.xsd.XSDTypeDefinition;
22: import org.geotools.xml.AttributeInstance;
23:
24: public class AttributeImpl extends InstanceComponentImpl implements
25: AttributeInstance {
26: XSDAttributeDeclaration decl;
27:
28: public AttributeImpl(XSDAttributeDeclaration decl) {
29: this .decl = decl;
30: }
31:
32: public XSDTypeDefinition getTypeDefinition() {
33: return decl.getTypeDefinition();
34: }
35:
36: public XSDAttributeDeclaration getAttributeDeclaration() {
37: return decl;
38: }
39:
40: public XSDNamedComponent getDeclaration() {
41: return getAttributeDeclaration();
42: }
43: }
|