Package net.sf.basedb.clients.web
Class SubContext
java.lang.Object
net.sf.basedb.clients.web.SubContext
Helper class for changing the current subcontext.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ItemContext.AddFilter
private final AnnotationTypeCategory
private final boolean
private final String
private final ItemSubtype
-
Constructor Summary
ConstructorDescriptionSubContext
(String name) Create an instance that doesn't change the current item context.SubContext
(String name, ItemSubtype subtype, AnnotationTypeCategory category, ItemContext.AddFilter addFilter) Create an instance that changes the current item context. -
Method Summary
-
Field Details
-
name
-
subtype
-
category
-
change
private final boolean change -
addFilter
-
-
Constructor Details
-
SubContext
Create an instance that doesn't change the current item context.- Parameters:
name
- The name of the current subcontext
-
SubContext
public SubContext(String name, ItemSubtype subtype, AnnotationTypeCategory category, ItemContext.AddFilter addFilter) Create an instance that changes the current item context.
-
-
Method Details
-
applyToContext
Apply the new subcontext to the given item context. -
isChange
public boolean isChange()Is the context changed or not? -
getName
Get the name of the subcontext. -
getItemSubtype
The new item subtype. Note! Always null if there is no context change. -
getSubCategory
The new sub-category. Note! Always null if there is no context change. -
getAddFilter
-