|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MetadataParser
This interface is used to extract metadata from content. An instance is responsible to parse the content and extract the metadata. The metadata must be stored in a CMIS property bag. Implementations of this class are created by the Configurator depending on the Content-Type to parse and the corresponding parser configuration
Method Summary | |
---|---|
void |
extractMetadata(File f,
TypeDefinition td)
Parse a file and extract all metadata and store them in a CMIS property bag |
Map<String,Object> |
getCmisProperties()
Return all found metadata, called after parsing is completed. |
String[] |
getContentTypes()
get all content types handled by this parser |
String |
getMappedTypeId()
get the CMIS type id used by this type |
PropertyMapper |
getMapper()
get the associated property mapper for this CMIS type |
void |
initialize(PropertyMapper mapper,
String contentType)
Initialize a parser with a given property mapper and a content type |
void |
reset()
get ready for parsing a new file |
Method Detail |
---|
void initialize(PropertyMapper mapper, String contentType)
mapper
- PropertyMapper used to map tags to properties and convert valuescontentType
- content type of file to extractvoid reset()
void extractMetadata(File f, TypeDefinition td) throws MapperException
f
- file to parse
MapperException
Map<String,Object> getCmisProperties()
String[] getContentTypes()
String getMappedTypeId()
PropertyMapper getMapper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |