public class TrackedAttribute extends RGAttribute
Modifier and Type | Field and Description |
---|---|
protected ArrayList |
associatedCells
all of the cells that are associated with this attribute.
|
private String |
eol |
(package private) ArrayList |
typeDescriptors
Holds ("term", TypeDescriptor) pairs, where "term" is one or more words
from the attribute's label.
|
label
Constructor and Description |
---|
TrackedAttribute(RGAttribute attr)
Create a new tracked attribute, copying the label and cells
from the original RGAttribute.
|
TrackedAttribute(String s)
Make a new attribute with the given string as a label
|
Modifier and Type | Method and Description |
---|---|
AbstractTypeDescriptor |
getTypeDescriptor(String term)
Get the type descriptor associated with the given term
|
AbstractTypeDescriptor[] |
getTypeDescriptors()
Get all the type descriptors associated with this attribute's phrase label.
|
void |
removeAllTypeDescriptors()
Forget all of the type descriptors assigned to this attribute.
|
void |
setTypeDescriptor(String term,
AbstractTypeDescriptor descr)
Associates the given descriptor with the given term.
|
addCell, getCells, getLabel, setLabel
private String eol
ArrayList typeDescriptors
protected ArrayList associatedCells
public TrackedAttribute(RGAttribute attr)
public TrackedAttribute(String s)
public void setTypeDescriptor(String term, AbstractTypeDescriptor descr)
term
- one or more words from the attribute's labeldescr
- a type descriptor; if null, then this method has no effect.public void removeAllTypeDescriptors()
public AbstractTypeDescriptor getTypeDescriptor(String term)
term
- one or more words from the attribute's label; null
if there isn't one.public AbstractTypeDescriptor[] getTypeDescriptors()