Class EObjModelHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T getAdapter​(java.lang.Object adaptableObject, java.lang.Class<T> adapterType)
      Returns an object which is an instance of the given class associated with the given object.
      java.lang.Class<?>[] getAdapterList()
      Returns the collection of adapter types handled by this factory.
      java.lang.Object[] getChildren​(java.lang.Object element, java.lang.String id)  
      java.lang.Object getProperty​(java.lang.Object element, java.lang.String id)  
      java.lang.String[] getPropIds​(java.lang.Object element)  
      void setProperty​(java.lang.Object element, java.lang.String id, java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EObjModelHandler

        public EObjModelHandler()
    • Method Detail

      • getAdapter

        public <T> T getAdapter​(java.lang.Object adaptableObject,
                                java.lang.Class<T> adapterType)
        Description copied from interface: IAdapterFactory
        Returns an object which is an instance of the given class associated with the given object. Returns null if no such object can be found.
        Specified by:
        getAdapter in interface IAdapterFactory
        Parameters:
        adaptableObject - the adaptable object being queried (usually an instance of IAdaptable)
        adapterType - the type of adapter to look up
        Returns:
        a object of the given adapter type, or null if this adapter factory does not have an adapter of the given type for the given object
      • getAdapterList

        public java.lang.Class<?>[] getAdapterList()
        Description copied from interface: IAdapterFactory
        Returns the collection of adapter types handled by this factory.

        This method is generally used by an adapter manager to discover which adapter types are supported, in advance of dispatching any actual getAdapter requests.

        Specified by:
        getAdapterList in interface IAdapterFactory
        Returns:
        the collection of adapter types
      • getChildren

        public java.lang.Object[] getChildren​(java.lang.Object element,
                                              java.lang.String id)
        Overrides:
        getChildren in class ModelHandlerBase
      • getProperty

        public java.lang.Object getProperty​(java.lang.Object element,
                                            java.lang.String id)
        Overrides:
        getProperty in class ModelHandlerBase
      • getPropIds

        public java.lang.String[] getPropIds​(java.lang.Object element)
        Overrides:
        getPropIds in class ModelHandlerBase
      • setProperty

        public void setProperty​(java.lang.Object element,
                                java.lang.String id,
                                java.lang.Object value)
        Overrides:
        setProperty in class ModelHandlerBase