|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.SavedBundle
public class SavedBundle
An object to handle a saved bundle.
| Field Summary | |
|---|---|
static String |
ATTR_CATEGORY
Xml attribute name for the category |
static String |
ATTR_NAME
Xml attribute name for the name |
static String |
ATTR_TYPE
xml attr |
static String |
ATTR_URL
Xml attribute name for the url |
static String |
TAG_BUNDLE
Xml tag name for the bundle element |
static String |
TAG_BUNDLES
Xml tag name for the bundles element |
static int |
TYPE_DATA
The type to specify the data |
static int |
TYPE_DISPLAY
The type to specify the display templates |
static int |
TYPE_FAVORITE
The type to specify the "Favorites" bundles |
static String |
VALUE_DATA
type of saved bundle |
static String |
VALUE_DISPLAY
type of saved bundle |
static String |
VALUE_FAVORITE
type of saved bundle |
| Constructor Summary | |
|---|---|
SavedBundle(Element node,
String dirRoot,
IdvResourceManager resourceManager,
boolean local)
Create the saved bundle object |
|
SavedBundle(String url,
String name,
List categories)
Create the saved bundle object |
|
SavedBundle(String url,
String name,
List categories,
boolean local)
ctor |
|
SavedBundle(String url,
String name,
List categories,
Object prototype,
boolean local)
Create the saved bundle object |
|
| Method Summary | |
|---|---|
List |
getCategories()
Get the Category property. |
String |
getCategorizedName()
Get the name to use with the categories as a prefix |
String |
getLabel()
Full label |
boolean |
getLocal()
Get the Local property. |
String |
getName()
Get the Name property. |
Object |
getPrototype()
Get the prototype - may be null. |
int |
getType()
Get the Type property. |
String |
getUrl()
Get the Url property. |
static List |
processBundleXml(Element root,
String dirRoot,
IdvResourceManager resourceManager,
boolean local)
Utility that created a list of SavedBundle objects from the document at the given xml path |
void |
setCategories(List value)
Set the Category property. |
void |
setLocal(boolean value)
Set the Local property. |
void |
setName(String value)
Set the Name property. |
void |
setType(int value)
Set the Type property. |
protected void |
setUniquePrefix(String p)
set the unique prefix |
void |
setUrl(String value)
Set the Url property. |
String |
toString()
Override toString. |
void |
toXml(Document doc,
Element root)
Write out the xml that defines this SavedBundle. |
void |
toXml(Document doc,
Element root,
boolean includeCategoryInUrl)
Write out the xml that defines this SavedBundle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TYPE_FAVORITE
public static final int TYPE_DISPLAY
public static final int TYPE_DATA
public static final String VALUE_FAVORITE
public static final String VALUE_DATA
public static final String VALUE_DISPLAY
public static final String TAG_BUNDLES
public static final String TAG_BUNDLE
public static final String ATTR_URL
public static final String ATTR_NAME
public static final String ATTR_CATEGORY
public static final String ATTR_TYPE
| Constructor Detail |
|---|
public SavedBundle(Element node,
String dirRoot,
IdvResourceManager resourceManager,
boolean local)
node - The xml node that defines this objectdirRoot - The directory rootresourceManager - Reference to the resource manager so we add
the sitepath, etc., macros into the urllocal - Is it a local file
public SavedBundle(String url,
String name,
List categories)
url - The urlname - The namecategories - List of (String) categories.
public SavedBundle(String url,
String name,
List categories,
boolean local)
url - the url pathname - namecategories - categorieslocal - is it a local file
public SavedBundle(String url,
String name,
List categories,
Object prototype,
boolean local)
url - The urlname - The namecategories - List of (String) categories.prototype - The object this bundle represents - may be null.local - is it a local file| Method Detail |
|---|
public void toXml(Document doc,
Element root)
doc - The document to create the xml withroot - The xml root
public void toXml(Document doc,
Element root,
boolean includeCategoryInUrl)
doc - The document to create the xml withroot - The xml rootincludeCategoryInUrl - Should the category be included in the urlprotected void setUniquePrefix(String p)
p - prefixpublic String getCategorizedName()
public static List processBundleXml(Element root,
String dirRoot,
IdvResourceManager resourceManager,
boolean local)
root - Root of the bundles xml doc.dirRoot - The directory rootresourceManager - The resource managerlocal - is it a local file
public void setUrl(String value)
value - The new value for Urlpublic String getUrl()
public void setName(String value)
value - The new value for Namepublic String getName()
public void setCategories(List value)
value - The new value for Categorypublic List getCategories()
public Object getPrototype()
public String getLabel()
public String toString()
toString in class Objectpublic void setType(int value)
value - The new value for Typepublic int getType()
public void setLocal(boolean value)
value - The new value for Localpublic boolean getLocal()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||