📄 xmpmeta.java
字号:
*/ void setPropertyBoolean( String schemaNS, String propName, boolean propValue) throws XMPException; /** * Convenience method to set a property to a literal <code>int</code> value. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the literal property value as <code>int</code>. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyInteger( String schemaNS, String propName, int propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyInteger(String, String, int, PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the literal property value as <code>int</code> * @throws XMPException Wraps all exceptions */ void setPropertyInteger( String schemaNS, String propName, int propValue) throws XMPException; /** * Convenience method to set a property to a literal <code>long</code> value. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the literal property value as <code>long</code>. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyLong( String schemaNS, String propName, long propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyLong(String, String, long, PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the literal property value as <code>long</code> * @throws XMPException Wraps all exceptions */ void setPropertyLong( String schemaNS, String propName, long propValue) throws XMPException; /** * Convenience method to set a property to a literal <code>double</code> value. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the literal property value as <code>double</code>. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyDouble( String schemaNS, String propName, double propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyDouble(String, String, double, PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the literal property value as <code>double</code> * @throws XMPException Wraps all exceptions */ void setPropertyDouble( String schemaNS, String propName, double propValue) throws XMPException; /** * Convenience method to set a property with an XMPDateTime-object, * which is serialized to an ISO8601 date. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the property value as <code>XMPDateTime</code>. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyDate( String schemaNS, String propName, XMPDateTime propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyDate(String, String, XMPDateTime, PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the property value as <code>XMPDateTime</code> * @throws XMPException Wraps all exceptions */ void setPropertyDate( String schemaNS, String propName, XMPDateTime propValue) throws XMPException; /** * Convenience method to set a property with a Java Calendar-object, * which is serialized to an ISO8601 date. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the property value as Java <code>Calendar</code>. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyCalendar( String schemaNS, String propName, Calendar propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyCalendar(String, String, Calendar, PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the property value as <code>Calendar</code> * @throws XMPException Wraps all exceptions */ void setPropertyCalendar( String schemaNS, String propName, Calendar propValue) throws XMPException; /** * Convenience method to set a property from a binary <code>byte[]</code>-array, * which is serialized as base64-string. * * @param schemaNS The namespace URI for the property. Has the same usage as in * <code>setProperty()</code>. * @param propName The name of the property. * Has the same usage as in <code>getProperty()</code>. * @param propValue the literal property value as byte array. * @param options options of the property to set (optional). * @throws XMPException Wraps all exceptions that may occur. */ void setPropertyBase64( String schemaNS, String propName, byte[] propValue, PropertyOptions options) throws XMPException; /** * @see XMPMeta#setPropertyBase64(String, String, byte[], PropertyOptions) * * @param schemaNS The namespace URI for the property * @param propName The name of the property * @param propValue the literal property value as byte array * @throws XMPException Wraps all exceptions */ void setPropertyBase64( String schemaNS, String propName, byte[] propValue) throws XMPException; /** * Constructs an iterator for the properties within this XMP object. * * @return Returns an <code>XMPIterator</code>. * @see XMPMeta#iterator(String, String, IteratorOptions) * @throws XMPException Wraps all errors and exceptions that may occur. */ XMPIterator iterator() throws XMPException; /** * Constructs an iterator for the properties within this XMP object using some options. * * @param options Option flags to control the iteration. * @return Returns an <code>XMPIterator</code>. * @see XMPMeta#iterator(String, String, IteratorOptions) * @throws XMPException Wraps all errors and exceptions that may occur. */ XMPIterator iterator(IteratorOptions options) throws XMPException; /** * Construct an iterator for the properties within an XMP object. The general operation of an * XMP object iterator was. According to the parameters it iterates the entire data tree, * properties within a specific schema, or a subtree rooted at a specific node. * * @param schemaNS Optional schema namespace URI to restrict the iteration. Omitted (visit all * schema) by passing <code>null</code> or empty String. * @param propName Optional property name to restrict the iteration. May be an arbitrary path * expression. Omitted (visit all properties) by passing <code>null</code> or empty * String. If no schema URI is given, it is ignored. * @param options Option flags to control the iteration. See {@link IteratorOptions} for * details. * @return Returns an <code>XMPIterator</code> for this <code>XMPMeta</code>-object * considering the given options. * @throws XMPException Wraps all errors and exceptions that may occur. */ XMPIterator iterator( String schemaNS, String propName, IteratorOptions options) throws XMPException; /** * This correlates to the about-attribute, * returns the empty String if no name is set. * * @return Returns the name of the XMP object. */ String getObjectName(); /** * @param name Sets the name of the XMP object. */ void setObjectName(String name); /** * Clones the complete metadata tree. * * @return Returns a deep copy of this instance. */ Object clone(); /** * Sorts the complete datamodel according to the following rules: * <ul> * <li>Schema nodes are sorted by prefix. * <li>Properties at top level and within structs are sorted by full name, that is * prefix + local name. * <li>Array items are not sorted, even if they have no certain order such as bags. * <li>Qualifier are sorted, with the exception of "xml:lang" and/or "rdf:type" * that stay at the top of the list in that order. * </ul> */ void sort(); /** * Renders this node and the tree unter this node in a human readable form. * @return Returns a multiline string containing the dump. */ String dumpObject();}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -