|
SMILA (incubation) 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 |
| Constructor Summary | |
|---|---|
RecordImpl()
|
|
| 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. |
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(java.lang.String name,
byte[] attachment)
set attachment value 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 |
| Constructor Detail |
|---|
public RecordImpl()
| Method Detail |
|---|
public java.lang.String getId()
getId in interface Recordpublic java.lang.String getSource()
getSource in interface Recordpublic AnyMap getMetadata()
getMetadata in interface Recordpublic int attachmentSize()
attachmentSize in interface Recordpublic byte[] getAttachment(java.lang.String name)
getAttachment in interface Recordname - attachment name.
public java.util.Iterator<java.lang.String> getAttachmentNames()
getAttachmentNames in interface Recordpublic boolean hasAttachments()
hasAttachments in interface Recordpublic boolean hasAttachment(java.lang.String name)
hasAttachment in interface Recordname - attachment name.
public void removeAttachment(java.lang.String name)
removeAttachment in interface Recordname - attachment name.public void removeAttachments()
removeAttachments in interface Record
public void setAttachment(java.lang.String name,
byte[] attachment)
setAttachment in interface Recordname - attachment name.attachment - attachment value.public void setId(java.lang.String id)
setId in interface Recordid - new record IDpublic void setSource(java.lang.String source)
setSource in interface Recordsource - data sourcepublic java.lang.String toString()
toString in class java.lang.Objectpublic DataFactory getFactory()
getFactory in interface Record
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||