public class XFTReferenceManager extends Object
Modifier and Type | Method and Description |
---|---|
static void |
AddProperName(String elementName,
String namedType)
Adds a proper name/element type to the singleton object's collection.
|
static void |
clean() |
static ArrayList |
FindHiddenSuperiorsFor(GenericWrapperElement e)
Find elements that reference this given element without being referenced within the given element
but will result in an implied column in the given element.
|
static ArrayList |
FindManyToManysFor(GenericWrapperElement e)
Find elements that this element references as many-to-many.
|
static XFTReferenceI |
FindReference(GenericWrapperField f)
Finds the XFTReferenceI for the given reference field.
|
static ArrayList |
FindSubordinatesFor(GenericWrapperElement e)
Find elements that this element references.
|
static ArrayList |
FindSuperiorsFor(GenericWrapperElement e)
Find elements that reference this element.
|
static String |
GetElementType(String properName)
Get element type (full xml Name) for the given proper name
|
static XFTReferenceManager |
GetInstance()
Gets singleton object
|
static String |
GetProperName(String type)
Get proper name for the given element type (full xml Name)
|
Hashtable |
getProperNames() |
ArrayList |
getUniqueMappings()
ArrayList of (XFTManyToManyReference)
|
static void |
init()
Initializes the XFTReferenceManager and XFTPseudonymManager by iterating through
the XFTSchema and identifying references.
|
static Integer |
NumberOfReferences(XFTItem item) |
static void |
OutputReferences()
Outputs all of the references defined in the XFTReferenceManager.
|
public static XFTReferenceManager GetInstance()
public static void AddProperName(String elementName, String namedType)
elementName
- namedType
- public static String GetProperName(String type)
type
- public static String GetElementType(String properName)
properName
- public ArrayList getUniqueMappings()
public static XFTReferenceI FindReference(GenericWrapperField f) throws XFTInitException, ElementNotFoundException
f
- XFTInitException
ElementNotFoundException
public static ArrayList FindHiddenSuperiorsFor(GenericWrapperElement e) throws XFTInitException, ElementNotFoundException
e
- XFTInitException
ElementNotFoundException
public static ArrayList FindSuperiorsFor(GenericWrapperElement e) throws XFTInitException, ElementNotFoundException
e
- XFTInitException
ElementNotFoundException
public static ArrayList FindSubordinatesFor(GenericWrapperElement e) throws XFTInitException, ElementNotFoundException
e
- XFTInitException
ElementNotFoundException
public static ArrayList FindManyToManysFor(GenericWrapperElement e) throws XFTInitException, ElementNotFoundException
e
- XFTInitException
ElementNotFoundException
public static void init() throws XFTInitException, ElementNotFoundException
public static void clean()
public Hashtable getProperNames()
public static void OutputReferences()
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.