|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MObject
Interface of Metadata Objects. Metadata Objects consist of a set of attributes and can have annotations. The root metadata object of an SMILA record is a Metadata Object, but Metadata objects can also be used as attribute values inside other metadata objects to create more structured records. The interface name is MObject (= Metadata Object) in order to avoid the name clash with java.lang.Object.
Method Summary | |
---|---|
Attribute |
getAttribute(java.lang.String name)
Get the attribute object for the specified name. |
java.util.Iterator<java.lang.String> |
getAttributeNames()
Get an iterator on the names of the currently existing attributes. |
boolean |
hasAttribute(java.lang.String name)
Check if this metadata object has an attribute with the specified name. |
boolean |
hasAttributes()
Check if this metadata object has attributes set. |
Attribute |
removeAttribute(java.lang.String name)
Removes the attribute object for the specified name. |
void |
setAttribute(java.lang.String name,
Attribute attribute)
Set the attribute object for the specified name. |
int |
size()
get number of attributes. |
Methods inherited from interface org.eclipse.smila.datamodel.record.AttributeValue |
---|
getSemanticType, setSemanticType |
Methods inherited from interface org.eclipse.smila.datamodel.record.Annotatable |
---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
Method Detail |
---|
boolean hasAttributes()
boolean hasAttribute(java.lang.String name)
name
- name of attribute to check for
int size()
java.util.Iterator<java.lang.String> getAttributeNames()
Attribute getAttribute(java.lang.String name)
name
- name of an attribute.
void setAttribute(java.lang.String name, Attribute attribute)
name
- name of attribute to setattribute
- new Attribute object.Attribute removeAttribute(java.lang.String name)
name
- name of attribute to remove
|
SMILA (incubation) API documentation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |