java.lang.Object
de.hybris.platform.webservicescommons.swagger.vendorextension.ObjectVendorExtension
All Implemented Interfaces:
VendorExtension<Map<String,Object>>

public class ObjectVendorExtension extends Object implements VendorExtension<Map<String,Object>>
An implementation of VendorExtension using map as inner container
  • Constructor Details

    • ObjectVendorExtension

      public ObjectVendorExtension(String name)
  • Method Details

    • getName

      public String getName()
      Description copied from interface: VendorExtension
      get the name of the vendor extension.
      Specified by:
      getName in interface VendorExtension<Map<String,Object>>
      Returns:
      the name of the vendor extension.
    • getValue

      public Map<String,Object> getValue()
      Description copied from interface: VendorExtension
      get the value of the vendor extension.
      Specified by:
      getValue in interface VendorExtension<Map<String,Object>>
      Returns:
      the value of the vendor extension.
    • addProperty

      public void addProperty(String key, Object value)
      add a property kv pair.
      Parameters:
      key - the key of the property to be added.
      value - the value of the property to be added.
    • replaceProperty

      public void replaceProperty(String key, Object value)
      replace old property if they exist, or else add this property.
      Parameters:
      key - the key of the property to be added.
      value - the value of the property to be added.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object