Package org.alfresco.repo.bulkimport
Class MetadataLoader.Metadata
- java.lang.Object
-
- org.alfresco.repo.bulkimport.MetadataLoader.Metadata
-
- Enclosing interface:
- MetadataLoader
public static final class MetadataLoader.Metadata extends Object
Class used to encapsulate the type, aspects and property values for a single file or folder.
-
-
Constructor Summary
Constructors Constructor Description Metadata()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAspect(QName aspect)voidaddProperty(QName property, Serializable value)Adds a property and its value to this metadata object.Set<QName>getAspects()Map<QName,Serializable>getProperties()QNamegetType()voidsetType(QName type)
-
-
-
Method Detail
-
getType
public QName getType()
- Returns:
- the type
-
setType
public void setType(QName type)
- Parameters:
type- The type to set in this metadata object (must not be null).
-
getAspects
public Set<QName> getAspects()
- Returns:
- The set of aspects in this metadata object (will not be null, but may be empty).
-
addAspect
public void addAspect(QName aspect)
- Parameters:
aspect- An aspect to add to this metadata object (must not be null).
-
getProperties
public Map<QName,Serializable> getProperties()
- Returns:
- The properties in this metadata object (will not be null, but may be empty).
-
addProperty
public void addProperty(QName property, Serializable value)
Adds a property and its value to this metadata object.- Parameters:
property- The property to populate (must not be null).value- The value of the property (may be null).
-
-