Class ModelInterface


public class ModelInterface extends ModelType
Author:
Emmanuel Venisse
  • Constructor Details

    • ModelInterface

      public ModelInterface()
    • ModelInterface

      public ModelInterface(Model model, String name)
  • Method Details

    • setSuperInterface

      public void setSuperInterface(String superInterface)
    • getSuperInterface

      public String getSuperInterface()
    • getAllFields

      public List<ModelField> getAllFields()
      Returns the list of all fields in this class. It does not include the fields of super classes.
      Specified by:
      getAllFields in class ModelType
      Returns:
      Returns the list of all fields in this class. It does not include the fields of super classes.
    • getAllFields

      public List<ModelField> getAllFields(boolean withInheritedField)
      Returns all the fields in this class and all super classes if withInheritedField equals to true.
      Specified by:
      getAllFields in class ModelType
      Parameters:
      withInheritedField - whether inherited fields should be included.
      Returns:
      Returns all the fields in this class and all super classes.
    • getField

      public ModelField getField(String type, VersionRange versionRange)
      Specified by:
      getField in class ModelType
    • validateElement

      public void validateElement() throws ModelValidationException
      Specified by:
      validateElement in class BaseElement
      Throws:
      ModelValidationException