org.apache.wookie.w3c
Interface W3CWidget

All Superinterfaces:
IDirectional, ILocalized
All Known Implementing Classes:
WidgetManifestModel

public interface W3CWidget
extends ILocalized, IDirectional

A W3C Widget object This represents the information model for a W3C widget that has been unpacked using the W3CWidgetFactory.


Method Summary
 java.util.List<IAccess> getAccessList()
          Get the list of access request entities for the widget
 IAuthor getAuthor()
          Get the Author information for the widget
 java.util.List<IContent> getContentList()
          Get the list of start pages for the widget
 java.lang.String getDefaultLocale()
          Get the default locale
 java.util.List<IDescription> getDescriptions()
          Get the list of Descriptions for the widget
 java.util.List<IFeature> getFeatures()
          Get a list of Features requested by the widget.
 java.lang.Integer getHeight()
          Get the widget height as an Integer.
 java.util.List<IIcon> getIcons()
          Get the list of icons for the widget
 java.lang.String getIdentifier()
          Get the widget identifier (IRI)
 java.util.List<ILicense> getLicenses()
          Get the list of Licenses for the widget
 java.lang.String getLocalName(java.lang.String locale)
          A convenience method typically used for generating debug messages during import.
 java.util.List<IName> getNames()
          Get the list of Names for the widget
 java.util.List<IPreference> getPreferences()
          Get the list of Preferences defined for the widget
 java.lang.String getUpdateLocation()
           
 java.lang.String getVersion()
          Get the version of the widget
 java.lang.String getViewModes()
          Gets the widget viewmodes attribute.
 java.lang.Integer getWidth()
          Get the widget width as an Integer.
 
Methods inherited from interface org.apache.wookie.w3c.ILocalized
getLang, setLang
 
Methods inherited from interface org.apache.wookie.w3c.IDirectional
getDir, isValid, setDir
 

Method Detail

getDefaultLocale

java.lang.String getDefaultLocale()
Get the default locale

Returns:
a locale string, or Null if no default locale is specified

getAccessList

java.util.List<IAccess> getAccessList()
Get the list of access request entities for the widget


getContentList

java.util.List<IContent> getContentList()
Get the list of start pages for the widget


getIcons

java.util.List<IIcon> getIcons()
Get the list of icons for the widget


getIdentifier

java.lang.String getIdentifier()
Get the widget identifier (IRI)


getLicenses

java.util.List<ILicense> getLicenses()
Get the list of Licenses for the widget


getNames

java.util.List<IName> getNames()
Get the list of Names for the widget


getDescriptions

java.util.List<IDescription> getDescriptions()
Get the list of Descriptions for the widget


getHeight

java.lang.Integer getHeight()
Get the widget height as an Integer. Note this may be Null.


getWidth

java.lang.Integer getWidth()
Get the widget width as an Integer. Note this may be Null.


getAuthor

IAuthor getAuthor()
Get the Author information for the widget


getPreferences

java.util.List<IPreference> getPreferences()
Get the list of Preferences defined for the widget


getFeatures

java.util.List<IFeature> getFeatures()
Get a list of Features requested by the widget. Note that only valid features are included (e.g. ones supported by the platform, or that are defined by the widget as optional)


getVersion

java.lang.String getVersion()
Get the version of the widget


getViewModes

java.lang.String getViewModes()
Gets the widget viewmodes attribute. A keyword list attribute that denotes the author's preferred view mode, followed by the next most preferred view mode and so forth


getLocalName

java.lang.String getLocalName(java.lang.String locale)
A convenience method typically used for generating debug messages during import. This method will never return null, however the name may be an empty String. This is equivalent to: List names = widget.getNames(); IName name = (IName)LocalizationUtils.getLocalizedElement(names.toArray(new IName[fNamesList.size()]), new String[]{"en"});

Parameters:
locale -
Returns:
the name of the widget to be used in the given locale

getUpdateLocation

java.lang.String getUpdateLocation()
Returns:
the update description document URL for the widget, or null if no valid update URL has been set


2012 Apache Software Foundation.