java.lang.Object
com.genologics.ri.processtemplate.ProcessTemplates
- All Implemented Interfaces:
Batch<ProcessTemplateLink>,PaginatedBatch<ProcessTemplateLink>,Serializable,Iterable<ProcessTemplateLink>
public class ProcessTemplates
extends Object
implements PaginatedBatch<ProcessTemplateLink>, Serializable
The representation of a list of Process Template links.
The system enforces a maximum number of elements when generating the list of links. When the size of the request result set is larger than the system maximum, the list represents a paged view of the overall results, and the previous-page and next-page elements provide URIs linking to the previous or next page of links in the overall results.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected PageThe link to the next page of results.protected PageThe link to the previous page of results.protected List<ProcessTemplateLink>The list of process template links. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetList()Gets the list of process template links.Gets the next page link.Gets the previous page link.Gets the list of process template links.intgetSize()Gets the number of process template links.voidsetNextPage(Page nextPage) Sets the next page link.voidsetPreviousPage(Page previousPage) Sets the previous page link.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
processTemplates
The list of process template links. -
previousPage
The link to the previous page of results. -
nextPage
The link to the next page of results.
-
-
Constructor Details
-
ProcessTemplates
public ProcessTemplates()Default constructor.
-
-
Method Details
-
getProcessTemplates
Gets the list of process template links.- Returns:
- the list of process template links (never null).
-
getList
Gets the list of process template links.- Specified by:
getListin interfaceBatch<ProcessTemplateLink>- Returns:
- the list of process template links.
-
getSize
public int getSize()Gets the number of process template links.- Specified by:
getSizein interfaceBatch<ProcessTemplateLink>- Returns:
- the number of process template links in the list.
-
getPreviousPage
Gets the previous page link.- Specified by:
getPreviousPagein interfacePaginatedBatch<ProcessTemplateLink>- Returns:
- the previous page link.
-
setPreviousPage
Sets the previous page link.- Specified by:
setPreviousPagein interfacePaginatedBatch<ProcessTemplateLink>- Parameters:
previousPage- the previous page link to set.
-
getNextPage
Gets the next page link.- Specified by:
getNextPagein interfacePaginatedBatch<ProcessTemplateLink>- Returns:
- the next page link.
-
setNextPage
Sets the next page link.- Specified by:
setNextPagein interfacePaginatedBatch<ProcessTemplateLink>- Parameters:
nextPage- the next page link to set.
-