|
2.9.2: 2009-01-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.basedb.core.RawDataTypes
public class RawDataTypes
This class is used for reading the XML configuration file with
information about raw data types. All files returned by Application.getRawDataTypeFiles()
are parsed.
Field Summary | |
---|---|
private static Set<RawDataType> |
all
|
private static URL |
dtdFile
The DTD which is used to validate the XML file. |
(package private) static PlatformData |
generic
|
private static boolean |
isInitialised
|
private static Logger |
log
Log core events. |
private static Map<String,RawDataType> |
platformTypes
|
private static Map<String,RawDataType> |
rawDataTypes
A map from raw data type name --> RawDataType . |
Constructor Summary | |
---|---|
RawDataTypes()
|
Method Summary | |
---|---|
static Collection<RawDataType> |
getFileOnlyRawDataTypes()
Get the raw data types that are representations of file-only Platform :s. |
private static RawDataType |
getPlatformRawDataType(String id)
|
static RawDataType |
getRawDataType(String id)
Get a information about a raw data type. |
static Collection<RawDataType> |
getRawDataTypes()
Get a collection with all raw data types that has been defined. |
static RawDataType |
getSafeRawDataType(String id)
Get a information about a raw data type or throw an exception if the raw data type is not found. |
private static RawDataType |
getVariantRawDataType(String id)
|
(package private) static void |
init()
Initialize the class. |
(package private) static void |
initPlatforms()
Load file-only platforms and create raw data types for them. |
private static List<IntensityFormula> |
loadIntensityFormulas(Element rawDataTypeElement,
int channels,
String xmlFile)
Load the intensity formulas for the specified raw data type node and return a list of IntensityFormula objects. |
private static List<RawDataProperty> |
loadProperties(Element rawDataTypeElement,
int channels,
String xmlFile)
Load the properties for the specified raw data type node and return a list of RawDataProperty objects. |
private static void |
loadRawDataTypes(Document dom,
String xmlFile)
Load the raw data types and put the information in the rawDataTypes map. |
private static void |
loadRawDataTypesFile()
Load and parse the file with raw data types. |
(package private) static void |
unload()
Unload all settings. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logger log
private static Map<String,RawDataType> rawDataTypes
RawDataType
.
private static Map<String,RawDataType> platformTypes
private static Set<RawDataType> all
static PlatformData generic
private static final URL dtdFile
private static boolean isInitialised
Constructor Detail |
---|
public RawDataTypes()
Method Detail |
---|
static void init() throws BaseException
BaseException
- This exception is thrown if there is an errorstatic void initPlatforms()
static void unload()
private static void loadRawDataTypesFile() throws BaseException
rawDataTypes
variable.
BaseException
public static Collection<RawDataType> getRawDataTypes()
getFileOnlyRawDataTypes()
Collection
containing RawDataType
objects
where RawDataType.isStoredInDb()
returns truepublic static Collection<RawDataType> getFileOnlyRawDataTypes()
Platform
:s.
Collection
containing RawDataType
objects
where RawDataType.isStoredInDb()
returns falsepublic static RawDataType getRawDataType(String id)
id
- The id of the raw data type
RawDataType
object with information about the
raw data type, or null if the specified id is not foundpublic static RawDataType getSafeRawDataType(String id)
id
- The id of the raw data type
RawDataType
object with information about the
raw data type
ItemNotFoundException
- If the specified raw data type is not foundprivate static RawDataType getPlatformRawDataType(String id)
private static RawDataType getVariantRawDataType(String id)
private static void loadRawDataTypes(Document dom, String xmlFile)
rawDataTypes
map.
private static List<RawDataProperty> loadProperties(Element rawDataTypeElement, int channels, String xmlFile)
RawDataProperty
objects.
private static List<IntensityFormula> loadIntensityFormulas(Element rawDataTypeElement, int channels, String xmlFile)
IntensityFormula
objects.
|
2.9.2: 2009-01-08 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |