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
A Container is meant to group and serve IExtendedResource subclasses.
Subclasses should specify the annotations to enable proper serialization.
- Since:
- 1.6.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new member into the containerabstract T[]Returns the members of the container Method that must be overridden with the appropriate return type and annotationsvoidsetMembers(T[] members) Sets the members of the containerMethods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
Field Details
-
members
-
-
Constructor Details
-
Container
public Container()
-
-
Method Details
-
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
Sets the members of the container- Parameters:
members- the new members of the container
-
addMember
Add a new member into the container- Parameters:
member- the new member of the container
-