|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wookie.w3c.impl.AbstractLocalizedEntity
org.apache.wookie.w3c.impl.WidgetManifestModel
public class WidgetManifestModel
Processes a config.xml document to create a model for a widget, including all sub-objects
| Field Summary |
|---|
| Fields inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity |
|---|
dir, lang, LEFT_TO_RIGHT, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT, RIGHT_TO_LEFT_OVERRIDE |
| Constructor Summary | |
|---|---|
WidgetManifestModel(java.lang.String xmlText,
java.lang.String[] locales,
java.lang.String[] features,
java.lang.String[] encodings,
org.apache.commons.compress.archivers.zip.ZipFile zip,
java.lang.String defaultIdentifier)
Constructs a new WidgetManifestModel using an XML manifest supplied as a String. |
|
| Method Summary | |
|---|---|
void |
fromXML(org.jdom.Element element)
Unmarshall the given XML Element to this Object |
void |
fromXML(org.jdom.Element element,
java.lang.String[] locales)
|
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. |
org.jdom.Element |
toXml()
Marshall the entity into an XML Element |
void |
updateIconPaths(java.lang.String path)
|
| Methods inherited from class org.apache.wookie.w3c.impl.AbstractLocalizedEntity |
|---|
getDir, getLang, getLocalizedTextContent, getTextDirection, isValid, setDir, setLang, setLocalisationAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.wookie.w3c.ILocalized |
|---|
getLang, setLang |
| Methods inherited from interface org.apache.wookie.w3c.IDirectional |
|---|
getDir, isValid, setDir |
| Constructor Detail |
|---|
public WidgetManifestModel(java.lang.String xmlText,
java.lang.String[] locales,
java.lang.String[] features,
java.lang.String[] encodings,
org.apache.commons.compress.archivers.zip.ZipFile zip,
java.lang.String defaultIdentifier)
throws org.jdom.JDOMException,
java.io.IOException,
BadManifestException
xmlText - the XML manifest file
org.jdom.JDOMException
java.io.IOException
BadManifestException| Method Detail |
|---|
public java.lang.String getDefaultLocale()
W3CWidget
getDefaultLocale in interface W3CWidgetpublic java.lang.String getViewModes()
W3CWidget
getViewModes in interface W3CWidgetpublic java.lang.String getVersion()
W3CWidget
getVersion in interface W3CWidgetpublic java.util.List<IPreference> getPreferences()
W3CWidget
getPreferences in interface W3CWidgetpublic java.util.List<IFeature> getFeatures()
W3CWidget
getFeatures in interface W3CWidgetpublic java.util.List<IAccess> getAccessList()
W3CWidget
getAccessList in interface W3CWidgetpublic IAuthor getAuthor()
W3CWidget
getAuthor in interface W3CWidgetpublic java.util.List<IContent> getContentList()
W3CWidget
getContentList in interface W3CWidgetpublic java.util.List<IDescription> getDescriptions()
W3CWidget
getDescriptions in interface W3CWidgetpublic java.util.List<IName> getNames()
W3CWidget
getNames in interface W3CWidgetpublic java.util.List<IIcon> getIcons()
W3CWidget
getIcons in interface W3CWidgetpublic java.util.List<ILicense> getLicenses()
W3CWidget
getLicenses in interface W3CWidgetpublic java.lang.String getIdentifier()
W3CWidget
getIdentifier in interface W3CWidgetpublic java.lang.Integer getHeight()
W3CWidget
getHeight in interface W3CWidgetpublic java.lang.Integer getWidth()
W3CWidget
getWidth in interface W3CWidgetpublic java.lang.String getUpdateLocation()
getUpdateLocation in interface W3CWidgetpublic void fromXML(org.jdom.Element element)
IElement
fromXML in interface IElementfromXML in class AbstractLocalizedEntityelement - The Element to unmarshallpublic java.lang.String getLocalName(java.lang.String locale)
W3CWidget
List names = widget.getNames();
IName name = (IName)LocalizationUtils.getLocalizedElement(names.toArray(new IName[fNamesList.size()]), new String[]{"en"});
getLocalName in interface W3CWidgetpublic void updateIconPaths(java.lang.String path)
public void fromXML(org.jdom.Element element,
java.lang.String[] locales)
throws BadManifestException
BadManifestExceptionpublic org.jdom.Element toXml()
IElement
toXml in interface IElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||