|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcitysdk.tourism.client.poi.lists.Resources
public class Resources
Represents the resources provided by a server. It contains all the available
HypermediaLink given by server
alongside their API versions.
| Constructor Summary | |
|---|---|
Resources()
|
|
| Method Summary | |
|---|---|
void |
addResource(HypermediaLink link)
Adds a HypermediaLink. |
HypermediaLink |
getHypermediaWithVersion(java.lang.String version)
Gets the HypermediaLink with
the given version. |
java.util.Set<java.lang.String> |
getResources(java.lang.String version)
Gets all the resources of a given version |
java.util.Set<java.lang.String> |
getVersions()
Gets all the versions stored |
boolean |
hasResource(java.lang.String version,
ResourceTerms resource)
Checks if this Resource has a given resource in a given version. |
boolean |
hasResourceParameter(java.lang.String version,
ResourceTerms resource,
ParameterTerms parameter)
Checks whether a given resource in a given version allows the search using a given parameter |
boolean |
hasVersion(java.lang.String version)
Checks the existance of a given version |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Resources()
| Method Detail |
|---|
public void addResource(HypermediaLink link)
HypermediaLink.
link - the HypermediaLink
to be added.
public boolean hasResource(java.lang.String version,
ResourceTerms resource)
version - the version of the linkresource - the resource to be found.
true if it has the given resource,
false otherwise.public boolean hasVersion(java.lang.String version)
version - version to check
true if it is available, false
otherwise.
public boolean hasResourceParameter(java.lang.String version,
ResourceTerms resource,
ParameterTerms parameter)
version - the wanted versionresource - the name of the resourceparameter - the search parameter
true if it is allowed, false otherwisepublic HypermediaLink getHypermediaWithVersion(java.lang.String version)
HypermediaLink with
the given version.
version - the version of the
HypermediaLink.
HypermediaLink
corresponding to the given version or null if the version is not
availablepublic java.util.Set<java.lang.String> getResources(java.lang.String version)
version - the wanted version
public java.util.Set<java.lang.String> getVersions()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||