|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.resources.ResourceMapping
public class ResourceMapping
Represents a mapping between IDs and resources.
Resource| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,Resource> |
resources
Mappings between an ID and a resource. |
| Constructor Summary | |
|---|---|
ResourceMapping()
Creates a new empty ResourceMapping. |
|
| Method Summary | |
|---|---|
void |
add(java.lang.String id,
Resource value)
Adds a mapping between the given ID and a Resource. |
void |
addAll(ResourceMapping rc)
Adds all mappings from the given ResourceMapping to
this object. |
boolean |
containsKey(java.lang.String key)
|
Resource |
get(java.lang.String id)
Gets the Resource identified by the
given id. |
java.util.Map<java.lang.String,Resource> |
getResources()
Returns all the mappings between IDs and Resources
that are kept by this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,Resource> resources
| Constructor Detail |
|---|
public ResourceMapping()
ResourceMapping.
| Method Detail |
|---|
public void add(java.lang.String id,
Resource value)
Resource.
id - The ID identifying the given resource in the mapping.value - The Resource identified by the ID
in the mapping,.public void addAll(ResourceMapping rc)
ResourceMapping to
this object.
rc - The ResourceMapping.public boolean containsKey(java.lang.String key)
public java.util.Map<java.lang.String,Resource> getResources()
Resources
that are kept by this object.
Map.public Resource get(java.lang.String id)
Resource identified by the
given id.
id - The ID.
Resource.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||