Package manifold.api.json.codegen.schema
Class TypeAttributes
- java.lang.Object
-
- manifold.api.json.codegen.schema.TypeAttributes
-
public final class TypeAttributes extends Object
TypeAttributes contains attributes that "decorate" a type. These attributes modify an existing type with information separate from the type's internal definition. Such attributes include "nullable", "default value", "readOnly", etc.
-
-
Constructor Summary
Constructors Constructor Description TypeAttributes()TypeAttributes(Boolean nullable)TypeAttributes(Boolean nullable, manifold.rt.api.Bindings jsonObj)TypeAttributes(manifold.rt.api.Bindings bindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Booleanand(Boolean b1, Boolean b2)TypeAttributesblendWith(TypeAttributes other)TypeAttributescopy()booleanequals(Object o)ObjectgetAdditionalProperties()ObjectgetDefaultValue()BooleangetNullable()manifold.rt.api.BindingsgetPatternProperties()BooleangetReadOnly()BooleangetWriteOnly()inthashCode()static Booleanor(Boolean b1, Boolean b2)TypeAttributesoverrideWith(TypeAttributes other)voidsetDefaultValue(Object value)
-
-
-
Method Detail
-
overrideWith
public TypeAttributes overrideWith(TypeAttributes other)
-
blendWith
public TypeAttributes blendWith(TypeAttributes other)
-
copy
public TypeAttributes copy()
-
getNullable
public Boolean getNullable()
-
getDefaultValue
public Object getDefaultValue()
-
setDefaultValue
public void setDefaultValue(Object value)
-
getReadOnly
public Boolean getReadOnly()
-
getWriteOnly
public Boolean getWriteOnly()
-
getAdditionalProperties
public Object getAdditionalProperties()
-
getPatternProperties
public manifold.rt.api.Bindings getPatternProperties()
-
-