Class PackagePropertiesPart

    • Field Detail

      • NAMESPACE_DC_URI

        public static final java.lang.String NAMESPACE_DC_URI
        See Also:
        Constant Field Values
      • NAMESPACE_CP_URI

        public static final java.lang.String NAMESPACE_CP_URI
        See Also:
        Constant Field Values
      • NAMESPACE_DCTERMS_URI

        public static final java.lang.String NAMESPACE_DCTERMS_URI
        See Also:
        Constant Field Values
    • Method Detail

      • getCategoryProperty

        public java.util.Optional<java.lang.String> getCategoryProperty()
        Get the category property.
        Specified by:
        getCategoryProperty in interface PackageProperties
        Returns:
        property value
      • getContentStatusProperty

        public java.util.Optional<java.lang.String> getContentStatusProperty()
        Get content status.
        Specified by:
        getContentStatusProperty in interface PackageProperties
        Returns:
        property value
      • getContentTypeProperty

        public java.util.Optional<java.lang.String> getContentTypeProperty()
        Get content type.
        Specified by:
        getContentTypeProperty in interface PackageProperties
        Returns:
        property value
      • getCreatedProperty

        public java.util.Optional<java.util.Date> getCreatedProperty()
        Get created date.
        Specified by:
        getCreatedProperty in interface PackageProperties
        Returns:
        property value
      • getCreatedPropertyString

        public java.lang.String getCreatedPropertyString()
        Get created date formatted into a String.
        Returns:
        A string representation of the created date.
      • getCreatorProperty

        public java.util.Optional<java.lang.String> getCreatorProperty()
        Get creator.
        Specified by:
        getCreatorProperty in interface PackageProperties
        Returns:
        property value
      • getIdentifierProperty

        public java.util.Optional<java.lang.String> getIdentifierProperty()
        Get identifier.
        Specified by:
        getIdentifierProperty in interface PackageProperties
        Returns:
        property value
      • getKeywordsProperty

        public java.util.Optional<java.lang.String> getKeywordsProperty()
        Get keywords.
        Specified by:
        getKeywordsProperty in interface PackageProperties
        Returns:
        property value
      • getLanguageProperty

        public java.util.Optional<java.lang.String> getLanguageProperty()
        Get the language.
        Specified by:
        getLanguageProperty in interface PackageProperties
        Returns:
        property value
      • getLastModifiedByProperty

        public java.util.Optional<java.lang.String> getLastModifiedByProperty()
        Get the author of last modifications.
        Specified by:
        getLastModifiedByProperty in interface PackageProperties
      • getLastPrintedProperty

        public java.util.Optional<java.util.Date> getLastPrintedProperty()
        Get last printed date.
        Specified by:
        getLastPrintedProperty in interface PackageProperties
        Returns:
        property value
      • getLastPrintedPropertyString

        public java.lang.String getLastPrintedPropertyString()
        Get last printed date formatted into a String.
        Returns:
        A string representation of the last printed date.
      • getModifiedProperty

        public java.util.Optional<java.util.Date> getModifiedProperty()
        Get modified date.
        Specified by:
        getModifiedProperty in interface PackageProperties
        Returns:
        property value
      • getModifiedPropertyString

        public java.lang.String getModifiedPropertyString()
        Get modified date formatted into a String.
        Returns:
        A string representation of the modified date.
      • getRevisionProperty

        public java.util.Optional<java.lang.String> getRevisionProperty()
        Get revision.
        Specified by:
        getRevisionProperty in interface PackageProperties
        Returns:
        property value
      • getSubjectProperty

        public java.util.Optional<java.lang.String> getSubjectProperty()
        Get subject.
        Specified by:
        getSubjectProperty in interface PackageProperties
        Returns:
        property value
      • getTitleProperty

        public java.util.Optional<java.lang.String> getTitleProperty()
        Get title.
        Specified by:
        getTitleProperty in interface PackageProperties
        Returns:
        property value
      • getVersionProperty

        public java.util.Optional<java.lang.String> getVersionProperty()
        Get version.
        Specified by:
        getVersionProperty in interface PackageProperties
        Returns:
        property value
      • setCategoryProperty

        public void setCategoryProperty​(java.util.Optional<java.lang.String> category)
        Set the category.
        Specified by:
        setCategoryProperty in interface PackageProperties
      • setContentStatusProperty

        public void setContentStatusProperty​(java.util.Optional<java.lang.String> contentStatus)
        Set the content status.
        Specified by:
        setContentStatusProperty in interface PackageProperties
      • setContentTypeProperty

        public void setContentTypeProperty​(java.util.Optional<java.lang.String> contentType)
        Set the content type.
        Specified by:
        setContentTypeProperty in interface PackageProperties
      • setCreatedProperty

        public void setCreatedProperty​(java.util.Optional<java.util.Date> created)
        Set the created date.
        Specified by:
        setCreatedProperty in interface PackageProperties
      • setCreatorProperty

        public void setCreatorProperty​(java.util.Optional<java.lang.String> creator)
        Set the creator.
        Specified by:
        setCreatorProperty in interface PackageProperties
      • setDescriptionProperty

        public void setDescriptionProperty​(java.util.Optional<java.lang.String> description)
        Set the description.
        Specified by:
        setDescriptionProperty in interface PackageProperties
      • setIdentifierProperty

        public void setIdentifierProperty​(java.util.Optional<java.lang.String> identifier)
        Set identifier.
        Specified by:
        setIdentifierProperty in interface PackageProperties
      • setKeywordsProperty

        public void setKeywordsProperty​(java.util.Optional<java.lang.String> keywords)
        Set keywords.
        Specified by:
        setKeywordsProperty in interface PackageProperties
      • setLanguageProperty

        public void setLanguageProperty​(java.util.Optional<java.lang.String> language)
        Set language.
        Specified by:
        setLanguageProperty in interface PackageProperties
      • setLastModifiedByProperty

        public void setLastModifiedByProperty​(java.util.Optional<java.lang.String> lastModifiedBy)
        Set last modifications author.
        Specified by:
        setLastModifiedByProperty in interface PackageProperties
      • setLastPrintedProperty

        public void setLastPrintedProperty​(java.util.Optional<java.util.Date> lastPrinted)
        Set last printed date.
        Specified by:
        setLastPrintedProperty in interface PackageProperties
      • setModifiedProperty

        public void setModifiedProperty​(java.util.Optional<java.util.Date> modified)
        Set last modification date.
        Specified by:
        setModifiedProperty in interface PackageProperties
      • setRevisionProperty

        public void setRevisionProperty​(java.util.Optional<java.lang.String> revision)
        Set revision.
        Specified by:
        setRevisionProperty in interface PackageProperties
      • setSubjectProperty

        public void setSubjectProperty​(java.util.Optional<java.lang.String> subject)
        Set subject.
        Specified by:
        setSubjectProperty in interface PackageProperties
      • setTitleProperty

        public void setTitleProperty​(java.util.Optional<java.lang.String> title)
        Set title.
        Specified by:
        setTitleProperty in interface PackageProperties
      • setVersionProperty

        public void setVersionProperty​(java.util.Optional<java.lang.String> version)
        Set version.
        Specified by:
        setVersionProperty in interface PackageProperties
      • save

        public boolean save​(java.io.OutputStream zos)
        Description copied from class: PackagePart
        Save the content of this part and the associated relationships part (if this part own at least one relationship) into the specified output stream.
        Specified by:
        save in class PackagePart
        Parameters:
        zos - Output stream to save this part.
        Returns:
        true if the content has been successfully stored, false otherwise. More information about errors may be logged via Log4j 2.
      • load

        public boolean load​(java.io.InputStream ios)
        Description copied from class: PackagePart
        Load the content of this part.
        Specified by:
        load in class PackagePart
        Parameters:
        ios - The input stream of the content to load.
        Returns:
        true if the content has been successfully loaded, false otherwise. More information about errors may be logged via Log4j 2.
      • close

        public void close()
        Description copied from class: PackagePart
        Close this part : flush this part, close the input stream and output stream. After this method call, the part must be available for packaging.
        Specified by:
        close in class PackagePart
      • flush

        public void flush()
        Description copied from class: PackagePart
        Flush the content of this part. If the input stream and/or output stream as in a waiting state to read or write, the must to empty their respective buffer.
        Specified by:
        flush in class PackagePart