|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.datamodel.impl.RecordImpl
public class RecordImpl
Default implementation of SMILA Records.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.smila.datamodel.Record |
|---|
RECORD_ID, SOURCE |
| Method Summary | |
|---|---|
int |
attachmentSize()
get number of attachments. |
Attachment |
getAttachment(java.lang.String name)
get attachment value with the specified name. |
byte[] |
getAttachmentAsBytes(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. |
DataFactory |
getFactory()
get record factory to use for adding objects to this record. |
java.lang.String |
getId()
Get the ID of this record. |
AnyMap |
getMetadata()
Get the metadata of this record. |
java.lang.String |
getSource()
Get the data source 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(Attachment attachment)
set attachment. |
void |
setAttachment(java.lang.String name,
byte[] attachment)
set attachment content for the specified name. |
void |
setId(java.lang.String id)
Set the ID of this record. |
void |
setSource(java.lang.String source)
Set the data source of this record. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public java.lang.String getId()
Record
getId in interface Recordpublic java.lang.String getSource()
getSource in interface Recordpublic AnyMap getMetadata()
Record
getMetadata in interface Recordpublic int attachmentSize()
Record
attachmentSize in interface Recordpublic Attachment getAttachment(java.lang.String name)
Record
getAttachment in interface Recordname - attachment name.
public byte[] getAttachmentAsBytes(java.lang.String name)
Record
getAttachmentAsBytes in interface Recordname - attachment name.
public java.util.Iterator<java.lang.String> getAttachmentNames()
Record
getAttachmentNames in interface Recordpublic boolean hasAttachments()
Record
hasAttachments in interface Recordpublic boolean hasAttachment(java.lang.String name)
Record
hasAttachment in interface Recordname - attachment name.
public void removeAttachment(java.lang.String name)
Record
removeAttachment in interface Recordname - attachment name.public void removeAttachments()
Record
removeAttachments in interface Recordpublic void setAttachment(Attachment attachment)
Record
setAttachment in interface Recordattachment - the new attachment.
public void setAttachment(java.lang.String name,
byte[] attachment)
Record
setAttachment in interface Recordname - attachment name.attachment - attachment value.public void setId(java.lang.String id)
Record
setId in interface Recordid - new record IDpublic void setSource(java.lang.String source)
Record
setSource in interface Recordsource - data sourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic DataFactory getFactory()
Record
getFactory in interface Record
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||