Class ModelType

    • Field Detail

      • packageName

        private java.lang.String packageName
      • codeSegments

        private java.util.List<CodeSegment> codeSegments
      • model

        private transient Model model
      • codeSegmentMap

        private transient java.util.Map<java.lang.String,​CodeSegment> codeSegmentMap
    • Constructor Detail

      • ModelType

        public ModelType()
      • ModelType

        public ModelType​(Model model,
                         java.lang.String name)
    • Method Detail

      • getPackageName

        public java.lang.String getPackageName()
      • getPackageName

        public java.lang.String getPackageName​(boolean withVersion,
                                               Version version)
      • setPackageName

        public void setPackageName​(java.lang.String packageName)
      • getModel

        public Model getModel()
      • getAllCodeSegments

        public java.util.List<CodeSegment> getAllCodeSegments()
      • getCodeSegments

        public java.util.List<CodeSegment> getCodeSegments​(Version version)
      • addCodeSegment

        public void addCodeSegment​(CodeSegment codeSegment)
      • getAllFields

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

        public abstract java.util.List<ModelField> getAllFields​(boolean withInheritedField)
        Returns all the fields in this class and all super classes if withInheritedField equals to true.
        Parameters:
        withInheritedField - whether inherited fields should be included.
        Returns:
        Returns all the fields in this class and all super classes.
      • getFields

        public java.util.List<ModelField> getFields​(Version version)
        Returns the list of all fields in this class for a specific version. It does not include the fields of super classes.
        Parameters:
        version - the specific version
        Returns:
        Returns the list of all fields in this class. It does not include the fields of super classes.
      • getAllFields

        public java.util.List<ModelField> getAllFields​(Version version,
                                                       boolean withInheritedField)
      • hasField

        public boolean hasField​(java.lang.String type,
                                Version version)
      • getIdentifierFields

        public java.util.List<ModelField> getIdentifierFields​(Version version)
      • initialize

        public void initialize​(Model model)