Methods Summary |
---|
public boolean | activateController()Activate the controller.
if (!hasController()) {
throw new IllegalStateException("hasController() == false!");
}
return getController().activate(this);
|
public abstract org.w3c.dom.Node | getAsTree(java.lang.String formatName)Gets the metadata as tree-type document.
|
public javax.imageio.metadata.IIOMetadataController | getController()Gets the controller associated with this metadata document.
return controller;
|
public javax.imageio.metadata.IIOMetadataController | getDefaultController()Gets the default controller.
return defaultController;
|
public java.lang.String[] | getExtraMetadataFormatNames()Gets the extra metadata format names.
return extraMetadataFormatNames == null ? null : extraMetadataFormatNames.clone();
|
public javax.imageio.metadata.IIOMetadataFormat | getMetadataFormat(java.lang.String formatName)Gets the metadata format.
return IIOMetadataUtils.instantiateMetadataFormat(formatName, standardFormatSupported,
nativeMetadataFormatName, nativeMetadataFormatClassName, extraMetadataFormatNames,
extraMetadataFormatClassNames);
|
public java.lang.String[] | getMetadataFormatNames()Gets the metadata format names.
ArrayList<String> res = new ArrayList<String>();
String nativeMetadataFormatName = getNativeMetadataFormatName();
boolean standardFormatSupported = isStandardMetadataFormatSupported();
String extraMetadataFormatNames[] = getExtraMetadataFormatNames();
if (standardFormatSupported) {
res.add(IIOMetadataFormatImpl.standardMetadataFormatName);
}
if (nativeMetadataFormatName != null) {
res.add(nativeMetadataFormatName);
}
if (extraMetadataFormatNames != null) {
for (String extraMetadataFormatName : extraMetadataFormatNames) {
res.add(extraMetadataFormatName);
}
}
return res.size() > 0 ? res.toArray(new String[0]) : null;
|
public java.lang.String | getNativeMetadataFormatName()Gets the native metadata format name.
return nativeMetadataFormatName;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardChromaNode()Gets the standard chroma node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardCompressionNode()Gets the standard compression node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardDataNode()Gets the standard data node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardDimensionNode()Gets the standard dimension node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardDocumentNode()Gets the standard document node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardTextNode()Gets the standard text node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardTileNode()Gets the standard tile node.
return null;
|
protected javax.imageio.metadata.IIOMetadataNode | getStandardTransparencyNode()Gets the standard transparency node.
return null;
|
protected final javax.imageio.metadata.IIOMetadataNode | getStandardTree()Gets the metadata as a tree in standard format.
// Create root node
IIOMetadataNode root = new IIOMetadataNode(IIOMetadataFormatImpl.standardMetadataFormatName);
Node node;
if ((node = getStandardChromaNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardCompressionNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardDataNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardDimensionNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardDocumentNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardTextNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardTileNode()) != null) {
root.appendChild(node);
}
if ((node = getStandardTransparencyNode()) != null) {
root.appendChild(node);
}
return root;
|
public boolean | hasController()Checks whether this metadata has a controller.
return getController() != null;
|
public abstract boolean | isReadOnly()Checks if the metadata is read only.
|
public boolean | isStandardMetadataFormatSupported()Checks if the standard metadata format is supported.
return standardFormatSupported;
|
public abstract void | mergeTree(java.lang.String formatName, org.w3c.dom.Node root)Merges the specified tree with this metadata tree.
|
public abstract void | reset()Resets the controller.
|
public void | setController(javax.imageio.metadata.IIOMetadataController controller)Sets the controller.
this.controller = controller;
|
public void | setFromTree(java.lang.String formatName, org.w3c.dom.Node root)Sets the from tree.
reset();
mergeTree(formatName, root);
|