|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.rest.MultivaluedMetadata
public class MultivaluedMetadata
Created by The eXo Platform SAS .
A map of key-value pair. Each key
can have few value.
| Constructor Summary | |
|---|---|
MultivaluedMetadata()
Constructs an empty MultivaluedMetadata. |
|
MultivaluedMetadata(HashMap<String,List<String>> data)
Constructs a new MultivaluedMetadata with the same mappings as the specified data. |
|
| Method Summary | |
|---|---|
String |
get(String key)
Return values and values convert from List<String> to the String. |
HashMap<String,String> |
getAll()
Return the all pair key-values and values convert from List <String> to the String. |
String |
getFirst(String key)
Return the first value of the key. |
List<String> |
getList(String key)
Return values represented by List<String>. |
boolean |
has(String key)
Check is there descriptor with specified key. |
Set<String> |
keys()
Get keys of HashMap. |
void |
put(String key,
List<String> vals)
Set key's value to one item list of values. |
void |
putSingle(String key,
String value)
Add one more value to the current list of values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultivaluedMetadata()
public MultivaluedMetadata(HashMap<String,List<String>> data)
data.
data - the map whose mappings are to be placed in this data.| Method Detail |
|---|
public void put(String key,
List<String> vals)
key - the key.vals - the value.
public void putSingle(String key,
String value)
key - the key.value - the value to be add.public String getFirst(String key)
key - the key.
public HashMap<String,String> getAll()
public String get(String key)
key - the key.
public List<String> getList(String key)
key - the key.
public Set<String> keys()
public boolean has(String key)
key - the descriptor key.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||