public class XFTManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
AddRootElement(String name,
String elementName)
Add a Root Element
|
static void |
clean() |
ArrayList |
getAllElements()
ArrayList of GenericWrapperElements
|
static Hashtable |
GetDataModels()
Gets the XFTDataModels
|
static XFTElement |
GetElementTable()
Returns the XFT element that stores all of the element names.
|
static XFTManager |
GetInstance()
Gets singleton instance of the Manager
|
ArrayList |
getOrderedElements()
ArrayList of GenericWrapperElements
|
static Hashtable |
GetRootElementsHash()
Gets the Root Elements
|
static ArrayList |
GetSchemas()
Gets the XFT schema documents contained in the collection of data models.
|
String |
getSourceDir()
Source directory where the InstanceSettings.xml document can be found.
|
static XFTManager |
init(String schemaLocation)
Initializes the XFT manager instance if it hasn't been already.
|
static void |
Refresh(String sourceDirectory)
Re-initializes the XFT manager
|
static void |
SetElementTable(XFTElement xe)
Sets the XFTElement which stores all of the element names.
|
void |
setSourceDir(String sourceDir)
Source directory where the InstanceSettings.xml document can be found.
|
String |
toString() |
Document |
toXML() |
public static XFTManager GetInstance() throws XFTInitException
XFTInitException
public static XFTManager init(String schemaLocation) throws ElementNotFoundException
schemaLocation
- Path to the root folder containing the schema files.ElementNotFoundException
public static void clean()
public static XFTElement GetElementTable()
public static void SetElementTable(XFTElement xe)
xe
- The XFT element with all of the element names to set.public static void Refresh(String sourceDirectory) throws XFTInitException, ElementNotFoundException
sourceDirectory
- The source directory from which to load the data schema.XFTInitException
ElementNotFoundException
public static ArrayList GetSchemas()
XFTSchema
public static Hashtable GetDataModels()
XFTDataModel
public static Hashtable GetRootElementsHash()
public static void AddRootElement(String name, String elementName)
public String getSourceDir()
public void setSourceDir(String sourceDir)
sourceDir
- The source directory to be set.public Document toXML()
public ArrayList getOrderedElements() throws XFTInitException, ElementNotFoundException, Exception
XFTInitException
ElementNotFoundException
Exception
public ArrayList getAllElements() throws XFTInitException
XFTInitException
ElementNotFoundException
Exception
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.