@Internal public final class ShallowRow extends Object implements StructureRow
StructureRow.ZeroRow
ROW_ZERO
Constructor and Description |
---|
ShallowRow(long rowId,
ItemIdentity itemId,
long semantics) |
Modifier and Type | Method and Description |
---|---|
<I> I |
getItem(Class<I> itemClass)
Tries to resolve the item based on its ID, that is, get an object that represents this item.
|
ItemIdentity |
getItemId()
Returns item ID for the item shown in this row.
|
long |
getRowId()
Returns row ID, a positive number.
|
long |
getSemantics()
Returns row's semantics.
|
String |
toString() |
public ShallowRow(long rowId, @NotNull ItemIdentity itemId, long semantics)
public long getRowId()
StructureRow
getRowId
in interface StructureRow
@NotNull public ItemIdentity getItemId()
StructureRow
getItemId
in interface StructureRow
public long getSemantics()
StructureRow
getSemantics
in interface StructureRow
@Nullable public <I> I getItem(@NotNull Class<I> itemClass)
StructureRow
Tries 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 null
in many different cases:
StructureRow
was created with the ItemAccessMode.ITEM_NOT_NEEDED
flag.itemClass
.getItem
in interface StructureRow
I
- type of item's objectsitemClass
- expected class of the item's objectnull
Copyright © 2024 Tempo Software. All Rights Reserved.