Package org.symphonyoss.s2.canon.model
Class Model
- java.lang.Object
-
- org.symphonyoss.s2.canon.model.ModelElement
-
- org.symphonyoss.s2.canon.model.Model
-
public class Model extends ModelElement
-
-
Constructor Summary
Constructors Constructor Description Model(ParserContext parserContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReferencedContext(RootParserContext referencedContext)voidgenerate(GenerationContext generationContext)StringgetBasePath()URIgetCanonId()intgetCanonMajorVersion()intgetCanonMinorVersion()StringgetCanonVersion()ModelgetModel()Map<String,String>getModelMap()VersiongetOpenapi()PathsgetPaths()Set<RootParserContext>getReferencedContexts()StringtoString()-
Methods inherited from class org.symphonyoss.s2.canon.model.ModelElement
add, add, capitalize, generate, generateChildren, getAttributes, getBaseSchema, getByPath, getCamelCapitalizedName, getCamelName, getCanFailValidation, getChildren, getComponent, getContext, getDescription, getElementComponent, getElementSchema, getElementType, getEnum, getFields, getFormat, getHasByteString, getHasCollections, getHasList, getHasSet, getIsArraySchema, getIsComponent, getIsGenerateBuilderFacade, getIsGenerateFacade, getIsObjectSchema, getIsObjectType, getIsTypeDef, getName, getParent, getReference, getReferencedTypes, getReferencedTypes, getSchemas, getSchemas, getSnakeCapitalizedName, getSnakeName, getSourceModel, getSummary, resolve, validate
-
-
-
-
Constructor Detail
-
Model
public Model(ParserContext parserContext)
-
-
Method Detail
-
getModel
public Model getModel()
- Overrides:
getModelin classModelElement
-
getOpenapi
public Version getOpenapi()
-
getCanonId
public URI getCanonId()
-
getCanonVersion
public String getCanonVersion()
-
getCanonMajorVersion
public int getCanonMajorVersion()
-
getCanonMinorVersion
public int getCanonMinorVersion()
-
getBasePath
public String getBasePath()
-
getPaths
public Paths getPaths()
-
generate
public void generate(GenerationContext generationContext) throws GenerationException
- Throws:
GenerationException
-
toString
public String toString()
- Overrides:
toStringin classModelElement
-
addReferencedContext
public void addReferencedContext(RootParserContext referencedContext)
-
getReferencedContexts
public Set<RootParserContext> getReferencedContexts()
-
-