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, setVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, getId, getOrganization, getTitle, getVersion
protected 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()
SourceDescriptor
Source
.getSourceId
in interface SourceDescriptor
public void setSiteName(String siteName)
siteName
- the sourceIdpublic Set<ContentType> getContentTypes()
SourceDescriptor
Source
getContentTypes
in interface SourceDescriptor
public void setContentTypes(Set<ContentType> catalogedTypes)
catalogedTypes
- the new content typespublic boolean isAvailable()
SourceDescriptor
Source
is available.isAvailable
in interface SourceDescriptor
Source.isAvailable()
public void setAvailable(boolean isAvailable)
isAvailable
- the new availablepublic Date getLastAvailabilityDate()
SourceDescriptor
Source
getLastAvailabilityDate
in interface SourceDescriptor
public void setLastAvailabilityDate(Date lastAvailableDate)
lastAvailableDate
- the new last availability dateThis work is licensed under a Creative Commons Attribution 4.0 International License.