SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

kodo.meta
Interface Extensions

All Known Subinterfaces:
ClassMetaData, FieldMetaData
All Known Implementing Classes:
DelegatingExtensions

public interface Extensions

Manages metadata extensions.


Method Summary
 void addExtension(String key, Object value)
          Add a kodo vendor extension to this entity.
 void addExtension(String vendor, String key, Object value)
          Add a vendor extension to this entity.
 boolean getBooleanExtension(String key)
          Get the value as a boolean.
 boolean getBooleanExtension(String vendor, String key)
          Get the value as a boolean.
 double getDoubleExtension(String key)
          Get the value as a double.
 double getDoubleExtension(String vendor, String key)
          Get the value as a double.
 Extensions getEmbeddedExtensions(String key, boolean create)
          Return the embedded extensions under the extension with the given key.
 Extensions getEmbeddedExtensions(String vendor, String key, boolean create)
          Return the embedded extensions under the extension with the given key.
 String[] getExtensionKeys()
          Return all extension keys for vendor kodo.
 String[] getExtensionKeys(String vendor)
          Return all extension keys for the given vendor.
 String[] getExtensionVendors()
          Return all vendors who have extension keys at this level.
 int getIntExtension(String key)
          Get the value as an int.
 int getIntExtension(String vendor, String key)
          Get the value as an int.
 Object getObjectExtension(String key)
          Get the value of a kodo extension.
 Object getObjectExtension(String vendor, String key)
          Get the value of an extension.
 String getStringExtension(String key)
          Get the value as a string.
 String getStringExtension(String vendor, String key)
          Get the value as a string.
 boolean hasExtension(String key)
          Return true if the extension with the given key exists for vendor kodo.
 boolean hasExtension(String vendor, String key)
          Return true if the extension with the given key exists for the given vendor.
 boolean isEmpty()
          Return true if there are no keys for any vendor.
 boolean removeEmbeddedExtensions(String key)
          Remove the embedded extensions for the given key.
 boolean removeEmbeddedExtensions(String vendor, String key)
          Remove the embedded extensions for the given key.
 boolean removeExtension(String key)
          Remove a kodo vendor extension to this entity.
 boolean removeExtension(String vendor, String key)
          Remove a vendor extension to this entity.
 

Method Detail

isEmpty

public boolean isEmpty()
Return true if there are no keys for any vendor.

getExtensionVendors

public String[] getExtensionVendors()
Return all vendors who have extension keys at this level.

getExtensionKeys

public String[] getExtensionKeys()
Return all extension keys for vendor kodo.

getExtensionKeys

public String[] getExtensionKeys(String vendor)
Return all extension keys for the given vendor.

hasExtension

public boolean hasExtension(String key)
Return true if the extension with the given key exists for vendor kodo.

hasExtension

public boolean hasExtension(String vendor,
                            String key)
Return true if the extension with the given key exists for the given vendor.

addExtension

public void addExtension(String key,
                         Object value)
Add a kodo vendor extension to this entity.

addExtension

public void addExtension(String vendor,
                         String key,
                         Object value)
Add a vendor extension to this entity.

removeExtension

public boolean removeExtension(String key)
Remove a kodo vendor extension to this entity.

removeExtension

public boolean removeExtension(String vendor,
                               String key)
Remove a vendor extension to this entity.

getObjectExtension

public Object getObjectExtension(String key)
Get the value of a kodo extension.

getObjectExtension

public Object getObjectExtension(String vendor,
                                 String key)
Get the value of an extension.

getStringExtension

public String getStringExtension(String key)
Get the value as a string.

getStringExtension

public String getStringExtension(String vendor,
                                 String key)
Get the value as a string.

getIntExtension

public int getIntExtension(String key)
Get the value as an int.

getIntExtension

public int getIntExtension(String vendor,
                           String key)
Get the value as an int.

getDoubleExtension

public double getDoubleExtension(String key)
Get the value as a double.

getDoubleExtension

public double getDoubleExtension(String vendor,
                                 String key)
Get the value as a double.

getBooleanExtension

public boolean getBooleanExtension(String key)
Get the value as a boolean.

getBooleanExtension

public boolean getBooleanExtension(String vendor,
                                   String key)
Get the value as a boolean.

getEmbeddedExtensions

public Extensions getEmbeddedExtensions(String key,
                                        boolean create)
Return the embedded extensions under the extension with the given key. If there are no embedded extensions, a new extensions object will be created and returned if the create parameter is true.

getEmbeddedExtensions

public Extensions getEmbeddedExtensions(String vendor,
                                        String key,
                                        boolean create)
Return the embedded extensions under the extension with the given key. If there are no embedded extensions, a new extensions object will be created and returned if the create parameter is true.

removeEmbeddedExtensions

public boolean removeEmbeddedExtensions(String key)
Remove the embedded extensions for the given key.

removeEmbeddedExtensions

public boolean removeEmbeddedExtensions(String vendor,
                                        String key)
Remove the embedded extensions for the given key.

SolarMetric Kodo JDO 3.0.3 generated on February 20 2004

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.