DiagramRootPackage
Inheritance: java.lang.Object, com.groupdocs.metadata.core.MetadataPackage, com.groupdocs.metadata.core.RootMetadataPackage, com.groupdocs.metadata.core.DocumentRootPackage
public class DiagramRootPackage extends DocumentRootPackage<DiagramPackage>
Represents the root package intended to work with metadata in a diagram.
Learn more
This code sample demonstrates how to extract built-in metadata properties from a diagram.
try (Metadata metadata = new Metadata(Constants.InputVsdx)) { DiagramRootPackage root = metadata.getRootPackageGeneric(); System.out.println(root.getDocumentProperties().getCreator()); System.out.println(root.getDocumentProperties().getCompany()); System.out.println(root.getDocumentProperties().getKeywords()); System.out.println(root.getDocumentProperties().getLanguage()); System.out.println(root.getDocumentProperties().getTimeCreated()); System.out.println(root.getDocumentProperties().getCategory()); // … }
Methods
Method | Description |
---|---|
getDiagramType() | Gets the file type metadata package. |
getDocumentStatistics() | Gets the document statistics package. |
getDiagramType()
public final DiagramTypePackage getDiagramType()
Gets the file type metadata package.
Returns: DiagramTypePackage - The file type metadata package.
getDocumentStatistics()
public final DocumentStatistics getDocumentStatistics()
Gets the document statistics package.
Returns: DocumentStatistics - The document statistics package.