public class DublinCorePopulator extends AbstractLogEnabled implements ResourceMetadataPopulator, Configurable
ResourceMetadataPopulator
which populates Dublin Core metadata.Constructor and Description |
---|
DublinCorePopulator() |
Modifier and Type | Method and Description |
---|---|
protected void |
_setDCContributor(ModifiableResource resource,
String contributor)
Set DC Contributor
|
protected void |
_setDCCoverage(ModifiableResource resource,
String coverage)
Set DC Coverage
|
protected void |
_setDCCreator(ModifiableResource resource,
String creator)
Set DC Creator
|
protected void |
_setDCDate(ModifiableResource resource,
Date date)
Set DC Date
|
protected void |
_setDCDescription(ModifiableResource resource,
String description)
Set DC Description
|
protected void |
_setDCFormat(ModifiableResource resource,
String format)
Set DC Format
|
protected void |
_setDCIdentifier(ModifiableResource resource,
String identifier)
Set DC Identifier
|
protected void |
_setDCLanguage(ModifiableResource resource,
String language)
Set DC language
|
protected void |
_setDCPublisher(ModifiableResource resource,
String publisher)
Set DC Publisher
|
protected void |
_setDCRelation(ModifiableResource resource,
String relation)
Set DC Relation
|
protected void |
_setDCRights(ModifiableResource resource,
String rights)
Set DC rights
|
protected void |
_setDCSource(ModifiableResource resource,
String source)
Set DC Source
|
protected void |
_setDCSubject(ModifiableResource resource,
String[] subject)
Set DC Subject
|
protected void |
_setDCTitle(ModifiableResource resource,
String title)
Set DC Title
|
protected void |
_setDCType(ModifiableResource resource,
String type)
Set DC Type
|
void |
configure(Configuration configuration) |
Set<String> |
getTypes()
Returns the MIME types handled by this
ResourceMetadataPopulator . |
void |
populate(ModifiableResource resource,
Metadata metadata)
Populate the resource's properties from the provided Metadata.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
public DublinCorePopulator()
public void configure(Configuration configuration) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public Set<String> getTypes()
ResourceMetadataPopulator
ResourceMetadataPopulator
.getTypes
in interface ResourceMetadataPopulator
ResourceMetadataPopulator
.public void populate(ModifiableResource resource, Metadata metadata)
ResourceMetadataPopulator
populate
in interface ResourceMetadataPopulator
resource
- the resource to populate.metadata
- the parsed resources Metadata.protected void _setDCCreator(ModifiableResource resource, String creator)
resource
- The resource to editcreator
- The creatorprotected void _setDCContributor(ModifiableResource resource, String contributor)
resource
- The resource to editcontributor
- The contributor loginprotected void _setDCCoverage(ModifiableResource resource, String coverage)
resource
- The resource to editcoverage
- The coverageprotected void _setDCDate(ModifiableResource resource, Date date)
resource
- The resource to editdate
- The dateprotected void _setDCDescription(ModifiableResource resource, String description)
resource
- The resource to editdescription
- The descriptionprotected void _setDCFormat(ModifiableResource resource, String format)
resource
- The resource to editformat
- The formatprotected void _setDCIdentifier(ModifiableResource resource, String identifier)
resource
- The resource to editidentifier
- The identifierprotected void _setDCLanguage(ModifiableResource resource, String language)
resource
- The resource to editlanguage
- The languageprotected void _setDCPublisher(ModifiableResource resource, String publisher)
resource
- The resource to editpublisher
- The publisherprotected void _setDCRelation(ModifiableResource resource, String relation)
resource
- The resource to editrelation
- The relationprotected void _setDCRights(ModifiableResource resource, String rights)
resource
- The resource to editrights
- The rightsprotected void _setDCSource(ModifiableResource resource, String source)
resource
- The resource to editsource
- The sourceprotected void _setDCSubject(ModifiableResource resource, String[] subject)
resource
- The resource to editsubject
- The subjectsprotected void _setDCTitle(ModifiableResource resource, String title)
resource
- The resource to edittitle
- The titleprotected void _setDCType(ModifiableResource resource, String type)
resource
- The resource to edittype
- The type