@Internal public final class SimpleRow extends Object implements StructureRow
StructureRow.ZeroRowROW_ZERO| Constructor and Description |
|---|
SimpleRow(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver) |
| 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 SimpleRow(long rowId,
ItemIdentity itemId,
long semantics,
ItemResolver resolver)
public long getRowId()
StructureRowgetRowId in interface StructureRow@Nullable
public <I> I getItem(@NotNull
Class<I> itemClass)
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.
This method may return null in many different cases:
itemClass.getItem in interface StructureRowI - type of item's objectsitemClass - expected class of the item's objectnull@NotNull public ItemIdentity getItemId()
StructureRowgetItemId in interface StructureRowpublic long getSemantics()
StructureRowgetSemantics in interface StructureRowCopyright © 2019 ALM Works. All Rights Reserved.