2.17.2: 2011-06-17

net.sf.basedb.util.bfs
Class MetadataModel.SectionEntry

java.lang.Object
  extended by net.sf.basedb.util.bfs.MetadataModel.SectionEntry
Enclosing class:
MetadataModel

public static class MetadataModel.SectionEntry
extends Object

Holds information about a section entry.


Field Summary
private  String key
           
private  String value
           
private  String[] values
           
 
Constructor Summary
MetadataModel.SectionEntry(String key, String... values)
          Create a new section entry with an array of values.
MetadataModel.SectionEntry(String key, String value)
          Create a new single-valued section entry.
 
Method Summary
 String getKey()
          Get the key of the entry.
 String getValue()
          Get the value of the entry.
 int getValueCount()
          Get the number of values in the entry.
 String[] getValues()
          Get all values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key

private String key

values

private String[] values

value

private String value
Constructor Detail

MetadataModel.SectionEntry

public MetadataModel.SectionEntry(String key,
                                  String value)
Create a new single-valued section entry.

Parameters:
key - The key of the entry
value - The value of the entry

MetadataModel.SectionEntry

public MetadataModel.SectionEntry(String key,
                                  String... values)
Create a new section entry with an array of values.

Parameters:
key - The key of the entry
values - An array with the values
Method Detail

getKey

public String getKey()
Get the key of the entry.


getValueCount

public int getValueCount()
Get the number of values in the entry.


getValue

public String getValue()
Get the value of the entry. If the entry is a multi-value entry, a single-value is created by concatenating the array of values using tab as a separator.

Returns:
The value of the entry

getValues

public String[] getValues()
Get all values.


2.17.2: 2011-06-17