|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jlab.coda.jevio.EvioXMLDictionary
public class EvioXMLDictionary
This was developed to read the xml dictionary that Maurizio uses for GEMC. It implements INameProvider, just like all other dictionary readers. An assumption in the following class is that each unique tag/num pair corresponds to an equally unique name. In other words, 2 different tag/numm pairs cannot have the same name.
Field Summary |
---|
Fields inherited from interface org.jlab.coda.jevio.INameProvider |
---|
NO_NAME_STRING |
Constructor Summary | |
---|---|
EvioXMLDictionary(org.w3c.dom.Document domDocument)
Create an EvioXMLDictionary from an xml Document object. |
|
EvioXMLDictionary(org.w3c.dom.Document domDocument,
java.lang.String delimiter)
Create an EvioXMLDictionary from an xml Document object. |
|
EvioXMLDictionary(java.io.File file)
Create an EvioXMLDictionary from an xml file. |
|
EvioXMLDictionary(java.io.File file,
java.lang.String delimiter)
Create an EvioXMLDictionary from an xml file. |
|
EvioXMLDictionary(java.lang.String xmlString)
Create an EvioXMLDictionary from an xml string. |
|
EvioXMLDictionary(java.lang.String xmlString,
java.lang.String delimiter)
Create an EvioXMLDictionary from an xml string. |
Method Summary | |
---|---|
java.lang.String |
getName(BaseStructure structure)
Returns the name of a given evio structure. |
java.lang.String |
getName(int tag,
int num)
Returns the name associated with the given tag and num. |
int[] |
getTagNum(java.lang.String name)
Returns the tag/num pair, in an int array, corresponding to the name of a dictionary entry. |
java.lang.String |
toString()
Get a string representation of the dictionary. |
java.lang.String |
toXML()
Get an xml representation of the dictionary. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EvioXMLDictionary(java.io.File file)
file
- file containing xml.public EvioXMLDictionary(java.io.File file, java.lang.String delimiter)
file
- file containing xml.delimiter
- character used to separate hierarchical parts of names.public EvioXMLDictionary(java.lang.String xmlString)
xmlString
- string containing xml.public EvioXMLDictionary(java.lang.String xmlString, java.lang.String delimiter)
xmlString
- string containing xml.delimiter
- character used to separate hierarchical parts of names.public EvioXMLDictionary(org.w3c.dom.Document domDocument)
domDocument
- DOM object representing xml dictionary.public EvioXMLDictionary(org.w3c.dom.Document domDocument, java.lang.String delimiter)
domDocument
- DOM object representing xml dictionary.delimiter
- character used to separate hierarchical parts of names.Method Detail |
---|
public java.lang.String getName(BaseStructure structure)
getName
in interface INameProvider
structure
- the structure to find the name of.
public java.lang.String getName(int tag, int num)
tag
- to find the name ofnum
- to find the name of
public int[] getTagNum(java.lang.String name)
name
- dictionary name
public java.lang.String toXML()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |