Package com.sodius.oslc.core.ldp.model
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
-
-
Constructor Summary
Constructors Constructor Description Container()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addMember(T member)
Add a new member into the containerabstract T[]
getMembers()
Returns the members of the container Method that must be overridden with the appropriate return type and annotationsvoid
setMembers(T[] members)
Sets the members of the container-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Field Detail
-
members
protected Set<T extends IExtendedResource> members
-
-
Method Detail
-
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
-
-