Package org.symphonyoss.s2.canon.model
Class AllOfSchema
-
public class AllOfSchema extends AbstractContainerSchema
-
-
Constructor Summary
Constructors Constructor Description AllOfSchema(ModelElement parent, ParserContext context, ParserContext node, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetCanFailValidation()ParserContextgetDiscriminator()List<ModelElement>getFields()Return the fields of this object, for a normal object this is the same as getChildren() for an AllOf it is the union of all the fields of all its references.protected voidgetReferencedTypes(Set<AbstractSchema> result)protected voidgetSchemas(Set<AbstractSchema> result)List<Component>getSuperClasses()voidvalidate()-
Methods inherited from class org.symphonyoss.s2.canon.model.AbstractContainerSchema
getElementComponent, getElementSchema, getIsArraySchema, getIsObjectSchema, getIsObjectType, toString
-
Methods inherited from class org.symphonyoss.s2.canon.model.Schema
getBaseSchema, getComponent
-
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
-
Methods inherited from class org.symphonyoss.s2.canon.model.ModelElement
add, add, capitalize, generate, getAttributes, getByPath, getCamelCapitalizedName, getCamelName, getChildren, getContext, getDescription, getElementType, getEnum, getFormat, getHasByteString, getHasCollections, getHasList, getHasSet, getIsComponent, getIsGenerateBuilderFacade, getIsGenerateFacade, getIsTypeDef, getModel, getName, getParent, getReference, getReferencedTypes, getSchemas, getSnakeCapitalizedName, getSnakeName, getSourceModel, getSummary, resolve
-
-
-
-
Constructor Detail
-
AllOfSchema
public AllOfSchema(ModelElement parent, ParserContext context, ParserContext node, String name)
-
-
Method Detail
-
getDiscriminator
public ParserContext getDiscriminator()
-
validate
public void validate()
- Overrides:
validatein classAbstractContainerSchema
-
getReferencedTypes
protected void getReferencedTypes(Set<AbstractSchema> result)
- Overrides:
getReferencedTypesin classModelElement
-
getSchemas
protected void getSchemas(Set<AbstractSchema> result)
- Overrides:
getSchemasin classModelElement
-
getSuperClasses
public List<Component> getSuperClasses()
- Overrides:
getSuperClassesin classSchema
-
getFields
public List<ModelElement> getFields()
Return the fields of this object, for a normal object this is the same as getChildren() for an AllOf it is the union of all the fields of all its references.- Overrides:
getFieldsin classModelElement- Returns:
- The fields of this object.
-
getCanFailValidation
public boolean getCanFailValidation()
- Overrides:
getCanFailValidationin classModelElement
-
-