Class ModelRepository


  • public class ModelRepository
    extends java.lang.Object
    • Constructor Detail

      • ModelRepository

        public ModelRepository()
    • Method Detail

      • addModels

        public void addModels​(IModel... models)
      • addModels

        public void addModels​(java.util.Collection<? extends IModel> models)
        Parameters:
        models -
        Since:
        1.6
      • addModel

        public void addModel​(IModel model)
      • removeModel

        public void removeModel​(IModel model)
      • getModelByNameSafe

        public IModel getModelByNameSafe​(java.lang.String modelName)
      • checkAmbiguity

        public ModelRepository.AmbiguityCheckResult checkAmbiguity​(java.lang.String typeName)
        Returns a result that indicates (1) whether the specified type is ambiguous (i.e. more than one IModel in this repository has the type), and (2) the set of models that do have this type.
      • getOwningModel

        public IModel getOwningModel​(java.lang.Object instance)
      • getMetaClassName

        protected java.lang.String getMetaClassName​(java.lang.String modelAndMetaClass)
      • getModelName

        protected java.lang.String getModelName​(java.lang.String modelAndMetaClass)
      • getEnumeration

        protected java.lang.String getEnumeration​(java.lang.String enumerationAndLabel)
      • getLabel

        protected java.lang.String getLabel​(java.lang.String enumerationAndLabel)
      • dispose

        public void dispose()
      • getModels

        public java.util.List<IModel> getModels()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object