|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Record
SMILA record interface. This is the main object that describes entities that are created and processed in the system.
| Method Summary | |
|---|---|
int |
attachmentSize()
get number of attachments. |
byte[] |
getAttachment(java.lang.String name)
get attachment value for the specified name. |
java.util.Iterator<java.lang.String> |
getAttachmentNames()
Get iterator on names of attachments of this record. |
RecordFactory |
getFactory()
get record factory to use for adding objects to this record. |
Id |
getId()
Get the ID of this record. |
MObject |
getMetadata()
Get the metadata object of this record. |
boolean |
hasAttachment(java.lang.String name)
check if this record has an attachment of the specified name. |
boolean |
hasAttachments()
check if this record has attachments. |
void |
removeAttachment(java.lang.String name)
remove attachment for specified name. |
void |
removeAttachments()
remove attachments. |
void |
setAttachment(java.lang.String name,
byte[] attachment)
set attachment value for the specified name. |
void |
setId(Id id)
Set the ID of this record. |
void |
setMetadata(MObject metadata)
Set the metadata object of this record. |
| Method Detail |
|---|
RecordFactory getFactory()
Id getId()
void setId(Id id)
id - new record IDMObject getMetadata()
void setMetadata(MObject metadata)
metadata - new metadata object describing this record.boolean hasAttachments()
boolean hasAttachment(java.lang.String name)
name - attachment name.
int attachmentSize()
java.util.Iterator<java.lang.String> getAttachmentNames()
byte[] getAttachment(java.lang.String name)
name - attachment name.
void setAttachment(java.lang.String name,
byte[] attachment)
name - attachment name.attachment - attachment value.void removeAttachment(java.lang.String name)
name - attachment name.void removeAttachments()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||