Class MetadataLoader.Metadata

  • Enclosing interface:
    MetadataLoader

    public static final class MetadataLoader.Metadata
    extends java.lang.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
      void addAspect​(org.alfresco.service.namespace.QName aspect)  
      void addProperty​(org.alfresco.service.namespace.QName property, java.io.Serializable value)
      Adds a property and its value to this metadata object.
      java.util.Set<org.alfresco.service.namespace.QName> getAspects()  
      java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getProperties()  
      org.alfresco.service.namespace.QName getType()  
      void setType​(org.alfresco.service.namespace.QName type)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Metadata

        public Metadata()
    • Method Detail

      • getType

        public org.alfresco.service.namespace.QName getType()
        Returns:
        the type
      • setType

        public void setType​(org.alfresco.service.namespace.QName type)
        Parameters:
        type - The type to set in this metadata object (must not be null).
      • getAspects

        public java.util.Set<org.alfresco.service.namespace.QName> getAspects()
        Returns:
        The set of aspects in this metadata object (will not be null, but may be empty).
      • addAspect

        public void addAspect​(org.alfresco.service.namespace.QName aspect)
        Parameters:
        aspect - An aspect to add to this metadata object (must not be null).
      • getProperties

        public java.util.Map<org.alfresco.service.namespace.QName,​java.io.Serializable> getProperties()
        Returns:
        The properties in this metadata object (will not be null, but may be empty).
      • addProperty

        public void addProperty​(org.alfresco.service.namespace.QName property,
                                java.io.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).