Package org.symphonyoss.s2.canon.model
Class Schema
- java.lang.Object
-
- org.symphonyoss.s2.canon.model.ModelElement
-
- org.symphonyoss.s2.canon.model.AbstractSchema
-
- org.symphonyoss.s2.canon.model.ReferenceOrSchema
-
- org.symphonyoss.s2.canon.model.Schema
-
- Direct Known Subclasses:
AbstractContainerSchema,ArraySchema,Component,ObjectSchema,Type
public abstract class Schema extends ReferenceOrSchema
-
-
Constructor Summary
Constructors Constructor Description Schema(ModelElement parent, ParserContext context, String type, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemagetBaseSchema()Get the basic schema which this type refers to.ModelElementgetComponent()List<Component>getSuperClasses()-
Methods inherited from class org.symphonyoss.s2.canon.model.ReferenceOrSchema
isResolved
-
Methods inherited from class org.symphonyoss.s2.canon.model.AbstractSchema
createSchema, generateChildren, getElementSchema, getIsAnonymousInnerClass, getIsArraySchema, getIsObjectSchema, 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, getElementComponent, getElementType, getEnum, getFields, getFormat, getHasByteString, getHasCollections, getHasList, getHasSet, getIsComponent, getIsGenerateBuilderFacade, getIsGenerateFacade, getIsObjectType, getIsTypeDef, getModel, getName, getParent, getReference, getReferencedTypes, getReferencedTypes, getSchemas, getSchemas, getSnakeCapitalizedName, getSnakeName, getSourceModel, getSummary, resolve, validate
-
-
-
-
Constructor Detail
-
Schema
public Schema(ModelElement parent, ParserContext context, String type, String name)
-
-
Method Detail
-
getBaseSchema
public Schema getBaseSchema()
Description copied from class:AbstractSchemaGet the basic schema which this type refers to. For a field it will be the field type, for a reference the referenced type. For a field whose type is a reference then it will be the ultimate referenced type. The baseSchema could be an ArraySchema- Specified by:
getBaseSchemain classAbstractSchema- Returns:
- The base schema which this type refers to.
-
getComponent
public ModelElement getComponent()
- Overrides:
getComponentin classModelElement
-
-