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 Summary
Constructors Constructor Description AbstractResourceInfo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description StringgetKey()Get the keyList<IResourceInfo>getListChildren()Get the list of childrenStringgetValue()Get the valuebooleanhasChildren()Check if the resource info has childrenvoidsetKey(String strKey)Set the keyvoidsetListChildren(List<IResourceInfo> listChildren)Set the list of childrenabstract voidsetResourceInfo(E resource)Set the resource infovoidsetValue(String strValue)Set the value
-
-
-
Method Detail
-
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:
setKeyin interfaceIResourceInfo- Parameters:
strKey- the key
-
getKey
public String getKey()
Get the key- Specified by:
getKeyin interfaceIResourceInfo- Returns:
- the key
-
setValue
public void setValue(String strValue)
Set the value- Specified by:
setValuein interfaceIResourceInfo- Parameters:
strValue- the value
-
getValue
public String getValue()
Get the value- Specified by:
getValuein interfaceIResourceInfo- Returns:
- the value
-
setListChildren
public void setListChildren(List<IResourceInfo> listChildren)
Set the list of children- Specified by:
setListChildrenin interfaceIResourceInfo- Parameters:
listChildren- the list of children
-
getListChildren
public List<IResourceInfo> getListChildren()
Get the list of children- Specified by:
getListChildrenin interfaceIResourceInfo- Returns:
- the list of children
-
hasChildren
public boolean hasChildren()
Check if the resource info has children- Specified by:
hasChildrenin interfaceIResourceInfo- Returns:
- true if it has children, false otherwise
-
-