|
||||||||||
| 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 java.util.Map<java.lang.String,java.lang.Object> |
cmisProperties
|
protected PropertyMapper |
mapper
|
| Constructor Summary | |
|---|---|
protected |
AbstractMetadataParser()
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getCmisProperties()
Return all found metadata, called after parsing is completed. |
java.lang.String[] |
getContentTypes()
get all content types handled by this parser |
java.lang.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,
java.lang.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 java.util.Map<java.lang.String,java.lang.Object> cmisProperties
protected PropertyMapper mapper
| Constructor Detail |
|---|
protected AbstractMetadataParser()
| Method Detail |
|---|
public void initialize(PropertyMapper mapper,
java.lang.String contentType)
MetadataParser
initialize in interface MetadataParsermapper - PropertyMapper used to map tags to properties and convert valuescontentType - content type of file to extractpublic java.util.Map<java.lang.String,java.lang.Object> getCmisProperties()
MetadataParser
getCmisProperties in interface MetadataParserpublic void reset()
MetadataParser
reset in interface MetadataParserpublic java.lang.String[] getContentTypes()
MetadataParser
getContentTypes in interface MetadataParserpublic java.lang.String getMappedTypeId()
MetadataParser
getMappedTypeId in interface MetadataParserpublic PropertyMapper getMapper()
MetadataParser
getMapper in interface MetadataParser
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||