|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.properties.api.core.domain.PropertiesContext.Builder
public static final class PropertiesContext.Builder
The builder of PropertiesContext
.
Constructor Summary | |
---|---|
PropertiesContext.Builder() |
Method Summary | |
---|---|
PropertiesContext |
build() Creates the instance. |
PropertiesContext.Builder |
withAlias(String alias, String physical) Adds a new alias to the given physical resource. |
PropertiesContext.Builder |
withHomePageUrl(String homePageUrl) Sets the URL to the home page of the project. |
PropertiesContext.Builder |
withLocales(List<Locale> locales) Sets the list of supported locales. |
PropertiesContext.Builder |
withPropertiesReportUrl(String propertiesReportUrl) Sets the URL to the root directory of smartics properties reports. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertiesContext.Builder()
Method Detail |
---|
public PropertiesContext.Builder withLocales(List<Locale> locales) throws NullPointerException
locales
- the list of supported locales.
NullPointerException
- if
locales
is
null
.
public PropertiesContext.Builder withHomePageUrl(String homePageUrl) throws NullPointerException, IllegalArgumentException
homePageUrl
- the URL to the home page of the project.
NullPointerException
- if
homePageUrl
is
null
.
IllegalArgumentException
- if
homePageUrl
is blank.
public PropertiesContext.Builder withPropertiesReportUrl(String propertiesReportUrl) throws NullPointerException, IllegalArgumentException
propertiesReportUrl
- the URL to the root directory of smartics properties reports.
NullPointerException
- if
propertiesReportUrl
is
null
.
IllegalArgumentException
- if
propertiesReportUrl
is blank.
public PropertiesContext.Builder withAlias(String alias, String physical) throws de.smartics.util.lang.BlankArgumentException, DuplicateAliasException
alias
- the new alias.
physical
- the resource the alias refers to.
de.smartics.util.lang.BlankArgumentException
- if either
alias
or
physical
is blank.
DuplicateAliasException
- if there is already an alias registered that points to a different physical resource.
public PropertiesContext build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |