Class ObjectVendorExtension
java.lang.Object
de.hybris.platform.webservicescommons.swagger.vendorextension.ObjectVendorExtension
- All Implemented Interfaces:
VendorExtension<Map<String,Object>>
An implementation of
VendorExtension using map as inner container-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, Object value) add a property kv pair.booleangetName()get the name of the vendor extension.getValue()get the value of the vendor extension.inthashCode()voidreplaceProperty(String key, Object value) replace old property if they exist, or else add this property.toString()
-
Constructor Details
-
ObjectVendorExtension
-
-
Method Details
-
getName
Description copied from interface:VendorExtensionget the name of the vendor extension.- Specified by:
getNamein interfaceVendorExtension<Map<String,Object>> - Returns:
- the name of the vendor extension.
-
getValue
Description copied from interface:VendorExtensionget the value of the vendor extension.- Specified by:
getValuein interfaceVendorExtension<Map<String,Object>> - Returns:
- the value of the vendor extension.
-
addProperty
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
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
-
hashCode
public int hashCode() -
toString
-