corina
Class Metadata
java.lang.Object
|
+--corina.Metadata
- public class Metadata
- extends Object
A list of metadata fields for a Sample.
This class is never instantiated; only
Metadata.getFields()
is ever called, to get a List of
Metadata.Fields. A Field is a mapping of:
- variable (Map key)
- description
- help (tooltip)
- suggested values
- read-only flag
Currently, this class is used by gui.MetaPanel
and
format.HTML
. It should be user wherever the entire
list of metadata for a Sample are listed for editing or
display.
This class gets the information from a properties file. Such a
file might look similar to this:
id.name = ID
title.name = Title
dating.name = Dating
dating.help = Is the sample relatively (R) or absolutely (A) dated?
dating.options = R,A
author.name = Author
author.readonly = true
The metadata variables are: id, title, dating, unmeas_pre,
unmeas_post, type, species, format, index_type, sapwood, pith,
terminal, continuous, quality, reconciled, author, comments.
This file may be localized by changing the .name values in a
copy of the MetadataBundle file.
- Version:
- $Id: Metadata.java,v 1.2 2002/06/03 15:08:42 bitpoet Exp $
- Author:
- Ken Harris
Inner Class Summary |
static class |
Metadata.Field
A variable record, which holds a (variable => description,
values, readonly) mapping. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fields
public static Metadata.Field[] fields
preview
public static Metadata.Field[] preview
Metadata
public Metadata()