Class DummyRow
Object
DummyRow
- All Implemented Interfaces:
StructureRow
-
Nested Class Summary
Nested classes/interfaces inherited from interface StructureRow
StructureRow.ZeroRow -
Field Summary
Fields inherited from interface StructureRow
ROW_ZERO -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<I> ITries to resolve the item based on its ID, that is, get an object that represents this item.Returns item ID for the item shown in this row.longgetRowId()Returns row ID, a positive number.longReturns row's semantics.
-
Constructor Details
-
DummyRow
-
-
Method Details
-
getRowId
public long getRowId()Description copied from interface:StructureRowReturns row ID, a positive number.- Specified by:
getRowIdin interfaceStructureRow
-
getItemId
Description copied from interface:StructureRowReturns item ID for the item shown in this row.- Specified by:
getItemIdin interfaceStructureRow
-
getSemantics
public long getSemantics()Description copied from interface:StructureRowReturns row's semantics.- Specified by:
getSemanticsin interfaceStructureRow
-
getItem
Description copied from interface:StructureRowTries to resolve the item based on its ID, that is, get an object that represents this item. Resolution includes checking the current user's access to that item, unless the row is created with an additional flag indicating that the access check should be skipped.
This method may return
nullin many different cases:- The item does not exist.
- The item is not accessible by the current user.
- The instance of
StructureRowwas created with theItemAccessMode.ITEM_NOT_NEEDEDflag. - The plugin module that is responsible for this type of items is disabled or missing.
- Item's object type is not reducible to
itemClass.
- Specified by:
getItemin interfaceStructureRow- Type Parameters:
I- type of item's objects- Parameters:
itemClass- expected class of the item's object- Returns:
- the item's object, or
null
-