|
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.record.impl.RecordImpl
public class RecordImpl
Default implementation of SMILA Records.
| Field Summary | |
|---|---|
static RecordFactory |
FACTORY
record factory for this record implementation. |
| 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. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final RecordFactory FACTORY
| Constructor Detail |
|---|
public RecordImpl()
| Method Detail |
|---|
public RecordFactory getFactory()
getFactory in interface RecordRecord.getFactory()public int attachmentSize()
attachmentSize in interface RecordRecord.attachmentSize()public byte[] getAttachment(java.lang.String name)
getAttachment in interface Recordname - attachment name.
Record.getAttachment(java.lang.String)public java.util.Iterator<java.lang.String> getAttachmentNames()
getAttachmentNames in interface RecordRecord.getAttachmentNames()public Id getId()
getId in interface RecordRecord.getId()public MObject getMetadata()
getMetadata in interface RecordRecord.getMetadata()public boolean hasAttachments()
hasAttachments in interface RecordRecord.hasAttachments()public boolean hasAttachment(java.lang.String name)
hasAttachment in interface Recordname - attachment name.
Record.hasAttachment(java.lang.String)public void removeAttachment(java.lang.String name)
removeAttachment in interface Recordname - attachment name.Record.removeAttachment(java.lang.String)public void removeAttachments()
removeAttachments in interface RecordRecord.removeAttachments()
public void setAttachment(java.lang.String name,
byte[] attachment)
setAttachment in interface Recordname - attachment name.attachment - attachment value.org.eclipse.smila.datamodel.record.Record#setAttachment(java.lang.String, java.io.Serializable)public void setId(Id id)
setId in interface Recordid - new record IDRecord.setId(org.eclipse.smila.datamodel.id.Id)public void setMetadata(MObject metadata)
setMetadata in interface Recordmetadata - new metadata object describing this record.Record.setMetadata(org.eclipse.smila.datamodel.record.MObject)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||