Class NamedProperty
- java.lang.Object
-
- org.springframework.cloud.contract.spec.internal.NamedProperty
-
public class NamedProperty extends Object
Represents a property that has name and content. Used together with multipart requests.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description NamedProperty(Map<String,DslProperty> namedMap)NamedProperty(DslProperty name, DslProperty value)NamedProperty(DslProperty name, DslProperty value, DslProperty contentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DslPropertyasDslProperty(Object o)booleanequals(Object o)DslPropertygetContentType()DslPropertygetName()DslPropertygetValue()inthashCode()voidsetContentType(DslProperty contentType)voidsetName(DslProperty name)voidsetValue(DslProperty value)StringtoString()
-
-
-
Constructor Detail
-
NamedProperty
public NamedProperty(DslProperty name, DslProperty value)
-
NamedProperty
public NamedProperty(DslProperty name, DslProperty value, DslProperty contentType)
-
NamedProperty
public NamedProperty(Map<String,DslProperty> namedMap)
-
-
Method Detail
-
asDslProperty
public static DslProperty asDslProperty(Object o)
-
getName
public DslProperty getName()
-
setName
public void setName(DslProperty name)
-
getValue
public DslProperty getValue()
-
setValue
public void setValue(DslProperty value)
-
getContentType
public DslProperty getContentType()
-
setContentType
public void setContentType(DslProperty contentType)
-
-