source: branches/ant-install-branch/gsdl3/src/java/org/greenstone/gsdl3/gs3build/metadata/MetadataLabel.java@ 9858

Last change on this file since 9858 was 6287, checked in by cs025, 20 years ago

Various changes to the METS structures and identifier factories to
move towards updateable structures and to add section support.

  • Property svn:keywords set to Author Date Id Revision
File size: 668 bytes
Line 
1package org.greenstone.gsdl3.gs3build.metadata;
2
3public class MetadataLabel
4{
5 String namespace;
6 String label;
7
8 public MetadataLabel(String label)
9 { int colonAt = label.indexOf(":");
10 String namespace;
11
12 if (colonAt > 0) {
13 this.namespace = label.substring(0, colonAt);
14 this.label = label.substring(colonAt+1);
15 }
16 else {
17 this.namespace = GSDL3Namespace.GSDL3_NAMESPACE_ID;
18 this.label = label;
19 }
20 }
21
22 public String getNamespace()
23 { return this.namespace;
24 }
25
26 public String getLabel()
27 { return this.label;
28 }
29
30 public static String getDefaultNamespace()
31 { return GSDL3Namespace.GSDL3_NAMESPACE_ID;
32 }
33}
Note: See TracBrowser for help on using the repository browser.