Last change
on this file since 7186 was 5800, checked in by cs025, 21 years ago |
Adding gs3build
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
666 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.gs3build.schema;
|
---|
2 |
|
---|
3 | import org.w3c.dom.Element;
|
---|
4 | import org.w3c.dom.Node;
|
---|
5 | import org.w3c.dom.NodeList;
|
---|
6 |
|
---|
7 | public class SchemaSimpleType implements SchemaType
|
---|
8 | {
|
---|
9 | String name;
|
---|
10 |
|
---|
11 | public void SchemaSimpleType(Element element) throws SchemaException
|
---|
12 | {
|
---|
13 | this.name = element.getAttribute("name");
|
---|
14 | if (name == null)
|
---|
15 | { throw new SchemaException("Type defined without name");
|
---|
16 | }
|
---|
17 |
|
---|
18 | NodeList childNodes = element.getChildNodes();
|
---|
19 | for (int i = 0; i < childNodes.getLength(); i ++) {
|
---|
20 | Node node = childNodes.item(i);
|
---|
21 |
|
---|
22 | if (node.getNodeType() == org.w3c.dom.Node.ELEMENT_NODE) {
|
---|
23 | }
|
---|
24 | }
|
---|
25 | }
|
---|
26 |
|
---|
27 | public String getName()
|
---|
28 | { return this.name;
|
---|
29 | }
|
---|
30 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.