Package org.symphonyoss.s2.canon.model
Class Type
-
- Direct Known Subclasses:
BooleanType,DoubleType,IntegerType,StringType
public abstract class Type extends Schema
-
-
Constructor Summary
Constructors Constructor Description Type(ModelElement parent, ParserContext context, String type, String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractSchemacreate(ModelElement parent, ParserContext context, ParserContext node, String name)ModelElementgetElementComponent()SchemagetElementSchema()For an array type this is the schema of a single element of the array.EnumSchemagetEnum()booleangetHasSet()booleangetIsArraySchema()booleangetIsGenerateFacade()booleangetIsObjectSchema()booleanisEnumAllowed()-
Methods inherited from class org.symphonyoss.s2.canon.model.Schema
getBaseSchema, getComponent, getSuperClasses
-
Methods inherited from class org.symphonyoss.s2.canon.model.ReferenceOrSchema
isResolved
-
Methods inherited from class org.symphonyoss.s2.canon.model.AbstractSchema
createSchema, generateChildren, getIsAnonymousInnerClass, isRequired, toString, toString, toString, toString
-
Methods inherited from class org.symphonyoss.s2.canon.model.ModelElement
add, add, capitalize, generate, getAttributes, getByPath, getCamelCapitalizedName, getCamelName, getCanFailValidation, getChildren, getContext, getDescription, getElementType, getFields, getFormat, getHasByteString, getHasCollections, getHasList, getIsComponent, getIsGenerateBuilderFacade, getIsObjectType, getIsTypeDef, getModel, getName, getParent, getReference, getReferencedTypes, getReferencedTypes, getSchemas, getSchemas, getSnakeCapitalizedName, getSnakeName, getSourceModel, getSummary, resolve, validate
-
-
-
-
Constructor Detail
-
Type
public Type(ModelElement parent, ParserContext context, String type, String name)
-
-
Method Detail
-
create
public static AbstractSchema create(ModelElement parent, ParserContext context, ParserContext node, String name)
-
getElementSchema
public Schema getElementSchema()
Description copied from class:AbstractSchemaFor an array type this is the schema of a single element of the array.- Specified by:
getElementSchemain classAbstractSchema- Returns:
- The schema of a single element of an array
-
getElementComponent
public ModelElement getElementComponent()
- Overrides:
getElementComponentin classModelElement
-
getIsArraySchema
public boolean getIsArraySchema()
- Specified by:
getIsArraySchemain classAbstractSchema
-
getIsObjectSchema
public boolean getIsObjectSchema()
- Specified by:
getIsObjectSchemain classAbstractSchema
-
getIsGenerateFacade
public boolean getIsGenerateFacade()
- Overrides:
getIsGenerateFacadein classModelElement
-
isEnumAllowed
public boolean isEnumAllowed()
-
getEnum
public EnumSchema getEnum()
- Overrides:
getEnumin classModelElement
-
getHasSet
public boolean getHasSet()
- Overrides:
getHasSetin classModelElement
-
-