Class ThemeField

java.lang.Object
com.broadleafcommerce.content.domain.ThemeField
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class ThemeField extends Object implements com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable
Represents the definition for a ThemeField. This includes the fields type and value.
Author:
Jon Fleschler (jfleschler)
See Also:
  • Constructor Details

    • ThemeField

      public ThemeField()
    • ThemeField

      public ThemeField(String id, String label, String name, @Nullable ThemeFieldGroup fieldGroup, String type, Object value, com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
  • Method Details

    • getId

      public String getId()
      A unique id for the field.
      Returns:
      the unique id for the field
    • getLabel

      public String getLabel()
      The friendly display label for this field
      Returns:
      a friendly display label for this field
    • getName

      public String getName()
      A unique name for the field, used for retrieval.
      Returns:
      a unique name for the field, used for retrieval
    • getFieldGroup

      @Nullable public ThemeFieldGroup getFieldGroup()
      The group this field belongs to.
      Returns:
      the group this field belongs to
    • getType

      public String getType()
      The type of this content field
      Returns:
      the type of this field
    • getValue

      public Object getValue()
      The field's value
      Returns:
      the field's value
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      A unique id for the field.
      Parameters:
      id - the unique id for the field
    • setLabel

      public void setLabel(String label)
      The friendly display label for this field
      Parameters:
      label - a friendly display label for this field
    • setName

      public void setName(String name)
      A unique name for the field, used for retrieval.
      Parameters:
      name - a unique name for the field, used for retrieval
    • setFieldGroup

      public void setFieldGroup(@Nullable ThemeFieldGroup fieldGroup)
      The group this field belongs to.
      Parameters:
      fieldGroup - the group this field belongs to
    • setType

      public void setType(String type)
      The type of this content field
      Parameters:
      type - the type of this field
    • setValue

      public void setValue(Object value)
      The field's value
      Parameters:
      value - the field's value
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object