public class XFTMetaManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
AddURIToPrefixMapping(String uri,
String prefix)
Adds the provided URI-Prefix mapping.
|
static void |
clean() |
static XFTElement |
FindElement(String s)
Searches for a XFTElement with a matching Full XML Name.
|
static XFTElement |
FindElement(String name,
String uri)
Searches for a XFTElement with the matching name.
|
static XFTElement |
FindElement(XMLType t)
Searches for a XFTElement with the matching XMLType.
|
static ItemI |
GetElementExtensionItemByID(Integer i)
Gets the element that matches this id.
|
static Integer |
GetElementID(GenericWrapperElement e)
Gets the ID from the database table XFT_Elements for this element.
|
static ArrayList |
GetElementNames()
Gets an ArrayList of all the XFTElements in the manager.
|
static ItemI |
GetExtensionXFTItem(GenericWrapperElement e) |
static XFTMetaManager |
GetInstance()
Singleton reference to the XFTMetaManager instance.
|
static Enumeration |
getPrefixEnum() |
static XFTElementWrapper |
GetWrappedElementByCode(XFTFactoryI factory,
String code) |
static XFTElementWrapper |
GetWrappedElementByName(XFTFactoryI factory,
String name)
Searches for a XFTElement with a matching Full XML Name.
|
static XFTElementWrapper |
GetWrappedElementByNameAndURI(XFTFactoryI factory,
String name,
String uri)
Searches for a XFTElement with the matching name.
|
static XFTElementWrapper |
GetWrappedElementByXMLType(XFTFactoryI factory,
XMLType t)
Searches for a XFTElement with the matching XMLType, and wraps it using the XFTFactoryI.
|
static void |
init(boolean allowDBAccess)
Initialization method used to instanciate the manager.
|
static String |
TranslatePrefixToURI(String prefix)
Translates the supplied prefix to its corresponding URI.
|
static String |
TranslateURIToPrefix(String uri)
Translates the supplied URI to its corresponding prefix.
|
public static XFTMetaManager GetInstance() throws XFTInitException
XFTInitException
public static void init(boolean allowDBAccess) throws XFTInitException
allowDBAccess
- XFTInitException
public static void clean()
public static ArrayList GetElementNames() throws XFTInitException
XFTInitException
public static XFTElement FindElement(String s) throws XFTInitException, ElementNotFoundException
s
- name of element to findXFTInitException
ElementNotFoundException
public static XFTElement FindElement(XMLType t) throws XFTInitException, ElementNotFoundException
t
- XMLType of ElementXFTInitException
ElementNotFoundException
public static XFTElement FindElement(String name, String uri) throws XFTInitException, ElementNotFoundException
name
- name of item to find.uri
- Schema URI which maps to a given XFTSchemaXFTInitException
ElementNotFoundException
public static XFTElementWrapper GetWrappedElementByXMLType(XFTFactoryI factory, XMLType t) throws XFTInitException, ElementNotFoundException
factory
- t
- XFTInitException
ElementNotFoundException
public static XFTElementWrapper GetWrappedElementByNameAndURI(XFTFactoryI factory, String name, String uri) throws XFTInitException, ElementNotFoundException
factory
- name
- uri
- XFTInitException
ElementNotFoundException
public static XFTElementWrapper GetWrappedElementByName(XFTFactoryI factory, String name) throws XFTInitException, ElementNotFoundException
factory
- name
- XFTInitException
ElementNotFoundException
public static XFTElementWrapper GetWrappedElementByCode(XFTFactoryI factory, String code) throws XFTInitException, ElementNotFoundException
public static Integer GetElementID(GenericWrapperElement e) throws XFTInitException
e
- XFTInitException
public static ItemI GetElementExtensionItemByID(Integer i) throws XFTInitException, ElementNotFoundException, FieldNotFoundException, Exception
e
- XFTInitException
ElementNotFoundException
FieldNotFoundException
Exception
public static ItemI GetExtensionXFTItem(GenericWrapperElement e) throws XFTInitException, ElementNotFoundException
public static String TranslateURIToPrefix(String uri)
uri
- public static void AddURIToPrefixMapping(String uri, String prefix)
uri
- prefix
- public static String TranslatePrefixToURI(String prefix)
prefix
- public static Enumeration getPrefixEnum()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.