Class ModelElement

    • Method Detail

      • getBaseSchema

        public ModelElement getBaseSchema()
        Get 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
        Returns:
        The base schema which this type refers to.
      • getElementSchema

        public ModelElement getElementSchema()
        For an array type this is the schema of a single element of the array.
        Returns:
        The schema of a single element of an array
      • getElementComponent

        public ModelElement getElementComponent()
      • getIsArraySchema

        public boolean getIsArraySchema()
      • getIsObjectSchema

        public boolean getIsObjectSchema()
      • capitalize

        public static String capitalize​(String name)
      • getModel

        public Model getModel()
      • getSourceModel

        public Model getSourceModel()
      • getName

        public String getName()
      • getCamelName

        public String getCamelName()
      • getCamelCapitalizedName

        public String getCamelCapitalizedName()
      • getSnakeName

        public String getSnakeName()
      • getSnakeCapitalizedName

        public String getSnakeCapitalizedName()
      • getSummary

        public String getSummary()
      • getDescription

        public String getDescription()
      • getFormat

        public String getFormat()
      • getHasSet

        public boolean getHasSet()
      • getHasList

        public boolean getHasList()
      • getHasCollections

        public boolean getHasCollections()
      • getHasByteString

        public boolean getHasByteString()
      • getIsComponent

        public boolean getIsComponent()
      • getIsTypeDef

        public boolean getIsTypeDef()
      • getIsObjectType

        public boolean getIsObjectType()
      • getIsGenerateFacade

        public boolean getIsGenerateFacade()
      • getIsGenerateBuilderFacade

        public boolean getIsGenerateBuilderFacade()
      • getReferencedTypes

        protected void getReferencedTypes​(Set<AbstractSchema> result)
      • resolve

        public void resolve()
      • validate

        public void validate()
      • getElementType

        public String getElementType()
      • 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 something else.
        Returns:
        The fields of this object.
      • getCanFailValidation

        public boolean getCanFailValidation()