|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Attribute
Interface of Attribute object. Attributes have a name and are part of Metadata Objects. They can contain a set of literal values and a set of further metadata object.
MObject| Method Summary | |
|---|---|
void |
addLiteral(Literal literal)
add a literal value to this attribute. |
void |
addObject(MObject object)
add a metadata object to this attribute. |
Literal |
getLiteral()
get one literal value of this attribute. |
java.util.List<Literal> |
getLiterals()
get list of literal values in this attribute. |
java.lang.String |
getName()
get name of attribute. |
MObject |
getObject()
get one metadata object of this attribute. |
java.util.List<MObject> |
getObjects()
get metadata objects contained in this attribute. |
boolean |
hasLiterals()
check if attribute has literal values. |
boolean |
hasObjects()
check if attribute has sub metadata objects. |
int |
literalSize()
get number of literal values. |
int |
objectSize()
get number of metadata objects in this attribute. |
void |
removeLiterals()
remove all current literal values from this attribute. |
void |
removeObjects()
remove all current metadata objects from this attribute. |
void |
setLiteral(Literal literal)
set a single literal value for this attribute. |
void |
setLiterals(java.util.Collection<? extends Literal> literals)
set the literal values of this attribute. |
void |
setName(java.lang.String name)
set name of attribute. |
void |
setObject(MObject object)
set the metadata object of this attribute. |
void |
setObjects(java.util.Collection<? extends MObject> objects)
set the metadata objects of this attribute. |
| Methods inherited from interface org.eclipse.smila.datamodel.record.Annotatable |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Method Detail |
|---|
java.lang.String getName()
void setName(java.lang.String name)
name - name of attributeboolean hasLiterals()
int literalSize()
java.util.List<Literal> getLiterals()
Literal getLiteral()
void setLiterals(java.util.Collection<? extends Literal> literals)
literals - new literal valuesvoid setLiteral(Literal literal)
literal - new literal valuevoid addLiteral(Literal literal)
literal - new literal value.void removeLiterals()
boolean hasObjects()
int objectSize()
java.util.List<MObject> getObjects()
MObject getObject()
void setObjects(java.util.Collection<? extends MObject> objects)
objects - new metadata objectsvoid setObject(MObject object)
object - new metadata objectvoid addObject(MObject object)
object - new metadata objectvoid removeObjects()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||