|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataNode
Base class for all Metadata. Metadata can be a normal java.lang.String, a java.awt.Image, another MetadataNode for tree like metadata structures or other tbd Objects. One example is given below:
RootNode | --- TITLE - String("Best Movie Ever") | --- CREW - MetadataNode | --- MAIN_ACTOR - String("Joe Sixpack") | --- MAIN_ACTOR2 - String("Doris Dosenkohl") | --- SYNOPSIS - String("Don't know - I fell asleep after 5 seconds") | ---IMAGE - Image("/home/user/images/BestMovieEver.jpg")It is possible to get Metadata from other MetadataNodes directly by concatenating the different identifiers using # to separate them.
Method Summary | |
---|---|
void |
addMetadata(String key,
Object value)
Adds a new metadata entry to this MetadataNode. |
Enumeration |
getMetadata()
Gets an Enumeration of all Metadata objects in this node. |
Object |
getMetadata(String key)
Returns the Metadata for the specified key. |
MetadataNode |
getParentNode()
Gets the parent node of this MetadataNode. |
String |
getText()
Returns a textual representation of the Metadata with non-displayable characters that are not display formatting characters removed. |
Method Detail |
---|
Object getMetadata(String key)
key
- The key to search for.
void addMetadata(String key, Object value)
key
- The key e.g. "TITLE".value
- The value associated with the key, e.g.
"When Harry Meets Sally" or a more complex Object like another
MetadataNode.Enumeration getMetadata()
String getText()
MetadataNode getParentNode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |