Package org.dashbuilder.navigation.impl
Class NavItemContextImpl
- java.lang.Object
-
- org.dashbuilder.navigation.impl.NavItemContextImpl
-
- All Implemented Interfaces:
NavItemContext
- Direct Known Subclasses:
NavWorkbenchCtx
public class NavItemContextImpl extends Object implements NavItemContext
-
-
Constructor Summary
Constructors Constructor Description NavItemContextImpl()NavItemContextImpl(String ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetProperty(String id)Collection<String>getPropertyIds()booleanincludesPropertiesOf(NavItemContext ctx)Check if this context contains all property-value pairs of some other context.voidinit(String ctx)StringremoveProperty(String id)NavItemContextsetProperty(String id, String value)StringtoString()
-
-
-
Constructor Detail
-
NavItemContextImpl
public NavItemContextImpl()
-
NavItemContextImpl
public NavItemContextImpl(String ctx)
-
-
Method Detail
-
init
public void init(String ctx)
- Specified by:
initin interfaceNavItemContext
-
getPropertyIds
public Collection<String> getPropertyIds()
- Specified by:
getPropertyIdsin interfaceNavItemContext
-
getProperty
public String getProperty(String id)
- Specified by:
getPropertyin interfaceNavItemContext
-
removeProperty
public String removeProperty(String id)
- Specified by:
removePropertyin interfaceNavItemContext
-
setProperty
public NavItemContext setProperty(String id, String value)
- Specified by:
setPropertyin interfaceNavItemContext
-
includesPropertiesOf
public boolean includesPropertiesOf(NavItemContext ctx)
Description copied from interface:NavItemContextCheck if this context contains all property-value pairs of some other context.- Specified by:
includesPropertiesOfin interfaceNavItemContext- Returns:
- true iff all the properties of ctx are also present in this context and have the same value.
-
-