public class SourceDescriptorImpl extends DescribableImpl implements SourceDescriptor
SourceDescriptor.| Modifier and Type | Field and Description |
|---|---|
protected Set<ContentType> |
catalogedTypes
The content types contained in this source
|
protected boolean |
isAvailable |
protected Date |
lastAvailableDate |
protected String |
sourceId |
| Constructor and Description |
|---|
SourceDescriptorImpl(String sourceId,
Set<ContentType> catalogedTypes)
Instantiates a new SourceDescriptorImpl.
|
| Modifier and Type | Method and Description |
|---|---|
Set<ContentType> |
getContentTypes()
Gets the content types located within this
Source |
Date |
getLastAvailabilityDate()
Gets the last availability date of the
Source |
String |
getSourceId()
The name of this
Source. |
boolean |
isAvailable()
Checks if
Source is available. |
void |
setAvailable(boolean isAvailable)
Sets the available.
|
void |
setContentTypes(Set<ContentType> catalogedTypes)
Sets the content types.
|
void |
setLastAvailabilityDate(Date lastAvailableDate)
Sets the last availability date.
|
void |
setSiteName(String siteName)
Sets the source id.
|
getDescription, getId, getOrganization, getTitle, getVersion, setDescription, setId, setOrganization, setShortname, setTitle, setVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getId, getOrganization, getTitle, getVersionprotected String sourceId
protected Set<ContentType> catalogedTypes
protected boolean isAvailable
protected Date lastAvailableDate
public SourceDescriptorImpl(String sourceId, Set<ContentType> catalogedTypes)
sourceId - the source's idcatalogedTypes - the cataloged typespublic String getSourceId()
SourceDescriptorSource.getSourceId in interface SourceDescriptorpublic void setSiteName(String siteName)
siteName - the sourceIdpublic Set<ContentType> getContentTypes()
SourceDescriptorSourcegetContentTypes in interface SourceDescriptorpublic void setContentTypes(Set<ContentType> catalogedTypes)
catalogedTypes - the new content typespublic boolean isAvailable()
SourceDescriptorSource is available.isAvailable in interface SourceDescriptorSource.isAvailable()public void setAvailable(boolean isAvailable)
isAvailable - the new availablepublic Date getLastAvailabilityDate()
SourceDescriptorSourcegetLastAvailabilityDate in interface SourceDescriptorpublic void setLastAvailabilityDate(Date lastAvailableDate)
lastAvailableDate - the new last availability dateThis work is licensed under a Creative Commons Attribution 4.0 International License.