Class AbstractResourceInfo<E>

  • Type Parameters:
    E - the resource class
    All Implemented Interfaces:
    IResourceInfo
    Direct Known Subclasses:
    ResourceInfo

    public abstract class AbstractResourceInfo<E>
    extends java.lang.Object
    implements IResourceInfo
    AbstractResourceInfo
    • Constructor Detail

      • AbstractResourceInfo

        public AbstractResourceInfo()
    • Method Detail

      • setResourceInfo

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

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

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

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

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

        public void setListChildren​(java.util.List<IResourceInfo> listChildren)
        Set the list of children
        Specified by:
        setListChildren in interface IResourceInfo
        Parameters:
        listChildren - 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