Interface Item
- All Superinterfaces:
Comparable<Item>,Serializable
- All Known Implementing Classes:
CompoundItem,SimpleItem
Represents an item of information.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddValidType(String validType) find(int itemRef) getName()intgetType()booleanisDraft()booleanisEmpty()booleanisValidType(String valueType) booleanremove(int itemRef) voidsetDescription(String description) voidbooleanMethods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
getReference
int getReference() -
getName
String getName() -
setName
-
getType
String getType() -
getSubType
String getSubType() -
isDraft
boolean isDraft() -
getDescription
String getDescription() -
setDescription
-
add
- Throws:
UnsupportedOperationException- if add is not supported by the item.
-
find
- Throws:
UnsupportedOperationException- if find is not supported by the item.
-
update
- Throws:
UnsupportedOperationException- if add is not supported by the item.
-
remove
boolean remove(int itemRef) - Throws:
UnsupportedOperationException- if remove is not supported by the item.
-
isEmpty
boolean isEmpty() -
getValues
Collection getValues()- Throws:
UnsupportedOperationException- if getValues is not supported by the item.
-
addValidType
- Throws:
UnsupportedOperationException- if addValidType is not supported by the item.
-
isValidType
-
getValidTypes
Collection getValidTypes()- Throws:
UnsupportedOperationException- if getValidTypes is not supported by the item.
-