Package org.omnifaces.resourcehandler
Class WebAppManifest.RelatedApplication
- java.lang.Object
-
- org.omnifaces.resourcehandler.WebAppManifest.RelatedApplication
-
- Enclosing class:
- WebAppManifest
protected static final class WebAppManifest.RelatedApplication extends Object
To be used inWebAppManifest.getRelatedApplications()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getId()
Returns the ID used to represent the application on the specified platform.WebAppManifest.Platform
getPlatform()
Returns the platform on which the application can be found.String
getUrl()
Returns the URL at which the application can be found.int
hashCode()
static WebAppManifest.RelatedApplication
of(WebAppManifest.Platform platform, String url)
Creates a related application of given platform and URL.static WebAppManifest.RelatedApplication
of(WebAppManifest.Platform platform, String url, String id)
Creates a related application of given platform and URL and ID.
-
-
-
Method Detail
-
of
public static WebAppManifest.RelatedApplication of(WebAppManifest.Platform platform, String url)
Creates a related application of given platform and URL.- Parameters:
platform
- The platform on which the application can be found.url
- The URL at which the application can be found.- Returns:
- A related application of given platform and URL.
- Throws:
NullPointerException
- When platform or url is null.
-
of
public static WebAppManifest.RelatedApplication of(WebAppManifest.Platform platform, String url, String id)
Creates a related application of given platform and URL and ID.- Parameters:
platform
- The platform on which the application can be found.url
- The URL at which the application can be found.id
- The ID used to represent the application on the specified platform.- Returns:
- A related application of given platform and URL and ID.
- Throws:
NullPointerException
- When platform or url is null.
-
getPlatform
public WebAppManifest.Platform getPlatform()
Returns the platform on which the application can be found.- Returns:
- The platform on which the application can be found.
-
getUrl
public String getUrl()
Returns the URL at which the application can be found.- Returns:
- The URL at which the application can be found.
-
getId
public String getId()
Returns the ID used to represent the application on the specified platform.- Returns:
- The ID used to represent the application on the specified platform.
-
-