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()); // ... }
Modifier and Type | Method and Description |
---|---|
DiagramTypePackage |
getDiagramType()
Gets the file type metadata package.
|
DocumentStatistics |
getDocumentStatistics()
Gets the document statistics package.
|
getDocumentProperties
getFileType, sanitize
addProperties, contains, findProperties, get_Item, getCount, getKeys, getKnowPropertyDescriptors, getMetadataType, getPropertyDescriptors, iterator, removeProperties, setProperties, updateProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public final DiagramTypePackage getDiagramType()
Gets the file type metadata package.
public final DocumentStatistics getDocumentStatistics()
Gets the document statistics package.