Class SchemaItemAbstract<T extends SchemaItemAbstract<T>>
- java.lang.Object
-
- de.fraunhofer.iosb.ilt.configurable.JsonSchema.SchemaItemAbstract<T>
-
- Type Parameters:
T- The exact subType, used for fluent setters.
- All Implemented Interfaces:
SchemaItem
- Direct Known Subclasses:
ItemArray,ItemBoolean,ItemConst,ItemInteger,ItemNumber,ItemObject,ItemRef,ItemString,ItemTrue
public abstract class SchemaItemAbstract<T extends SchemaItemAbstract<T>> extends Object implements SchemaItem
- Author:
- scf
-
-
Constructor Summary
Constructors Constructor Description SchemaItemAbstract(String type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SchemaItemAbstract<T>addAllowedValue(Object value)SchemaItemAbstract<T>addOption(String name, Object value)ObjectgetDeflt()StringgetDescription()abstract TgetThis()StringgetTitle()StringgetType()TsetDeflt(Object deflt)TsetDescription(String description)TsetTitle(String title)
-
-
-
Constructor Detail
-
SchemaItemAbstract
public SchemaItemAbstract(String type)
-
-
Method Detail
-
getThis
public abstract T getThis()
-
getType
public String getType()
- Specified by:
getTypein interfaceSchemaItem
-
getDeflt
public Object getDeflt()
- Returns:
- the default
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceSchemaItem- Returns:
- the title
-
setTitle
public T setTitle(String title)
- Specified by:
setTitlein interfaceSchemaItem- Parameters:
title- the title to set- Returns:
- this.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceSchemaItem- Returns:
- the description
-
setDescription
public T setDescription(String description)
- Specified by:
setDescriptionin interfaceSchemaItem- Parameters:
description- the description to set- Returns:
- this.
-
addAllowedValue
public SchemaItemAbstract<T> addAllowedValue(Object value)
-
addOption
public SchemaItemAbstract<T> addOption(String name, Object value)
-
-