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;
17:
18: import org.eclipse.xsd.XSDNamedComponent;
19: import org.eclipse.xsd.XSDSchemaContent;
20: import org.eclipse.xsd.XSDTypeDefinition;
21:
22: public interface InstanceComponent {
23: /**
24: * @return The object containing the type definiton of the instance.
25: */
26: XSDTypeDefinition getTypeDefinition();
27:
28: /**
29: * @return The feature describing the component instance.
30: */
31: XSDNamedComponent getDeclaration();
32:
33: /**
34: * @return The namespace of the element;
35: */
36: String getNamespace();
37:
38: /**
39: * Sets the namespace of the element.
40: *
41: * @param namespace The new namespace.
42: */
43: void setNamespace(String namespace);
44:
45: /**
46: * @return The name of the element.
47: */
48: String getName();
49:
50: /**
51: * Sets the name of the element.
52: *
53: * @param name The new name.
54: */
55: void setName(String name);
56:
57: /**
58: * @return The text inside of the component, or the empty string if the
59: * component does not contain any text.
60: */
61: String getText();
62:
63: /**
64: * Sets the text of the element.
65: *
66: * @param text The new text
67: */
68: void setText(String text);
69: }
|