Class ResolvedCompositeGeneName
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<CompositeToken>
-
- de.julielab.genemapper.composites.ResolvedCompositeGeneName
-
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<CompositeToken>,Collection<CompositeToken>,List<CompositeToken>,RandomAccess
public class ResolvedCompositeGeneName extends ArrayList<CompositeToken>
This class represents a re-assembled gene name from a formerly tokenized and possibly rearranged composite gene name to identify multiple gene names denoted by one composite expression. This class then represents individually identified mentions that should not be a composite any more.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ResolvedCompositeGeneName(Class<? extends CompositePatternResolver> resolutionComponent)ResolvedCompositeGeneName(List<CompositeToken> tokens, Class<? extends CompositePatternResolver> resolutionComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAcronymForm(ResolvedCompositeGeneName acronymForm)List<ResolvedCompositeGeneName>getAcronymForms()Returns the acronym variant of this gene name, if it was embedded into the long form for this mention.intgetBegin()intgetEnd()Class<? extends CompositePatternResolver>getResolutionComponent()StringgetTagging()StringtoString()-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
-
Methods inherited from interface java.util.List
containsAll
-
-
-
-
Constructor Detail
-
ResolvedCompositeGeneName
public ResolvedCompositeGeneName(Class<? extends CompositePatternResolver> resolutionComponent)
-
ResolvedCompositeGeneName
public ResolvedCompositeGeneName(List<CompositeToken> tokens, Class<? extends CompositePatternResolver> resolutionComponent)
-
-
Method Detail
-
getAcronymForms
public List<ResolvedCompositeGeneName> getAcronymForms()
Returns the acronym variant of this gene name, if it was embedded into the long form for this mention.
For expressions like
interleukin (IL) 2, theEmbeddedAcronymPatternResolvercreates the resolved variantinterleukin 2andIL 2. The latter is set as the acronym to the first instead of returning both directly. The reason is that this is rather an alternative choice instead of an actual multiplication of one gene name into multiple names.- Returns:
- The acronym variant of this gene name or
nullif there is none.
-
addAcronymForm
public void addAcronymForm(ResolvedCompositeGeneName acronymForm)
-
toString
public String toString()
- Overrides:
toStringin classAbstractCollection<CompositeToken>
-
getTagging
public String getTagging()
-
getResolutionComponent
public Class<? extends CompositePatternResolver> getResolutionComponent()
-
getBegin
public int getBegin()
-
getEnd
public int getEnd()
-
-