diff options
Diffstat (limited to 'XMPCore/src/com/adobe/xmp/properties')
4 files changed, 146 insertions, 0 deletions
diff --git a/XMPCore/src/com/adobe/xmp/properties/XMPAliasInfo.java b/XMPCore/src/com/adobe/xmp/properties/XMPAliasInfo.java new file mode 100644 index 0000000..e9078d4 --- /dev/null +++ b/XMPCore/src/com/adobe/xmp/properties/XMPAliasInfo.java @@ -0,0 +1,48 @@ +// ================================================================================================= +// ADOBE SYSTEMS INCORPORATED +// Copyright 2006 Adobe Systems Incorporated +// All Rights Reserved +// +// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms +// of the Adobe license agreement accompanying it. +// ================================================================================================= + +package com.adobe.xmp.properties; + +import com.adobe.xmp.options.AliasOptions; + + +/** + * This interface is used to return info about an alias. + * + * @since 27.01.2006 + */ +public interface XMPAliasInfo +{ + /** + * @return Returns Returns the namespace URI for the base property. + */ + String getNamespace(); + + + /** + * @return Returns the default prefix for the given base property. + */ + String getPrefix(); + + + /** + * @return Returns the path of the base property. + */ + String getPropName(); + + + /** + * @return Returns the kind of the alias. This can be a direct alias + * (ARRAY), a simple property to an ordered array + * (ARRAY_ORDERED), to an alternate array + * (ARRAY_ALTERNATE) or to an alternate text array + * (ARRAY_ALT_TEXT). + */ + AliasOptions getAliasForm(); +}
\ No newline at end of file diff --git a/XMPCore/src/com/adobe/xmp/properties/XMPProperty.java b/XMPCore/src/com/adobe/xmp/properties/XMPProperty.java new file mode 100644 index 0000000..767c94b --- /dev/null +++ b/XMPCore/src/com/adobe/xmp/properties/XMPProperty.java @@ -0,0 +1,40 @@ +// ================================================================================================= +// ADOBE SYSTEMS INCORPORATED +// Copyright 2006 Adobe Systems Incorporated +// All Rights Reserved +// +// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms +// of the Adobe license agreement accompanying it. +// ================================================================================================= + +package com.adobe.xmp.properties; + +import com.adobe.xmp.XMPMeta; +import com.adobe.xmp.options.PropertyOptions; + + +/** + * This interface is used to return a text property together with its and options. + * + * @since 23.01.2006 + */ +public interface XMPProperty +{ + /** + * @return Returns the value of the property. + */ + Object getValue(); + + + /** + * @return Returns the options of the property. + */ + PropertyOptions getOptions(); + + + /** + * Only set by {@link XMPMeta#getLocalizedText(String, String, String, String)}. + * @return Returns the language of the alt-text item. + */ + String getLanguage(); +} diff --git a/XMPCore/src/com/adobe/xmp/properties/XMPPropertyInfo.java b/XMPCore/src/com/adobe/xmp/properties/XMPPropertyInfo.java new file mode 100644 index 0000000..8a9c519 --- /dev/null +++ b/XMPCore/src/com/adobe/xmp/properties/XMPPropertyInfo.java @@ -0,0 +1,45 @@ +// ================================================================================================= +// ADOBE SYSTEMS INCORPORATED +// Copyright 2006 Adobe Systems Incorporated +// All Rights Reserved +// +// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms +// of the Adobe license agreement accompanying it. +// ================================================================================================= + +package com.adobe.xmp.properties; + +import com.adobe.xmp.options.PropertyOptions; + + +/** + * This interface is used to return a property together with its path and namespace. + * It is returned when properties are iterated with the <code>XMPIterator</code>. + * + * @since 06.07.2006 + */ +public interface XMPPropertyInfo extends XMPProperty +{ + /** + * @return Returns the namespace of the property + */ + String getNamespace(); + + + /** + * @return Returns the path of the property, but only if returned by the iterator. + */ + String getPath(); + + + /** + * @return Returns the value of the property. + */ + Object getValue(); + + + /** + * @return Returns the options of the property. + */ + PropertyOptions getOptions(); +} diff --git a/XMPCore/src/com/adobe/xmp/properties/package.html b/XMPCore/src/com/adobe/xmp/properties/package.html new file mode 100644 index 0000000..19e7427 --- /dev/null +++ b/XMPCore/src/com/adobe/xmp/properties/package.html @@ -0,0 +1,13 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> + <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> + <title>Package overview</title> +</head> + +<body> + <p>Package containing the property information classes.</p> + <p>XMPProperty and XMPPropertyInfo are used to report properties when they are retrieved by get-methods or by the iterator. + XMPAliasInfo informs about a certain property-to-property alias.<p> +</body> +</html> |