@Deprecated public abstract class DocumentMetadata<T extends MetadataProperty> extends Metadata
Represents a collection of document metadata key/value pairs.
T
: Represents MetadataProperty
.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Deprecated.
Resets all metadata properties.
|
void |
clearBuiltInData()
Deprecated.
Resets all built-in metadata properties.
|
void |
clearCustomData()
Deprecated.
Removes all custom metadata properties.
|
boolean |
containsKey(String metadataKey)
Deprecated.
Determines whether the specified metadata key is presented in the collection.
|
MetadataPropertyCollection |
getCollection()
Deprecated.
|
int |
getCount()
Deprecated.
Gets the number of metadata properties.
|
protected abstract T |
getInstance()
Deprecated.
|
boolean |
isBuiltIn(String key)
Deprecated.
Determines whether a metadata property is built-in.
|
boolean |
isReadOnly(String key)
Deprecated.
Determines whether metadata is read-only.
|
PropertyValue |
readPropertyValue(String propertyName)
Deprecated.
Reads the value of the property with the specified name.
|
boolean |
remove(String key)
Deprecated.
Removes metadata by the given key.
|
void |
setValueByKey(String propertyName,
PropertyValue value)
Deprecated.
Sets the value of the property with the specified name.
|
getByType, getKeys, getMetadataType, iterator, readByStringKey
public final int getCount()
Gets the number of metadata properties.
public final PropertyValue readPropertyValue(String propertyName)
Reads the value of the property with the specified name.
propertyName
- The property name.public final void setValueByKey(String propertyName, PropertyValue value)
Sets the value of the property with the specified name.
propertyName
- The name of the property.value
- The value to set.public boolean remove(String key)
Removes metadata by the given key.
key
- A metadata property name.public boolean containsKey(String metadataKey)
Determines whether the specified metadata key is presented in the collection.
metadataKey
- A metadata property name.true
if the metadata collection contains the element with the specified key; otherwise, false
.public void clear()
Resets all metadata properties.
public final void clearBuiltInData()
Resets all built-in metadata properties.
public final void clearCustomData()
Removes all custom metadata properties.
public boolean isBuiltIn(String key)
Determines whether a metadata property is built-in.
key
- A metadata property name.true
if metadata is built-in, otherwise false
.public boolean isReadOnly(String key)
Determines whether metadata is read-only.
key
- A metadata property name.true
if metadata is read-only, otherwise false
.public final MetadataPropertyCollection getCollection()
protected abstract T getInstance()
Copyright © 2020. All rights reserved.