| Modifier and Type | Field and Description | 
|---|---|
| static DocumentBuilderFactory | DOC_FACTFactory for generating document builders. | 
| static String[] | OLD_DEF_LISTA list of regular (non "home-baked") type defs to cruise. | 
| protected Element | rootThe root xml Element in the Document. | 
| protected Element[] | tabListHolds a list of the tabs necessary gathered from Template.xml. | 
| protected Document | templateDocDocument generated by the DOM's parse. | 
| static String | TYPE_DEF_FOLDERThe filename of the folder the semantic type defs are in. | 
| static String[] | TYPE_DEF_LISTA list of filenames where semantic type defs are found. | 
| Constructor and Description | 
|---|
| TemplateParser(String filename)Parses the template document designated by the file argument,
 creating a list of "top-level" Elements which I define as those
 elements that have either an OMENode as a parent or a
 CustomAttributesNode as a parent that has an OMENode as a parent
 these top-level elements correspond to the tabs formed in the
 MetadataPane | 
| Modifier and Type | Method and Description | 
|---|---|
| static Hashtable | getRefHash()Returns a hashtable to store the types associated with a reference element
 will be implemented as a Hashtable of Hashtables first key corresponds
 to the OMEElement, second (nested) key corresponds to OMEAttribute,
 and finally the value corresponds to what type the OMEAttribute should
 have. | 
| Element | getRoot() | 
| Element[] | getTabs()Returns an array of Elements representing the tabs in the editor. | 
| String | getVersion()Returns the version information from the template. | 
| static void | main(String[] args)Used for debugging. | 
public static final DocumentBuilderFactory DOC_FACT
public static final String[] TYPE_DEF_LIST
public static final String[] OLD_DEF_LIST
public static final String TYPE_DEF_FOLDER
protected Element[] tabList
protected Document templateDoc
protected Element root
public TemplateParser(String filename)
public Element getRoot()
public Element[] getTabs()
public static Hashtable getRefHash()
public String getVersion()
public static void main(String[] args)
Copyright © 2014 Open Microscopy Environment