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
AbstractResourceInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetKey()Get the keyGet the list of childrengetValue()Get the valuebooleanCheck if the resource info has childrenvoidSet the keyvoidsetListChildren(List<IResourceInfo> listChildren) Set the list of childrenabstract voidsetResourceInfo(E resource) Set the resource infovoidSet the value
-
Constructor Details
-
AbstractResourceInfo
public AbstractResourceInfo()
-
-
Method Details
-
setResourceInfo
Set the resource info- Parameters:
resource- the resource
-
setKey
Set the key- Specified by:
setKeyin interfaceIResourceInfo- Parameters:
strKey- the key
-
getKey
Get the key- Specified by:
getKeyin interfaceIResourceInfo- Returns:
- the key
-
setValue
Set the value- Specified by:
setValuein interfaceIResourceInfo- Parameters:
strValue- the value
-
getValue
Get the value- Specified by:
getValuein interfaceIResourceInfo- Returns:
- the value
-
setListChildren
Set the list of children- Specified by:
setListChildrenin interfaceIResourceInfo- Parameters:
listChildren- the list of children
-
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
-