public class Activity extends RIFCSElement
Modifier and Type | Method and Description |
---|---|
void |
addCoverage(Coverage coverage)
Add a coverage element to the activity object.
|
void |
addDescription(Description description)
Add a description to the activity object.
|
void |
addDescription(java.lang.String description,
java.lang.String type,
java.lang.String language)
Convenience method to add a description to the activity object.
|
void |
addExistenceDates(ExistenceDates anExistenceDates)
Add an existence dates element to the activity object.
|
void |
addExistenceDates(java.lang.String startVal,
java.lang.String startDateFormat,
java.lang.String endVal,
java.lang.String endDateFormat)
Add an existence dates element to the activity object.
|
void |
addIdentifier(Identifier identifier)
Add an identifier to the activity object.
|
void |
addLocation(Location location)
Add a location to the activity object.
|
void |
addName(Name name)
Add a name to the activity object.
|
void |
addRelatedInfo(RelatedInfo relatedInfo)
Add related info to the activity object.
|
void |
addRelatedObject(RelatedObject relatedObject)
Add a related object to the activity object.
|
void |
addRights(Rights aRights)
Add a rights element to the activity object.
|
void |
addSubject(java.lang.String value,
java.lang.String type,
java.lang.String termIdentifier,
java.lang.String lang)
Add a subject to the activity object.
|
void |
addSubject(Subject subject)
Add a subject to the activity object.
|
java.util.List<Coverage> |
getCoverage()
Obtain the coverage for this activity.
|
java.lang.String |
getDateModified()
return the date modified.
|
java.util.List<Description> |
getDescriptions()
Obtain the description for this activity.
|
java.util.List<ExistenceDates> |
getExistenceDates()
Obtain the description for this activity.
|
java.util.List<Identifier> |
getIdentifiers()
Obtain the identifiers for this activity.
|
java.util.List<Location> |
getLocations()
Obtain the locations for this activity.
|
java.util.List<Name> |
getNames()
Obtain the names for this activity.
|
java.util.List<RelatedInfo> |
getRelatedInfo()
Obtain the related info for this activity.
|
java.util.List<RelatedObject> |
getRelatedObjects()
Obtain the related objects for this activity.
|
java.util.List<Rights> |
getRights()
Obtain the rights for this activity.
|
java.util.List<Subject> |
getSubjects()
Obtain the subjects for this activity.
|
java.lang.String |
getType()
return the type.
|
Coverage |
newCoverage()
Create and return an empty Coverage object.
|
Description |
newDescription()
Create and return an empty Description object.
|
ExistenceDates |
newExistenceDate()
Create and return an empty ExistenceDates object.
|
Identifier |
newIdentifier()
Create and return an empty Identifier object.
|
Location |
newLocation()
Create and return an empty Location object.
|
Name |
newName()
Create and return an empty Name object.
|
RelatedInfo |
newRelatedInfo()
Create and return an empty RelatedInfo object.
|
RelatedObject |
newRelatedObject()
Create and return an empty RelatedObject object.
|
Rights |
newRights()
Create and return an empty Rights object.
|
Subject |
newSubject()
Create and return an empty Subject object.
|
void |
setDateModified(java.util.Date date)
Set the date the activity metadata was modified.
|
void |
setDateModified(java.lang.String date)
Set the date the activity metadata was last modified.
|
void |
setType(java.lang.String type)
Set the type.
|
public final void setType(java.lang.String type)
type
- The type of activity being describedpublic final java.lang.String getType()
public final void setDateModified(java.util.Date date)
date
- A date object representing the date the activity metadata
was last modifiedpublic final void setDateModified(java.lang.String date)
date
- A string in UTC and of one of the forms described in section 3.2.7
of the W3C's Schema
Data Types documentpublic final java.lang.String getDateModified()
public final Identifier newIdentifier() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addIdentifier(Identifier identifier)
identifier
- an Identifier objectpublic final java.util.List<Identifier> getIdentifiers()
public final Name newName() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addName(Name name)
name
- a Name objectpublic final java.util.List<Name> getNames()
public final Location newLocation() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addLocation(Location location)
location
- a Location objectpublic final java.util.List<Location> getLocations()
public final Coverage newCoverage() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addCoverage(Coverage coverage)
coverage
- a Coverage objectpublic final java.util.List<Coverage> getCoverage()
public final RelatedObject newRelatedObject() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addRelatedObject(RelatedObject relatedObject)
relatedObject
- an RelatedObject objectpublic final java.util.List<RelatedObject> getRelatedObjects()
public final Subject newSubject() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addSubject(Subject subject)
subject
- a Subject objectpublic final void addSubject(java.lang.String value, java.lang.String type, java.lang.String termIdentifier, java.lang.String lang)
value
- The valuetype
- The typetermIdentifier
- The termIdentifierlang
- The langpublic final java.util.List<Subject> getSubjects()
public final Description newDescription() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addDescription(Description description)
description
- a Description objectpublic final void addDescription(java.lang.String description, java.lang.String type, java.lang.String language) throws RIFCSException
description
- a description stringtype
- the description typelanguage
- the description language or nullRIFCSException
- A RIFCSExceptionpublic final java.util.List<Description> getDescriptions()
public final Rights newRights() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addRights(Rights aRights)
aRights
- a Rights objectpublic final java.util.List<Rights> getRights()
public final ExistenceDates newExistenceDate() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addExistenceDates(ExistenceDates anExistenceDates)
anExistenceDates
- an ExistenceDates objectpublic final void addExistenceDates(java.lang.String startVal, java.lang.String startDateFormat, java.lang.String endVal, java.lang.String endDateFormat)
startVal
- The start datestartDateFormat
- The start date formatendVal
- The end dateendDateFormat
- The end date formatpublic final java.util.List<ExistenceDates> getExistenceDates()
public final RelatedInfo newRelatedInfo() throws RIFCSException
RIFCSException
- A RIFCSExceptionpublic final void addRelatedInfo(RelatedInfo relatedInfo)
relatedInfo
- a relatedInfo objectpublic final java.util.List<RelatedInfo> getRelatedInfo()