public class OmexDescription extends Object
Modifier and Type | Field and Description |
---|---|
List<Date> |
modified
The dates modified.
|
Constructor and Description |
---|
OmexDescription()
Instantiates a new omex description.
|
OmexDescription(org.jdom2.Element parent)
Instantiates a new omex description parsed from an XML subtree.
|
OmexDescription(List<VCard> creators,
Date created)
Instantiates a new omex description.
|
OmexDescription(List<VCard> creators,
List<Date> modified)
Instantiates a new omex description.
|
OmexDescription(List<VCard> creators,
List<Date> modified,
Date created)
Instantiates a new omex description.
|
OmexDescription(VCard creator,
Date created)
Instantiates a new omex description.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
public OmexDescription()
public OmexDescription(List<VCard> creators, List<Date> modified)
creators
- the creatorsmodified
- the date of modificationspublic OmexDescription(VCard creator, Date created)
creator
- the creatorcreated
- the date of creationpublic OmexDescription(List<VCard> creators, Date created)
creators
- the creatorscreated
- the date of creationpublic OmexDescription(List<VCard> creators, List<Date> modified, Date created)
creators
- the creatorsmodified
- the date of modificationscreated
- the date of creationpublic OmexDescription(org.jdom2.Element parent) throws ParseException
parent
- the parent elementParseException
- the parse exceptionpublic String getDescription()
public Date getCreated()
public boolean isEmpty()
public void toXML(org.jdom2.Element parent)
parent
- the parent elementpublic org.json.simple.JSONObject toJsonDescription()
Copyright © 2014. All rights reserved.