help.de.smartics.properties.core
Class PropertiesContextBuilder

Package class diagram package PropertiesContextBuilder
java.lang.Object
  extended by help.de.smartics.properties.core.PropertiesContextBuilder

public final class PropertiesContextBuilder
     
     
extends Object

Builds instances of PropertiesContexts for tests.


Field Summary
static String DEFAULT_HOME_PAGE_URL
           
static String DEFAULT_PROPERTIES_REPORT_URL
           
static String DEFAULT_PROPERTY_REPORT_URL
           
static String DEFAULT_PROPERTY_REPORT_URL_DE
           
static String DEFAULT_PROPERTY_REPORT_URL_EN
           
 
Method Summary
static PropertiesContextBuilder a()
          Creates a builder filled with default values.
 PropertiesContext build()
          Creates the instance.
 PropertiesContextBuilder but()
          Clones the builder.
static PropertiesContext defaultPropertiesContext()
          Creates a default instance filled with default values.
 PropertiesContext.Builder withAlias(String alias, String physical)
           
 PropertiesContext.Builder withHomePageUrl(String homePageUrl)
           
 PropertiesContext.Builder withLocales(List<Locale> locales)
           
 PropertiesContext.Builder withPropertiesReportUrl(String propertiesReportUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_HOME_PAGE_URL

public static final String DEFAULT_HOME_PAGE_URL
Constant Field Value:
"http://www.example.com/test"

DEFAULT_PROPERTIES_REPORT_URL

public static final String DEFAULT_PROPERTIES_REPORT_URL
Constant Field Value:
"http://www.example.com/test/property-report"

DEFAULT_PROPERTY_REPORT_URL

public static final String DEFAULT_PROPERTY_REPORT_URL
Constant Field Value:
"http://www.example.com/test/test.property.set.testName.html"

DEFAULT_PROPERTY_REPORT_URL_EN

public static final String DEFAULT_PROPERTY_REPORT_URL_EN
Constant Field Value:
"http://www.example.com/test/test.property.set.testName_en.html"

DEFAULT_PROPERTY_REPORT_URL_DE

public static final String DEFAULT_PROPERTY_REPORT_URL_DE
Constant Field Value:
"http://www.example.com/test/test.property.set.testName_de.html"
Method Detail

withLocales

public PropertiesContext.Builder withLocales(List<Locale> locales)
                                      throws NullPointerException
Throws:
NullPointerException

withHomePageUrl

public PropertiesContext.Builder withHomePageUrl(String homePageUrl)
                                          throws de.smartics.util.lang.BlankArgumentException
Throws:
de.smartics.util.lang.BlankArgumentException

withPropertiesReportUrl

public PropertiesContext.Builder withPropertiesReportUrl(String propertiesReportUrl)
                                                  throws de.smartics.util.lang.BlankArgumentException
Throws:
de.smartics.util.lang.BlankArgumentException

withAlias

public PropertiesContext.Builder withAlias(String alias,
                                           String physical)
                                    throws de.smartics.util.lang.BlankArgumentException,
                                           DuplicateAliasException
Throws:
de.smartics.util.lang.BlankArgumentException
DuplicateAliasException

defaultPropertiesContext

public static PropertiesContext defaultPropertiesContext()
Creates a default instance filled with default values.

Returns:
an instance filled with default values.
See Also:
a()

a

public static PropertiesContextBuilder a()
Creates a builder filled with default values. And no aliases.

Returns:
a builder filled with default values.
See Also:
DEFAULT_HOME_PAGE_URL, DEFAULT_PROPERTIES_REPORT_URL

but

public PropertiesContextBuilder but()
Clones the builder.

Returns:
the cloned builder.

build

public PropertiesContext build()
Creates the instance.

Returns:
the instance.


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.