public class MetadataFile extends Object
DocumentModel
.
Only support the types that MetadataCollector
knows.
Modifier and Type | Method and Description |
---|---|
void |
addProperty(String propertyKey,
Object value) |
static MetadataFile |
createFromDocument(DocumentModel doc)
Create a
MetadataFile from a DocumentModel 's schemas. |
static MetadataFile |
createFromProperties(DocumentModel doc,
List<String> properties)
Create a
MetadataFile from the listed properties of a
DocumentModel |
static MetadataFile |
createFromSchemas(DocumentModel doc,
List<String> allPropertiesSchemas)
Create a
MetadataFile from the listed schemas (with all
properties) of a DocumentModel |
static MetadataFile |
createFromSchemasAndProperties(DocumentModel doc,
List<String> allPropertiesSchemas,
List<String> properties)
Create a
MetadataFile from the listed schemas (with all
properties) and the listed properties of a DocumentModel |
void |
writeTo(File file)
Write the properties file to the given
file |
public static MetadataFile createFromDocument(DocumentModel doc) throws ClientException
MetadataFile
from a DocumentModel
's schemas.ClientException
public static MetadataFile createFromSchemasAndProperties(DocumentModel doc, List<String> allPropertiesSchemas, List<String> properties) throws ClientException
MetadataFile
from the listed schemas (with all
properties) and the listed properties of a DocumentModel
ClientException
public static MetadataFile createFromSchemas(DocumentModel doc, List<String> allPropertiesSchemas) throws ClientException
MetadataFile
from the listed schemas (with all
properties) of a DocumentModel
ClientException
public static MetadataFile createFromProperties(DocumentModel doc, List<String> properties) throws ClientException
MetadataFile
from the listed properties of a
DocumentModel
ClientException
public void writeTo(File file) throws ClientException
file
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.