|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.util.bfs.MetadataModel.Section
public static class MetadataModel.Section
Holds information about a section.
Field Summary | |
---|---|
private List<MetadataModel.SectionEntry> |
entries
|
private String |
name
|
Constructor Summary | |
---|---|
MetadataModel.Section(String name)
Create a new section. |
Method Summary | |
---|---|
void |
addEntry(MetadataModel.SectionEntry entry)
Add a new entry to this section. |
MetadataModel.SectionEntry |
addEntry(String key,
String... values)
Add a new entry to this section. |
MetadataModel.SectionEntry |
getEntry(int index)
Get the entry in this section with the given index. |
MetadataModel.SectionEntry |
getEntry(String key)
Get the first entry in this section with a given key. |
int |
getEntryCount()
Get the number of entries in this section. |
int |
getIndex(String key)
Get the index of the first entry with the given key. |
String |
getKey(int index)
Get the key of the entry at the given index. |
String |
getName()
Get the name of the section. |
String |
getValue(int index)
Get the value of the entry at the given index. |
String |
getValue(String key)
Get the value of the first entry with a given key. |
String[] |
getValues(int index)
Get the values of the entry at the given index. |
String[] |
getValues(String key)
Get the values of the first entry with a given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String name
private List<MetadataModel.SectionEntry> entries
Constructor Detail |
---|
public MetadataModel.Section(String name)
name
- The name of the sectionMethod Detail |
---|
public String getName()
public int getEntryCount()
public void addEntry(MetadataModel.SectionEntry entry)
public MetadataModel.SectionEntry addEntry(String key, String... values)
key
- The key of the entryvalues
- The valuespublic MetadataModel.SectionEntry getEntry(int index)
index
- The index of the entry, a value between 0 and
getEntryCount()
- 1
public MetadataModel.SectionEntry getEntry(String key)
key
- The key to look for
public String getKey(int index)
index
- The index of the entry, a value between 0 and
getEntryCount()
- 1
public int getIndex(String key)
key
- The key to look for
public String getValue(int index)
index
- The index of the entry, a value between 0 and
getEntryCount()
- 1
public String[] getValues(int index)
index
- The index of the entry, a value between 0 and
getEntryCount()
- 1
public String getValue(String key)
key
- The key of the entry
public String[] getValues(String key)
key
- The key of the entry
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |