public abstract class AbstractMetadataParser extends Object implements MetadataParser
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
cmisProperties |
protected PropertyMapper |
mapper |
Modifier | Constructor and Description |
---|---|
protected |
AbstractMetadataParser() |
Modifier and Type | Method and Description |
---|---|
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
extractMetadata
protected PropertyMapper mapper
public void initialize(PropertyMapper mapper, String contentType)
MetadataParser
initialize
in interface MetadataParser
mapper
- PropertyMapper used to map tags to properties and convert valuescontentType
- content type of file to extractpublic Map<String,Object> getCmisProperties()
MetadataParser
getCmisProperties
in interface MetadataParser
public void reset()
MetadataParser
reset
in interface MetadataParser
public String[] getContentTypes()
MetadataParser
getContentTypes
in interface MetadataParser
public String getMappedTypeId()
MetadataParser
getMappedTypeId
in interface MetadataParser
public PropertyMapper getMapper()
MetadataParser
getMapper
in interface MetadataParser
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.