Package io.dialob.executor.model
Class ItemState
- java.lang.Object
-
- io.dialob.executor.model.ItemState
-
- All Implemented Interfaces:
SessionObject,Serializable
public class ItemState extends Object implements SessionObject
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classItemState.StatusclassItemState.UpdateBuilder
-
Constructor Summary
Constructors Constructor Description ItemState(ItemId id, ItemId prototypeId, String type, String view, boolean displayItem, String valueSetId, Object answer, Object value, Object defaultValue, ItemId activePage)ItemState(ItemId id, ItemId prototypeId, String type, String view, String valueSetId)ItemState(ItemState itemState)
-
Method Summary
-
-
-
Constructor Detail
-
ItemState
public ItemState(@Nonnull ItemId id, ItemId prototypeId, @Nonnull String type, String view, String valueSetId)
-
ItemState
public ItemState(@Nonnull ItemId id, ItemId prototypeId, @Nonnull String type, String view, boolean displayItem, String valueSetId, Object answer, Object value, Object defaultValue, ItemId activePage)
-
ItemState
public ItemState(@Nonnull ItemState itemState)
-
-
Method Detail
-
setBits
protected void setBits(boolean toValue, int bit)
-
setBits
protected void setBits(int bit)
-
resetBits
protected void resetBits(int bit)
-
isBit
protected boolean isBit(int bit)
-
readFrom
public static ItemState readFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Throws:
IOException
-
getId
@Nonnull public ItemId getId()
- Specified by:
getIdin interfaceSessionObject
-
getPrototypeId
@Nullable public ItemId getPrototypeId()
-
getType
@Nonnull public String getType()
-
getView
@Nullable public String getView()
-
isDisplayItem
public boolean isDisplayItem()
- Specified by:
isDisplayItemin interfaceSessionObject
-
getStatus
public ItemState.Status getStatus()
-
getAnswer
public Object getAnswer()
-
getValue
public Object getValue()
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceSessionObject
-
isAnswered
public boolean isAnswered()
-
isBlank
public boolean isBlank()
-
isNull
public boolean isNull()
-
isInvalidAnswers
public boolean isInvalidAnswers()
-
isInvalid
public boolean isInvalid()
-
isDisabled
public boolean isDisabled()
- Specified by:
isDisabledin interfaceSessionObject
-
isRequired
public boolean isRequired()
-
isRowsCanBeAdded
public boolean isRowsCanBeAdded()
-
isRowsCanBeRemoved
public boolean isRowsCanBeRemoved()
-
hasCustomProps
public boolean hasCustomProps()
-
getLabel
public String getLabel()
-
getDescription
public String getDescription()
-
getAllowedActions
public Set<io.dialob.api.proto.Action.Type> getAllowedActions()
-
update
public ItemState.UpdateBuilder update()
-
-