Class AttributeValueProvider

java.lang.Object
com.ps.consul.eclipse.core.ValueProvider
com.ps.consul.eclipse.ui.viewer.AttributeValueProvider
All Implemented Interfaces:
IValueProvider, org.eclipse.core.runtime.IAdaptable
Direct Known Subclasses:
VariantAttributeValueProvider

public class AttributeValueProvider extends ValueProvider
  • Field Details

  • Constructor Details

    • AttributeValueProvider

      public AttributeValueProvider()
  • Method Details

    • getValue

      public String getValue(Object el)
      Description copied from interface: IValueProvider
      Get the value for this value provider for the specified element.
      Specified by:
      getValue in interface IValueProvider
      Overrides:
      getValue in class ValueProvider
      Parameters:
      el - The object where to get the specific attribute value from. This might be a generic attribute or any other special attribute.
      Returns:
      The attribute value for the specified element.
    • getValue

      protected String getValue(IPVProperty property)
    • setQuotes

      public String[] setQuotes(String open, String close)
    • getQuotes

      public String[] getQuotes()
      Returns:
      array of characters used for quotation of attribute values. Elements are (in order)
      • Starting symbol or character
      • Ending symbol or character
      Since:
      4.0.19
    • isCalculation

      public boolean isCalculation(IPVProperty prop)
    • isConstant

      public boolean isConstant(IPVProperty prop)
    • getAttributeDescriptor

      public String getAttributeDescriptor()
      Description copied from interface: IValueProvider
      Returns the descriptor for the attribute this provider stands for. it is the id for the ValueProvider
      Specified by:
      getAttributeDescriptor in interface IValueProvider
      Overrides:
      getAttributeDescriptor in class ValueProvider
      Returns: