Class OmexDescription
- java.lang.Object
-
- de.unirostock.sems.cbarchive.meta.omex.OmexDescription
-
public class OmexDescription extends Object
The Class OmexDescription to parse and create meta data for entries in CombineArchives.- Author:
- martin scharm
-
-
Constructor Summary
Constructors Constructor Description OmexDescription()
Instantiates a new omex description.OmexDescription(VCard creator, Date created)
Instantiates a new omex description.OmexDescription(VCard creator, Date created, String description)
Instantiates a new omex description.OmexDescription(String description)
Instantiates a new omex description.OmexDescription(List<VCard> creators, Date created)
Instantiates a new omex description.OmexDescription(List<VCard> creators, Date created, String description)
Instantiates a new omex description.OmexDescription(List<VCard> creators, List<Date> modified)
Instantiates a new omex description.OmexDescription(List<VCard> creators, List<Date> modified, String description)
Instantiates a new omex description.OmexDescription(List<VCard> creators, List<Date> modified, Date created)
Instantiates a new omex description.OmexDescription(List<VCard> creators, List<Date> modified, Date created, String description)
Instantiates a new omex description.OmexDescription(org.jdom2.Element parent)
Instantiates a new omex description parsed from an XML subtree.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OmexDescription
clone()
Date
getCreated()
Gets the date created.List<VCard>
getCreators()
Gets the creators.String
getDescription()
Gets the description.List<Date>
getModified()
Gets the dates modified.boolean
isEmpty()
Checks if description is empty.void
setDescription(String description)
Sets the description.org.json.simple.JSONObject
toJsonDescription()
Export a JSON description of this OMEX description.void
toXML(org.jdom2.Element parent)
Attach the description to an XML tree.
-
-
-
Constructor Detail
-
OmexDescription
public OmexDescription(String description)
Instantiates a new omex description.- Parameters:
description
- the textual description
-
OmexDescription
public OmexDescription(List<VCard> creators, List<Date> modified, String description)
Instantiates a new omex description.- Parameters:
creators
- the creatorsmodified
- the date of modificationsdescription
- the textual description
-
OmexDescription
public OmexDescription(VCard creator, Date created, String description)
Instantiates a new omex description.- Parameters:
creator
- the creatorcreated
- the date of creationdescription
- the textual description
-
OmexDescription
public OmexDescription(List<VCard> creators, Date created, String description)
Instantiates a new omex description.- Parameters:
creators
- the creatorscreated
- the date of creationdescription
- the textual description
-
OmexDescription
public OmexDescription(List<VCard> creators, List<Date> modified, Date created, String description)
Instantiates a new omex description.- Parameters:
creators
- the creatorsmodified
- the date of modificationscreated
- the date of creationdescription
- the textual description
-
OmexDescription
public OmexDescription()
Instantiates a new omex description.
-
OmexDescription
public OmexDescription(List<VCard> creators, List<Date> modified)
Instantiates a new omex description.- Parameters:
creators
- the creatorsmodified
- the date of modifications
-
OmexDescription
public OmexDescription(VCard creator, Date created)
Instantiates a new omex description.- Parameters:
creator
- the creatorcreated
- the date of creation
-
OmexDescription
public OmexDescription(List<VCard> creators, Date created)
Instantiates a new omex description.- Parameters:
creators
- the creatorscreated
- the date of creation
-
OmexDescription
public OmexDescription(List<VCard> creators, List<Date> modified, Date created)
Instantiates a new omex description.- Parameters:
creators
- the creatorsmodified
- the date of modificationscreated
- the date of creation
-
OmexDescription
public OmexDescription(org.jdom2.Element parent) throws ParseException
Instantiates a new omex description parsed from an XML subtree.- Parameters:
parent
- the parent element- Throws:
ParseException
- the parse exception
-
-
Method Detail
-
getDescription
public String getDescription()
Gets the description.- Returns:
- the description
-
setDescription
public void setDescription(String description)
Sets the description.- Parameters:
description
- the description
-
getCreated
public Date getCreated()
Gets the date created.- Returns:
- the date created
-
clone
public OmexDescription clone()
-
isEmpty
public boolean isEmpty()
Checks if description is empty.- Returns:
- true, if is empty
-
toXML
public void toXML(org.jdom2.Element parent)
Attach the description to an XML tree.- Parameters:
parent
- the parent element
-
toJsonDescription
public org.json.simple.JSONObject toJsonDescription()
Export a JSON description of this OMEX description.- Returns:
- the JSON object
-
-