public class EvioDictionaryEntry extends java.lang.Object implements java.lang.Comparable<EvioDictionaryEntry>
Constructor and Description |
---|
EvioDictionaryEntry(java.lang.String tag,
java.lang.String num,
java.lang.String description)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(EvioDictionaryEntry entry)
Deprecated.
We sort so that the entries with the most number of ancestors match.
|
java.lang.String |
getDescription()
Deprecated.
Get the nice, hopefully descriptive name for this entry.
|
int |
getTag()
Deprecated.
Get the tag for this entry.
|
boolean |
match(BaseStructure structure)
Deprecated.
Checks if a structure matches this dictionary entry.
|
java.lang.String |
toString()
Deprecated.
Get a string representation of this entry.
|
java.lang.StringBuilder |
toXML()
Deprecated.
Get an xml representation of this entry.
|
public EvioDictionaryEntry(java.lang.String tag, java.lang.String num, java.lang.String description)
tag
- the string tag, will be converted into an int.num
- the string num field, which might be null
, and which will be tokenized (for possible
ancestor matching) and converted into an array of ints.description
- the nice name for this dictionary entry--the description.public boolean match(BaseStructure structure)
structure
- the structure to test.true
if the structure matches.public int compareTo(EvioDictionaryEntry entry)
compareTo
in interface java.lang.Comparable<EvioDictionaryEntry>
entry
- the object to compare against.public java.lang.String getDescription()
public int getTag()
public java.lang.StringBuilder toXML()
public java.lang.String toString()
toString
in class java.lang.Object