1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package javax.jdo.metadata;
18
19 /**
20 * This interface provides base level definitions for all metadata components.
21 *
22 * @version 3.0
23 */
24 public interface Metadata {
25 /**
26 * Add a vendor extension to this metadata component.
27 *
28 * @param vendor Identifier for the vendor
29 * @param key The extension key
30 * @param value Value for the extension
31 * @return The ExtensionMetadata
32 */
33 ExtensionMetadata newExtensionMetadata(String vendor, String key, String value);
34
35 /**
36 * Number of extensions on this component.
37 *
38 * @return Number of extensions
39 */
40 int getNumberOfExtensions();
41
42 /**
43 * Accessor for the defined extensions for this component
44 *
45 * @return The extensions
46 */
47 ExtensionMetadata[] getExtensions();
48
49 /**
50 * Accessor for the parent metadata component.
51 *
52 * @return The parent
53 */
54 Metadata getParent();
55 }