fr.paris.lutece.plugins.rest.business.resourceinfo
Class AbstractResourceInfo<E>

java.lang.Object
  extended by 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 java.lang.Object
implements IResourceInfo

AbstractResourceInfo


Constructor Summary
AbstractResourceInfo()
           
 
Method Summary
 java.lang.String getKey()
          Get the key
 java.util.List<IResourceInfo> getListChildren()
          Get the list of children
 java.lang.String getValue()
          Get the value
 boolean hasChildren()
          Check if the resource info has children
 void setKey(java.lang.String strKey)
          Set the key
 void setListChildren(java.util.List<IResourceInfo> listChildren)
          Set the list of children
abstract  void setResourceInfo(E resource)
          Set the resource info
 void setValue(java.lang.String strValue)
          Set the value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getListChildren

public java.util.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


Copyright © 2011 Mairie de Paris. All Rights Reserved.