Package com.boldsign.model
Class Font
- java.lang.Object
-
- com.boldsign.model.Font
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.8.0") public class Font extends Object
Font
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFont.CustomTypeAdapterFactorystatic classFont.NameEnumGets or Sets namestatic classFont.StyleEnumGets or Sets style
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_COLORstatic StringSERIALIZED_NAME_IS_BOLD_FONTstatic StringSERIALIZED_NAME_IS_ITALIC_FONTstatic StringSERIALIZED_NAME_IS_UNDER_LINE_FONTstatic StringSERIALIZED_NAME_LINE_HEIGHTstatic StringSERIALIZED_NAME_NAMEstatic StringSERIALIZED_NAME_SIZEstatic StringSERIALIZED_NAME_STYLE
-
Constructor Summary
Constructors Constructor Description Font()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Fontcolor(String color)Map<String,Object>createFormData()booleanequals(Object o)static FontfromJson(String jsonString)Create an instance of Font given an JSON stringStringgetColor()Get colorBooleangetIsBoldFont()Get isBoldFontBooleangetIsItalicFont()Get isItalicFontBooleangetIsUnderLineFont()Get isUnderLineFontIntegergetLineHeight()Get lineHeightFont.NameEnumgetName()Get nameFloatgetSize()Get sizeFont.StyleEnumgetStyle()Deprecated.inthashCode()FontisBoldFont(Boolean isBoldFont)FontisItalicFont(Boolean isItalicFont)FontisUnderLineFont(Boolean isUnderLineFont)FontlineHeight(Integer lineHeight)Fontname(Font.NameEnum name)voidsetColor(String color)voidsetIsBoldFont(Boolean isBoldFont)voidsetIsItalicFont(Boolean isItalicFont)voidsetIsUnderLineFont(Boolean isUnderLineFont)voidsetLineHeight(Integer lineHeight)voidsetName(Font.NameEnum name)voidsetSize(Float size)voidsetStyle(Font.StyleEnum style)Deprecated.Fontsize(Float size)Fontstyle(Font.StyleEnum style)Deprecated.StringtoJson()Convert an instance of Font to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_NAME
public static final String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COLOR
public static final String SERIALIZED_NAME_COLOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SIZE
public static final String SERIALIZED_NAME_SIZE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STYLE
public static final String SERIALIZED_NAME_STYLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINE_HEIGHT
public static final String SERIALIZED_NAME_LINE_HEIGHT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_BOLD_FONT
public static final String SERIALIZED_NAME_IS_BOLD_FONT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_ITALIC_FONT
public static final String SERIALIZED_NAME_IS_ITALIC_FONT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_UNDER_LINE_FONT
public static final String SERIALIZED_NAME_IS_UNDER_LINE_FONT
- See Also:
- Constant Field Values
-
-
Method Detail
-
name
public Font name(Font.NameEnum name)
-
getName
@Nullable public Font.NameEnum getName()
Get name- Returns:
- name
-
setName
public void setName(Font.NameEnum name)
-
setColor
public void setColor(String color)
-
setSize
public void setSize(Float size)
-
style
@Deprecated public Font style(Font.StyleEnum style)
Deprecated.
-
getStyle
@Deprecated @Nullable public Font.StyleEnum getStyle()
Deprecated.Get style- Returns:
- style
-
setStyle
@Deprecated public void setStyle(Font.StyleEnum style)
Deprecated.
-
setLineHeight
public void setLineHeight(Integer lineHeight)
-
setIsBoldFont
public void setIsBoldFont(Boolean isBoldFont)
-
setIsItalicFont
public void setIsItalicFont(Boolean isItalicFont)
-
getIsUnderLineFont
@Nullable public Boolean getIsUnderLineFont()
Get isUnderLineFont- Returns:
- isUnderLineFont
-
setIsUnderLineFont
public void setIsUnderLineFont(Boolean isUnderLineFont)
-
createFormData
public Map<String,Object> createFormData() throws ApiException
- Throws:
ApiException
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Font
-
fromJson
public static Font fromJson(String jsonString) throws IOException
Create an instance of Font given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Font
- Throws:
IOException- if the JSON string is invalid with respect to Font
-
toJson
public String toJson()
Convert an instance of Font to an JSON string- Returns:
- JSON string
-
-