Class MetadataItem

java.lang.Object
org.apache.unomi.api.Item
org.apache.unomi.api.MetadataItem
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ActionType, Campaign, CampaignEvent, ConditionType, Goal, GroovyAction, PropertyType, Rule, Scope, Scoring, Segment, UserList, UserList

public abstract class MetadataItem extends Item
A superclass for all Items that bear Metadata.
See Also:
  • Field Details

    • metadata

      protected Metadata metadata
  • Constructor Details

    • MetadataItem

      public MetadataItem()
    • MetadataItem

      public MetadataItem(Metadata metadata)
  • Method Details

    • getMetadata

      public Metadata getMetadata()
      Retrieves the associated Metadata.
      Returns:
      the associated Metadata
    • setMetadata

      public void setMetadata(Metadata metadata)
    • getScope

      public String getScope()
      Description copied from class: Item
      Retrieves the Item's scope.
      Overrides:
      getScope in class Item
      Returns:
      the Item's scope name