|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.parser.AbstractMetadataParser
public abstract class AbstractMetadataParser
Field Summary | |
---|---|
protected Map<String,Object> |
cmisProperties
|
protected PropertyMapper |
mapper
|
Constructor Summary | |
---|---|
protected |
AbstractMetadataParser()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.chemistry.opencmis.client.parser.MetadataParser |
---|
extractMetadata |
Field Detail |
---|
protected Map<String,Object> cmisProperties
protected PropertyMapper mapper
Constructor Detail |
---|
protected AbstractMetadataParser()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |