|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface MetaData
Generic meta data interface.
| Method Summary | |
|---|---|
void |
addValue(java.lang.String key,
java.lang.String value)
Addds a value for a certain key. |
void |
forcedReplaceBy(MetaData other)
Replace the contents of the current meta data by the contents of other. |
java.lang.String[] |
getAvailableKeys()
Get all available keys. |
ElementSet |
getElementSet()
|
java.lang.String |
getFirstValue(java.lang.String key)
Returns the first value for a certain key. |
long |
getLastModified()
Get last modification date. |
java.lang.String[] |
getPossibleKeys()
|
java.lang.String[] |
getValues(java.lang.String key)
Returns the values for a certain key. |
boolean |
isValidAttribute(java.lang.String key)
Checks if a key represents a valid metadata attribute. |
void |
removeAllValues(java.lang.String key)
Removes all values for a certain key. |
void |
replaceBy(MetaData other)
Replace the contents of the current meta data by the contents of other. |
void |
setValue(java.lang.String key,
java.lang.String value)
Sets the value for a certain key. |
| Method Detail |
|---|
java.lang.String[] getValues(java.lang.String key)
throws MetaDataException
key - The key.
MetaDataException - when something went wrong.
java.lang.String getFirstValue(java.lang.String key)
throws MetaDataException
key - The key.
null if no value is set for this key.
MetaDataException - if an error occurs.java.lang.String[] getAvailableKeys()
void setValue(java.lang.String key,
java.lang.String value)
throws MetaDataException
key - The key.value - The value to set.
MetaDataException - when something went wrong.
void addValue(java.lang.String key,
java.lang.String value)
throws MetaDataException
key - The key.value - The value to add.
MetaDataException - if there's already a value set and the element doesn't support multiple values.
void replaceBy(MetaData other)
throws MetaDataException
other - The other meta data manager.
MetaDataException - if an error occurs.
void forcedReplaceBy(MetaData other)
throws MetaDataException
other - The other meta data manager.
MetaDataException - if an error occurs.java.lang.String[] getPossibleKeys()
boolean isValidAttribute(java.lang.String key)
key - The key.
long getLastModified()
throws MetaDataException
MetaDataException - if an error occurs.ElementSet getElementSet()
void removeAllValues(java.lang.String key)
throws MetaDataException
key - The key.
MetaDataException - if the key is not supported.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||