public class ListContainer extends ResourceContainer
Resource derived objects that
can then be invoked upon request. Either the full list of resources can be returned
or a list as defined by a set of IDs (typically the resource uuid). The resource
objects do not have to be of the same type and it is their getInfo or getValue
methods that are invoked. A container might be initialised with a script that includes
the details of the stored resources.resourceListdataType, INFOANYTYPE, INFOBINARYTYPE, INFOHTMLTYPE, INFOSTREAMXMLTYPE, INFOSTRINGTYPE, INFOTEXTTYPE, INFOURLTYPE, INFOXMLTYPE, LISTCONTAINERTYPE, QUERYCONTAINERTYPE, RANDOMCONTAINERTYPE, uuid| Constructor and Description |
|---|
ListContainer(java.lang.String theDataType)
Create a new instance of ListContainer.
|
ListContainer(java.lang.String theDataType,
org.licas_xml.abs.Element dataXml)
Create a new instance of ListContainer.
|
| Modifier and Type | Method and Description |
|---|---|
org.licas_xml.abs.Element |
getInfo(org.licas_xml.abs.Element infoDescr)
Get the source information wrapped in an XML element.
|
java.util.ArrayList<java.lang.Object> |
getValue(org.licas_xml.abs.Element infoDescr)
Get the currently selected value itself and not a wrapped description.
|
protected boolean |
parseInfo(org.licas_xml.abs.Element dataXml)
Parse the data description in the admin document to create the data object.
|
addResource, createContainer, getResource, getResourceIDs, removeResourcecreateResource, dataFromResourceType, getDataType, getUUID, parseValueElem, resourceTypeForDataType, setUUID, setUUIDpublic ListContainer(java.lang.String theDataType)
throws java.lang.Exception
theDataType - the container type.java.lang.Exception - any error.public ListContainer(java.lang.String theDataType,
org.licas_xml.abs.Element dataXml)
throws java.lang.Exception
theDataType - the container type.dataXml - a description of the initialisation parameters.java.lang.Exception - any error.protected boolean parseInfo(org.licas_xml.abs.Element dataXml)
throws java.lang.Exception
parseInfo in class ResourceContainerdataXml - the Data element of the admin document. This should include
the container DataType element and a Value element that stores
a list of child Data elements that store information for each resource to create.
These are processed as defined in the individual resource object comments.java.lang.Exception - any error.public org.licas_xml.abs.Element getInfo(org.licas_xml.abs.Element infoDescr)
throws java.lang.Exception
getInfo in class ResourceinfoDescr - a description of the info resource values that should be retrieved.
This can be empty, or include a list of ID elements, each of which stores a resource
id to retrieve.Data element through an admin document.java.lang.Exception - any error.public java.util.ArrayList<java.lang.Object> getValue(org.licas_xml.abs.Element infoDescr)
throws java.lang.Exception