|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gridlab.gat.advert.MetaData
public class MetaData
This class describes meta data that can be attached to an
Advertisable
object. MetaData consists of a number of key value
tuples, where both the keys and the values are strings.
Constructor Summary | |
---|---|
MetaData()
|
Method Summary | |
---|---|
String |
get(String key)
Gets the value associated to the provided key. |
String |
getData(int i)
Gets the value associated to the key retrieved by getKey(i). |
String |
getKey(int i)
Gets the i-th key of the MetaData. |
boolean |
match(MetaData query)
Match two MetaData objects. |
void |
put(String key,
String value)
Put an entry in the MetaData object. |
String |
remove(String key)
Removes an entry specified by the provided key. |
int |
size()
Returns the number of entries in the MetaData . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MetaData()
Method Detail |
---|
public void put(String key, String value)
MetaData
object.
key
- the key that corresponds to the given valuevalue
- the value that corresponds to the given keypublic String get(String key)
key
- the key for which the associated value should be retrieved
public String remove(String key)
key
- the key for which the entry should be removed
public String getKey(int i)
i
- the position of the key
public String getData(int i)
i
- the position of the value
public int size()
MetaData
.
public boolean match(MetaData query)
MetaData
objects. Used internally by the GAT. GAT
users should not call this method.
query
- the MetaData
object to compare to.
true
: the two objects match. false
:
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |