public static final class DefaultApplicationDescription.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Default constructor for the builder.
|
Modifier and Type | Method and Description |
---|---|
DefaultApplicationDescription |
build()
Builds a default application object from the gathered parameters.
|
DefaultApplicationDescription.Builder |
withCategory(java.lang.String category)
Adds a category string.
|
DefaultApplicationDescription.Builder |
withDescription(java.lang.String description)
Adds a description string.
|
DefaultApplicationDescription.Builder |
withFeatures(java.util.List<java.lang.String> features)
Adds a features list.
|
DefaultApplicationDescription.Builder |
withFeaturesRepo(java.net.URI featuresRepo)
Adds a URI for a features repository.
|
DefaultApplicationDescription.Builder |
withIcon(byte[] icon)
Adds an icon.
|
DefaultApplicationDescription.Builder |
withName(java.lang.String name)
Adds an application id.
|
DefaultApplicationDescription.Builder |
withOrigin(java.lang.String origin)
Adds an origin string.
|
DefaultApplicationDescription.Builder |
withPermissions(java.util.Set<Permission> permissions)
Adds a permissions set.
|
DefaultApplicationDescription.Builder |
withReadme(java.lang.String readme)
Adds a readme string.
|
DefaultApplicationDescription.Builder |
withRequiredApps(java.util.List<java.lang.String> requiredApps)
Adds a list of required applications.
|
DefaultApplicationDescription.Builder |
withRole(ApplicationRole role)
Adds an application role.
|
DefaultApplicationDescription.Builder |
withTitle(java.lang.String title)
Adds a title string.
|
DefaultApplicationDescription.Builder |
withUrl(java.lang.String url)
Adds a URL string.
|
DefaultApplicationDescription.Builder |
withVersion(Version version)
Adds a version string.
|
public DefaultApplicationDescription.Builder withName(java.lang.String name)
name
- application namepublic DefaultApplicationDescription.Builder withVersion(Version version)
version
- version stringpublic DefaultApplicationDescription.Builder withTitle(java.lang.String title)
title
- title stringpublic DefaultApplicationDescription.Builder withDescription(java.lang.String description)
description
- description stringpublic DefaultApplicationDescription.Builder withCategory(java.lang.String category)
category
- category stringpublic DefaultApplicationDescription.Builder withUrl(java.lang.String url)
url
- url stringpublic DefaultApplicationDescription.Builder withReadme(java.lang.String readme)
readme
- readme stringpublic DefaultApplicationDescription.Builder withIcon(byte[] icon)
icon
- icon datapublic DefaultApplicationDescription.Builder withOrigin(java.lang.String origin)
origin
- origin stringpublic DefaultApplicationDescription.Builder withRole(ApplicationRole role)
role
- application rolepublic DefaultApplicationDescription.Builder withPermissions(java.util.Set<Permission> permissions)
permissions
- permissions setpublic DefaultApplicationDescription.Builder withFeaturesRepo(java.net.URI featuresRepo)
featuresRepo
- Optional URI for a features repositorypublic DefaultApplicationDescription.Builder withFeatures(java.util.List<java.lang.String> features)
features
- features listpublic DefaultApplicationDescription.Builder withRequiredApps(java.util.List<java.lang.String> requiredApps)
requiredApps
- List of name strings of required applicationspublic DefaultApplicationDescription build()