Class MetadataCollector
- java.lang.Object
-
- org.nuxeo.ecm.platform.importer.properties.MetadataCollector
-
- Direct Known Subclasses:
IndividualMetadataCollector
public class MetadataCollector extends Object
Collects meta-data from a FileSystem and manage inheritence- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description static String
ARRAY_SEPARATOR
protected Map<String,Map<String,Serializable>>
collectedMetadata
static String
DATE_FORMAT
static String
LIST_SEPARATOR
protected ReentrantReadWriteLock
lock
protected static Pattern
numPattern
static String
REGEXP_ARRAY_SEPARATOR
static String
REGEXP_LIST_SEPARATOR
protected boolean
staticInherit
protected boolean
useIntrospection
-
Constructor Summary
Constructors Constructor Description MetadataCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperties(String contextPath, Map<String,Serializable> collectedProperties)
void
addPropertiesFromStrings(String contextPath, Map<String,String> properties)
void
addPropertyFile(File propertyFile)
Map<String,Serializable>
getProperties(String contextPath)
Serializable
getProperty(String contextPath, String name)
protected Serializable
parseFromString(String name, String value)
-
-
-
Field Detail
-
staticInherit
protected boolean staticInherit
-
useIntrospection
protected boolean useIntrospection
-
DATE_FORMAT
public static final String DATE_FORMAT
- See Also:
- Constant Field Values
-
LIST_SEPARATOR
public static final String LIST_SEPARATOR
- See Also:
- Constant Field Values
-
REGEXP_LIST_SEPARATOR
public static final String REGEXP_LIST_SEPARATOR
- See Also:
- Constant Field Values
-
ARRAY_SEPARATOR
public static final String ARRAY_SEPARATOR
- See Also:
- Constant Field Values
-
REGEXP_ARRAY_SEPARATOR
public static final String REGEXP_ARRAY_SEPARATOR
- See Also:
- Constant Field Values
-
collectedMetadata
protected Map<String,Map<String,Serializable>> collectedMetadata
-
lock
protected ReentrantReadWriteLock lock
-
numPattern
protected static Pattern numPattern
-
-
Method Detail
-
addPropertiesFromStrings
public void addPropertiesFromStrings(String contextPath, Map<String,String> properties)
-
addProperties
public void addProperties(String contextPath, Map<String,Serializable> collectedProperties)
-
parseFromString
protected Serializable parseFromString(String name, String value)
-
getProperty
public Serializable getProperty(String contextPath, String name)
-
getProperties
public Map<String,Serializable> getProperties(String contextPath)
-
addPropertyFile
public void addPropertyFile(File propertyFile) throws IOException
- Throws:
IOException
-
-