|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.petpet.c3po.api.model.Element
public class Element
A domain object class that encapsulates a digital object and its meta data. It consists of a couple of attributes that describe a simple object (usually a file) and a list of specific metadata.
| Constructor Summary | |
|---|---|
Element(String uid,
String name)
Creates an element with the given uid and name. |
|
Element(String collection,
String uid,
String name)
Creates an element with the given uid, name and collection. |
|
| Method Summary | |
|---|---|
String |
getCollection()
|
String |
getId()
|
List<MetadataRecord> |
getMetadata()
|
String |
getName()
|
String |
getUid()
|
List<MetadataRecord> |
removeMetadata(String property)
Removes all records for the given property id and returns a list of all removed meta data records. |
void |
setCollection(String collection)
|
void |
setId(String id)
|
void |
setMetadata(List<MetadataRecord> metadata)
|
void |
setName(String name)
|
void |
setUid(String uid)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Element(String uid,
String name)
uid - the unique identifier of this element.name - the name of this element.
public Element(String collection,
String uid,
String name)
collection - uid - name - | Method Detail |
|---|
public String getCollection()
public void setCollection(String collection)
public String getName()
public void setName(String name)
public String getUid()
public void setUid(String uid)
public List<MetadataRecord> getMetadata()
public void setMetadata(List<MetadataRecord> metadata)
public String getId()
public void setId(String id)
public List<MetadataRecord> removeMetadata(String property)
property - the id of the property
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||