Interface HasInstanceMetaClass

All Known Implementing Classes:
KeyValueEntity

public interface HasInstanceMetaClass
Interface to be implemented by entities that are not included in static metadata, but can provide a MetaClass specifically for each instance.
  • Method Details

    • getInstanceMetaClass

      MetaClass getInstanceMetaClass()
      Returns:
      metaclass of this entity instance.
      Throws:
      IllegalStateException - if the instance has no metaclass specified
    • setInstanceMetaClass

      void setInstanceMetaClass(MetaClass metaClass)
      Sets the instance metaclass
      Parameters:
      metaClass -
    • hasInstanceMetaClass

      boolean hasInstanceMetaClass()
      Returns:
      true if the instance has a metaclass and call of getInstanceMetaClass() is safe