Class Container<T extends IExtendedResource>

java.lang.Object
org.eclipse.lyo.oslc4j.core.model.AbstractResource
com.sodius.oslc.core.ldp.model.Container<T>
Type Parameters:
T - An IExtendedResource subclass that will be contained within this container
All Implemented Interfaces:
IExtendedResource, IResource
Direct Known Subclasses:
AccessContextList, ComponentContainer, ConfigurationContainer

public abstract class Container<T extends IExtendedResource> extends AbstractResource
A Container is meant to group and serve IExtendedResource subclasses. Subclasses should specify the annotations to enable proper serialization.
Since:
1.6.0
  • Field Details

  • Constructor Details

    • Container

      public Container()
  • Method Details

    • getMembers

      public abstract T[] getMembers()
      Returns the members of the container Method that must be overridden with the appropriate return type and annotations
      Returns:
      the members of the container
    • setMembers

      public void setMembers(T[] members)
      Sets the members of the container
      Parameters:
      members - the new members of the container
    • addMember

      public void addMember(T member)
      Add a new member into the container
      Parameters:
      member - the new member of the container