Class AbstractResourceInfo<E>

java.lang.Object
fr.paris.lutece.plugins.rest.business.resourceinfo.AbstractResourceInfo<E>
Type Parameters:
E - the resource class
All Implemented Interfaces:
IResourceInfo
Direct Known Subclasses:
ResourceInfo

public abstract class AbstractResourceInfo<E> extends Object implements IResourceInfo
AbstractResourceInfo
  • Constructor Details

    • AbstractResourceInfo

      public AbstractResourceInfo()
  • Method Details

    • setResourceInfo

      public abstract void setResourceInfo(E resource)
      Set the resource info
      Parameters:
      resource - the resource
    • setKey

      public void setKey(String strKey)
      Set the key
      Specified by:
      setKey in interface IResourceInfo
      Parameters:
      strKey - the key
    • getKey

      public String getKey()
      Get the key
      Specified by:
      getKey in interface IResourceInfo
      Returns:
      the key
    • setValue

      public void setValue(String strValue)
      Set the value
      Specified by:
      setValue in interface IResourceInfo
      Parameters:
      strValue - the value
    • getValue

      public String getValue()
      Get the value
      Specified by:
      getValue in interface IResourceInfo
      Returns:
      the value
    • setListChildren

      public void setListChildren(List<IResourceInfo> listChildren)
      Set the list of children
      Specified by:
      setListChildren in interface IResourceInfo
      Parameters:
      listChildren - the list of children
    • getListChildren

      public List<IResourceInfo> getListChildren()
      Get the list of children
      Specified by:
      getListChildren in interface IResourceInfo
      Returns:
      the list of children
    • hasChildren

      public boolean hasChildren()
      Check if the resource info has children
      Specified by:
      hasChildren in interface IResourceInfo
      Returns:
      true if it has children, false otherwise