public static class MetadataExtracter.OverwritePolicy
extends java.lang.Enum
| Modifier and Type | Field and Description |
|---|---|
static MetadataExtracter.OverwritePolicy |
CAUTIOUS
This policy only puts the extracted value if there is no value (null or otherwise) in the properties map.
|
static MetadataExtracter.OverwritePolicy |
EAGER
This policy puts the new value if:
the extracted property is not null
null extracted values are return in the 'modified' map.
|
static MetadataExtracter.OverwritePolicy |
PRAGMATIC
This policy puts the new value if:
the extracted property is not null
either:
there is no target key for the property
the target value is null
the string representation of the target value is an empty string
or:
the extracted property is a media related one (eg Image, Audio or Video)
null extracted values are return in the 'modified' map.
|
static MetadataExtracter.OverwritePolicy |
PRUDENT
This policy puts the new value if:
the extracted property is not null
there is no target key for the property
the target value is null
the string representation of the target value is an empty string
null extracted values are return in the 'modified' map.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
applyProperties(java.util.Map extractedProperties,
java.util.Map targetProperties)
Apply the overwrite policy for the extracted properties.
|
static MetadataExtracter.OverwritePolicy |
valueOf(java.lang.String name) |
static MetadataExtracter.OverwritePolicy[] |
values() |
public static final MetadataExtracter.OverwritePolicy EAGER
public static final MetadataExtracter.OverwritePolicy PRAGMATIC
public static final MetadataExtracter.OverwritePolicy PRUDENT
public static final MetadataExtracter.OverwritePolicy CAUTIOUS
public static MetadataExtracter.OverwritePolicy[] values()
public static MetadataExtracter.OverwritePolicy valueOf(java.lang.String name)
public java.util.Map applyProperties(java.util.Map extractedProperties,
java.util.Map targetProperties)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.