Last change
on this file since 12188 was 12188, checked in by kjdon, 18 years ago |
Initial revision
|
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
450 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.gs3build.schema;
|
---|
2 |
|
---|
3 | import java.util.HashMap;
|
---|
4 | import java.util.Map;
|
---|
5 |
|
---|
6 | public class SchemaTypeMap
|
---|
7 | {
|
---|
8 | Map map;
|
---|
9 | public static final SchemaTypeMap theMap;
|
---|
10 |
|
---|
11 | static {
|
---|
12 | theMap = new SchemaTypeMap();
|
---|
13 | }
|
---|
14 |
|
---|
15 | public SchemaTypeMap()
|
---|
16 | { this.map = new HashMap();
|
---|
17 | }
|
---|
18 |
|
---|
19 | public void addType(SchemaType type)
|
---|
20 | { this.map.put(type.getName(), type);
|
---|
21 | }
|
---|
22 |
|
---|
23 | public SchemaType getType(String name)
|
---|
24 | { return (SchemaType) this.map.get(name);
|
---|
25 | }
|
---|
26 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.