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 StringARRAY_SEPARATORprotected Map<String,Map<String,Serializable>>collectedMetadatastatic StringDATE_FORMATstatic StringLIST_SEPARATORprotected ReentrantReadWriteLocklockprotected static PatternnumPatternstatic StringREGEXP_ARRAY_SEPARATORstatic StringREGEXP_LIST_SEPARATORprotected booleanstaticInheritprotected booleanuseIntrospection
-
Constructor Summary
Constructors Constructor Description MetadataCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddProperties(String contextPath, Map<String,Serializable> collectedProperties)voidaddPropertiesFromStrings(String contextPath, Map<String,String> properties)voidaddPropertyFile(File propertyFile)Map<String,Serializable>getProperties(String contextPath)SerializablegetProperty(String contextPath, String name)protected SerializableparseFromString(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
-
-