Class ItemState
java.lang.Object
io.dialob.session.engine.session.model.ItemState
- All Implemented Interfaces:
SessionObject,Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getItems()getType()getValue()getView()booleanbooleanisActive()booleanprotected booleanisBit(int bit) booleanisBlank()booleanbooleanbooleanbooleanbooleanisNull()booleanbooleanbooleanstatic ItemStatereadFrom(com.google.protobuf.CodedInputStream input) protected voidresetBits(int bit) protected voidsetBits(boolean toValue, int bit) protected voidsetBits(int bit) update()voidwriteTo(com.google.protobuf.CodedOutputStream output)
-
Constructor Details
-
ItemState
-
ItemState
-
-
Method Details
-
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
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
getId
- Specified by:
getIdin interfaceSessionObject
-
getPrototypeId
-
getType
-
getView
-
isDisplayItem
public boolean isDisplayItem()- Specified by:
isDisplayItemin interfaceSessionObject- Returns:
- true if item is not variable or something similar that will not be shown to user.
-
getValueSetId
-
getValue
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceSessionObject- Returns:
- true when item is relevant to questionnaire.
-
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- Returns:
- true if item should not be shown to user
-
isRequired
public boolean isRequired() -
isRowsCanBeAdded
public boolean isRowsCanBeAdded() -
isRowCanBeRemoved
public boolean isRowCanBeRemoved() -
hasCustomProps
public boolean hasCustomProps() -
getItems
-
getActivePage
-
withId
-
update
-