|
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.AnnotatableImpl
org.eclipse.smila.datamodel.record.impl.AttributeImpl
public class AttributeImpl
Default implementation of SMILA Attribute.
| Constructor Summary | |
|---|---|
AttributeImpl()
|
|
| 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 class org.eclipse.smila.datamodel.record.impl.AnnotatableImpl |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.smila.datamodel.record.Annotatable |
|---|
addAnnotation, annotationsSize, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotations, removeAnnotations, removeAnnotations, setAnnotation, setAnnotations |
| Constructor Detail |
|---|
public AttributeImpl()
| Method Detail |
|---|
public void addObject(MObject object)
addObject in interface Attributeobject - new metadata objectAttribute.addObject(org.eclipse.smila.datamodel.record.MObject)public void addLiteral(Literal literal)
addLiteral in interface Attributeliteral - new literal value.Attribute.addLiteral(org.eclipse.smila.datamodel.record.Literal)public java.lang.String getName()
getName in interface AttributeAttribute.getName()public MObject getObject()
getObject in interface AttributeAttribute.getObject()public java.util.List<MObject> getObjects()
getObjects in interface AttributeAttribute.getObjects()public Literal getLiteral()
getLiteral in interface AttributeAttribute.getLiteral()public java.util.List<Literal> getLiterals()
getLiterals in interface AttributeAttribute.getLiterals()public boolean hasObjects()
hasObjects in interface AttributeAttribute.hasObjects()public boolean hasLiterals()
hasLiterals in interface AttributeAttribute.hasLiterals()public int objectSize()
objectSize in interface AttributeAttribute.objectSize()public void removeObjects()
removeObjects in interface AttributeAttribute.removeObjects()public void removeLiterals()
removeLiterals in interface AttributeAttribute.removeLiterals()public void setName(java.lang.String name)
setName in interface Attributename - name of attributeAttribute.setName(java.lang.String)public void setObject(MObject object)
setObject in interface Attributeobject - new metadata objectAttribute.setObject(org.eclipse.smila.datamodel.record.MObject)public void setObjects(java.util.Collection<? extends MObject> objects)
setObjects in interface Attributeobjects - new metadata objectsAttribute.setObjects(java.util.Collection)public void setLiteral(Literal literal)
setLiteral in interface Attributeliteral - new literal valueAttribute.setLiteral(org.eclipse.smila.datamodel.record.Literal)public void setLiterals(java.util.Collection<? extends Literal> literals)
setLiterals in interface Attributeliterals - new literal valuesAttribute.setLiterals(java.util.Collection)public int literalSize()
literalSize in interface AttributeAttribute.literalSize()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||