| Package | Description |
|---|---|
| org.apache.wookie.w3c | |
| org.apache.wookie.w3c.impl | |
| org.apache.wookie.w3c.util | |
| org.apache.wookie.w3c.xml |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IAuthor
An Author of a Widget
|
interface |
IContent
A content page (start file) for a widget
|
interface |
IDescription
A Description of a Widget
|
interface |
IIcon
An Icon for a Widget
|
interface |
ILicense
A License for a Widget
|
interface |
IName
A Name of a Widget
|
interface |
W3CWidget
A W3C Widget object
This represents the information model for a W3C widget that has been
unpacked using the W3CWidgetFactory.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLocalizedEntity
Abstract base class for entities containing i18n or l10n content, including
utility methods for extracting and processing text that uses language tags
and text direction (e.g.
|
class |
AuthorEntity
The
|
class |
ContentEntity |
class |
DescriptionEntity
The
|
class |
IconEntity |
class |
LicenseEntity
the
|
class |
NameEntity
the
|
class |
WidgetManifestModel
Processes a config.xml document to create a model
for a widget, including all sub-objects
|
| Modifier and Type | Method and Description |
|---|---|
protected static ILocalized[] |
LocalizationUtils.filter(ILocalized[] elements,
java.util.List<com.ibm.icu.util.ULocale> locales)
Filters a set of elements using the locales and returns a copy of the array
containing only elements that match the locales, or that are not localized
if there are no matches
|
protected static ILocalized |
LocalizationUtils.getLocalizedElement(ILocalized[] elements,
java.lang.String[] locales)
Returns the first (best) match for an element given the set of locales, or null
if there are no suitable elements.
|
static ILocalized |
LocalizationUtils.getLocalizedElement(ILocalized[] elements,
java.lang.String[] locales,
java.lang.String defaultLocale)
Returns the first (best) match for an element given the set of locales, or will fall back to the
match for defaultLocale if there are no suitable matches, and then to null
if there are no elements at all.
|
static ILocalized[] |
LocalizationUtils.processElementsByDefaultLocales(ILocalized[] elements)
Sorts an array of localized elements using default locales (*).
|
protected static ILocalized[] |
LocalizationUtils.processElementsByLocales(ILocalized[] elements,
java.lang.String[] locales)
Filters and sorts a list of localized elements using the given locale list; only localized elements
are returned unless no appropriate localized elements are found, in which case nonlocalized elements
are returned
|
static ILocalized[] |
LocalizationUtils.processElementsByLocales(ILocalized[] elements,
java.lang.String[] locales,
java.lang.String defaultLocale)
Filters and sorts a list of localized elements using the given locale list; only localized elements
are returned unless no appropriate localized elements are found, in which case nonlocalized elements
are returned.
|
| Modifier and Type | Method and Description |
|---|---|
protected static ILocalized[] |
LocalizationUtils.filter(ILocalized[] elements,
java.util.List<com.ibm.icu.util.ULocale> locales)
Filters a set of elements using the locales and returns a copy of the array
containing only elements that match the locales, or that are not localized
if there are no matches
|
protected static ILocalized |
LocalizationUtils.getLocalizedElement(ILocalized[] elements,
java.lang.String[] locales)
Returns the first (best) match for an element given the set of locales, or null
if there are no suitable elements.
|
static ILocalized |
LocalizationUtils.getLocalizedElement(ILocalized[] elements,
java.lang.String[] locales,
java.lang.String defaultLocale)
Returns the first (best) match for an element given the set of locales, or will fall back to the
match for defaultLocale if there are no suitable matches, and then to null
if there are no elements at all.
|
static ILocalized[] |
LocalizationUtils.processElementsByDefaultLocales(ILocalized[] elements)
Sorts an array of localized elements using default locales (*).
|
protected static ILocalized[] |
LocalizationUtils.processElementsByLocales(ILocalized[] elements,
java.lang.String[] locales)
Filters and sorts a list of localized elements using the given locale list; only localized elements
are returned unless no appropriate localized elements are found, in which case nonlocalized elements
are returned
|
static ILocalized[] |
LocalizationUtils.processElementsByLocales(ILocalized[] elements,
java.lang.String[] locales,
java.lang.String defaultLocale)
Filters and sorts a list of localized elements using the given locale list; only localized elements
are returned unless no appropriate localized elements are found, in which case nonlocalized elements
are returned.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IContentEntity
A Widget Start Page
|
interface |
IIconEntity
a widget icon
|
2012 Apache Software Foundation.