public class WidgetManifestModel extends AbstractLocalizedEntity implements W3CWidget, IElement
dir, lang, LEFT_TO_RIGHT, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT, RIGHT_TO_LEFT_OVERRIDE| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
getDir, getLang, getLocalizedTextContent, getTextDirection, isValid, setDir, setLang, setLocalisationAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLang, setLanggetDir, isValid, setDirpublic 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 fileorg.jdom.JDOMExceptionjava.io.IOExceptionBadManifestExceptionpublic java.lang.String getDefaultLocale()
W3CWidgetgetDefaultLocale in interface W3CWidgetpublic java.lang.String getViewModes()
W3CWidgetgetViewModes in interface W3CWidgetpublic java.lang.String getVersion()
W3CWidgetgetVersion in interface W3CWidgetpublic java.util.List<IPreference> getPreferences()
W3CWidgetgetPreferences in interface W3CWidgetpublic java.util.List<IFeature> getFeatures()
W3CWidgetgetFeatures in interface W3CWidgetpublic java.util.List<IAccess> getAccessList()
W3CWidgetgetAccessList in interface W3CWidgetpublic IAuthor getAuthor()
W3CWidgetpublic java.util.List<IContent> getContentList()
W3CWidgetgetContentList in interface W3CWidgetpublic java.util.List<IDescription> getDescriptions()
W3CWidgetgetDescriptions in interface W3CWidgetpublic java.util.List<IName> getNames()
W3CWidgetpublic java.util.List<IIcon> getIcons()
W3CWidgetpublic java.util.List<ILicense> getLicenses()
W3CWidgetgetLicenses in interface W3CWidgetpublic java.lang.String getIdentifier()
W3CWidgetgetIdentifier in interface W3CWidgetpublic java.lang.Integer getHeight()
W3CWidgetpublic java.lang.Integer getWidth()
W3CWidgetpublic java.lang.String getUpdateLocation()
getUpdateLocation in interface W3CWidgetpublic void fromXML(org.jdom.Element element)
IElementfromXML 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
BadManifestException2012 Apache Software Foundation.