|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.groboutils.pmti.v1.defimpl.AbstractEditableListAttribute
A simple name-value association for a specific kind of issue attribute. All implementations of IAttribute are immutable, unless they also implement IEditableAttribute.
Constructor Summary | |
AbstractEditableListAttribute(IListAttribute a)
|
Method Summary | |
void |
addValue(java.lang.Object value)
This method still performs array checking. |
boolean |
containsValue(java.lang.Object value)
|
IAttributeInfo |
getInfo()
Returns the meta-information for this attribute. |
java.lang.Object |
getValue()
Returns the enumeration for all values in this attribute. |
int |
getValueCount()
|
java.util.Enumeration |
getValues()
A synonym for getValue(), but redefined here to explicitly declare the returned type. |
boolean |
hasValueChanged()
|
protected abstract boolean |
innerIsValidValue(java.lang.Object value)
Simplified form of the value validation check. |
boolean |
isValidValue(java.lang.Object value)
Specialization of the original purpose. |
void |
removeValue(java.lang.Object value)
Does nothing if the value is not in the list of known values. |
void |
setValue(java.lang.Object value)
This list version needs special handling for when the value is an array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractEditableListAttribute(IListAttribute a)
Method Detail |
public java.lang.Object getValue()
getValue
in interface IAttribute
public IAttributeInfo getInfo()
getInfo
in interface IAttribute
public java.util.Enumeration getValues()
getValues
in interface IListAttribute
public int getValueCount()
getValueCount
in interface IListAttribute
public boolean containsValue(java.lang.Object value)
containsValue
in interface IListAttribute
public void setValue(java.lang.Object value)
setValue
in interface IEditableAttribute
java.lang.IllegalArgumentException
- thrown if the value argument is
invalid.public boolean hasValueChanged()
hasValueChanged
in interface IEditableAttribute
public boolean isValidValue(java.lang.Object value)
isValidValue
in interface IEditableAttribute
protected abstract boolean innerIsValidValue(java.lang.Object value)
public void addValue(java.lang.Object value)
addValue
in interface IEditableListAttribute
java.lang.IllegalArgumentException
- thrown if the value argument is
invalid.public void removeValue(java.lang.Object value)
removeValue
in interface IEditableListAttribute
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |