public class AcronymEntry extends Object implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
AcronymEntry(String full)
adds only a fullform (no further information) to the internal
fullformList
|
protected |
AcronymEntry(String fullName,
FullformEntry ffE)
adds a fullform with all information in the FullformEntry to the internal
fullformList
|
protected |
AcronymEntry(String full,
int year,
Set<String> mesh,
Set<String> unnormalizedFulls)
adds a fullform with all information to the internal fullformList
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFullform(String fullName,
FullformEntry f) |
Set<Map.Entry<String,FullformEntry>> |
getAllFullforms() |
String |
getHTMLString(String shortform,
boolean includeMeshs)
returns a html representation of this entry for
including it in a table.
|
String |
getString(String shortform)
returns a formatted String containing all information of the AcronymEntry
format is Short Full_1 Year_1 MeshList_1 # Unnormalized Fullforms_1 Short
Full_2 Year_2 MeshList_2 # Unnormalized Fullforms_2 ...
|
boolean |
hasfullform(String full) |
void |
merge(String ffToKeep,
String ffEntryToInclude)
This method treads the second parameter as a variation of
of the FullformEntry connected to the first parameter.
|
void |
remove(String fullform)
removes the fullform entry defined by the String
|
int |
size() |
protected AcronymEntry(String full)
full - the (normalized) fullformprotected AcronymEntry(String full, int year, Set<String> mesh, Set<String> unnormalizedFulls)
full - the (normalized) fullformyear - the year of the documentmesh - all MeshTerms of the documentunnormalizedFulls - all unnormalized fullformsprotected AcronymEntry(String fullName, FullformEntry ffE)
fullName - the (normalized) fullformffE - the FullformEntry containg document informationpublic boolean hasfullform(String full)
public Set<Map.Entry<String,FullformEntry>> getAllFullforms()
public void addFullform(String fullName, FullformEntry f)
public void merge(String ffToKeep, String ffEntryToInclude) throws NullPointerException
ffToKeep - the name of the FullformEntry that is supposed
to be the representativeffEntryToInclude - the name of the FullformEntry that contains
the information which shall be added to the represantative. Will be deleted
afterwardsNullPointerExceptionpublic void remove(String fullform)
fullform - public String getString(String shortform)
shortform - the current short formpublic String getHTMLString(String shortform, boolean includeMeshs)
shortform - the current short formincludeMeshs - decide whether the table contains
a column listing all meshterms to the short-full-pairpublic int size()
Copyright © 2018 JULIE Lab Jena, Germany. All rights reserved.