Class ItemModelWrapper<T>

java.lang.Object
org.hippoecm.frontend.model.ItemModelWrapper<T>
Type Parameters:
T - the model object type
All Implemented Interfaces:
Serializable, org.apache.wicket.model.IDetachable, org.apache.wicket.model.IModel<T>, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
AbstractProvider, JcrNodeModel, JcrPropertyModel

public abstract class ItemModelWrapper<T> extends Object implements org.apache.wicket.model.IModel<T>
Base class for models that can provide objects based on an JCR Item.
See Also:
  • Constructor Details

    • ItemModelWrapper

      public ItemModelWrapper(JcrItemModel model)
    • ItemModelWrapper

      public ItemModelWrapper(Item item)
    • ItemModelWrapper

      public ItemModelWrapper(String path, boolean property)
  • Method Details

    • getItemModel

      public JcrItemModel getItemModel()
    • setItemModel

      public void setItemModel(org.apache.wicket.model.IModel<?> model)
    • getObject

      public T getObject()
      Specified by:
      getObject in interface org.apache.wicket.model.IModel<T>
    • setObject

      public void setObject(T object)
      Specified by:
      setObject in interface org.apache.wicket.model.IModel<T>
    • detach

      public void detach()
      Specified by:
      detach in interface org.apache.wicket.model.IDetachable
      Specified by:
      detach in interface org.apache.wicket.model.IModel<T>