Class AbstractTypeLoader

    • Constructor Detail

      • AbstractTypeLoader

        public AbstractTypeLoader()
    • Method Detail

      • setTypeService

        public void setTypeService​(TypeService typeService)
      • setModelService

        public void setModelService​(ModelService modelService)
      • setCockpitPropertyService

        public void setCockpitPropertyService​(PropertyService propertyService)
      • getTypeService

        protected TypeService getTypeService()
      • getModelService

        protected ModelService getModelService()
      • getAvailableValues

        public java.util.List<java.lang.Object> getAvailableValues​(TypeModel valueType,
                                                                   PropertyDescriptor propertyDescriptor,
                                                                   TypeService typeService)
        Description copied from interface: ExtendedTypeLoader
        Returns all possible values for the given property, e.g. all enumeration values if it's an enum.
        Specified by:
        getAvailableValues in interface ExtendedTypeLoader
        Parameters:
        valueType - The value type of the property
        propertyDescriptor - The property.
        Returns:
        The list of available values or null if not handled by this type loader.
      • getExtendedTypesForTemplate

        public java.util.Collection<ExtendedType> getExtendedTypesForTemplate​(ItemType type,
                                                                              java.lang.String templateCode,
                                                                              TypeService typeService)
        Description copied from interface: ExtendedTypeLoader
        Returns the extended types for a given template.
        Specified by:
        getExtendedTypesForTemplate in interface ExtendedTypeLoader
        Parameters:
        type - The item type of the template.
        templateCode - The template code (without the type part, e.g. CPU for Product.CPU).
        Returns:
        The extended types or null if not handled by this type loader.
      • getAttributeCodeFromPropertyQualifier

        public java.lang.String getAttributeCodeFromPropertyQualifier​(java.lang.String propertyQualifier)
        Description copied from interface: ExtendedTypeLoader
        Splits up a property qualifier and returns the attribute part of it.
        Specified by:
        getAttributeCodeFromPropertyQualifier in interface ExtendedTypeLoader
        Returns:
        the attribute code or null if not handled by this type loader.
      • getTypeCodeFromPropertyQualifier

        public java.lang.String getTypeCodeFromPropertyQualifier​(java.lang.String propertyQualifier)
        Description copied from interface: ExtendedTypeLoader
        Splits up a property qualifier and returns the type part of it.
        Specified by:
        getTypeCodeFromPropertyQualifier in interface ExtendedTypeLoader
        Returns:
        the type code or null if not handled by this type loader.