public class BooleanStyleBuilder extends Object implements DataStyleBuilder<BooleanStyle,BooleanStyleBuilder>
| Constructor and Description |
|---|
BooleanStyleBuilder(String name,
Locale locale)
The builder
|
| Modifier and Type | Method and Description |
|---|---|
BooleanStyle |
build() |
BooleanStyleBuilder |
country(String countryCode)
Set the country code
|
BooleanStyleBuilder |
language(String languageCode)
Set the language code
|
BooleanStyleBuilder |
locale(Locale locale)
Set the locale
|
BooleanStyleBuilder |
visible()
Make this style visible, ie part of common styles
|
BooleanStyleBuilder |
volatileStyle(boolean volatileStyle)
19.517 style:volatile
"The style:volatile attribute specifies whether unused style in a document are retained or
discarded by consumers."
|
public BooleanStyle build()
build in interface StyleBuilder<BooleanStyle>public BooleanStyleBuilder country(String countryCode)
LocalizedBuildercountry in interface LocalizedBuilder<BooleanStyleBuilder>countryCode - The two letter country code, e.g. 'US'public BooleanStyleBuilder language(String languageCode)
LocalizedBuilderlanguage in interface LocalizedBuilder<BooleanStyleBuilder>languageCode - The two letter language code, e.g. 'en'. See http://www.ietf
.org/rfc/rfc3066.txtpublic BooleanStyleBuilder locale(Locale locale)
LocalizedBuilderlocale in interface LocalizedBuilder<BooleanStyleBuilder>locale - the localepublic BooleanStyleBuilder volatileStyle(boolean volatileStyle)
IsVolatileBuildervolatileStyle in interface IsVolatileBuilder<BooleanStyleBuilder>volatileStyle - true if "consumers should keep unused styles", false otherwise.public BooleanStyleBuilder visible()
ShowableBuildervisible in interface ShowableBuilder<BooleanStyleBuilder>Copyright © 2016–2021. All rights reserved.