public class DocItemized extends Doc implements IDocItemized
Constructor and Description |
---|
DocItemized() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.Collection<IDocItem> docItems)
Adds a collection of items to the document.
|
boolean |
add(IDocItem docItem)
New items (those not yet saved to persistent store) won't have an id,
so we use the order of the item is used as the index.
|
boolean |
clearItems()
Clears all document-item relations set on the document.
|
java.math.BigDecimal |
getAmount() |
java.util.Collection<IDocItem> |
getDocItems() |
void |
setDocItems(java.util.Collection<IDocItem> di)
Sets document-items of this document.
|
java.lang.String |
toString() |
add, addSource, addTarget, getCurrency, getDate, getEntry, getId, getNumber, getRelatedDocs, getStatus, getTime, getType, isStatus, setCurrency, setDate, setEntry, setId, setNumber, setStatus, setTime, setType
addAttribute, addAttribute, equals, getAttribute, getAttributeMaximumLength, getAttributeMinimumLength, getAttributeValue, getField, getFieldFlagValue, getFieldNames, getFields, getFieldsUnsavedElements, getFieldValue, getPrimaryKey, getValue, hasUnsavedElements, isAttributeEditable, isAttributeRequired, isAttributeVisible, isAttributeVisible, isDeletable, isDeleted, isEditable, isFieldModified, isFieldState, isModified, isModifiedBase, isNew, setAttributeValue, setDeletable, setDeleted, setFieldFlag, setFieldState, setFieldValue, setNew
public void add(java.util.Collection<IDocItem> docItems)
IDocItemized
add
in interface IDocItemized
docItems
- Document-item relationships
to be added to the existing list of relationship.public boolean add(IDocItem docItem)
add
in interface IDocItemized
docItem
- true
if the item is added to the document.public boolean clearItems()
IDocItemized
clearItems
in interface IDocItemized
public java.math.BigDecimal getAmount()
public java.util.Collection<IDocItem> getDocItems()
getDocItems
in interface IDocItemized
DocumentItem
relationships set.
If no relationships have been added, a null collection.IDocItem
public void setDocItems(java.util.Collection<IDocItem> di)
IDocItemized
Existing document-items are cleared by this methods.
setDocItems
in interface IDocItemized