Interface PageState
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultPageState
Page State runtime abstraction, which is part of a
PageFlow
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllErrors
(Map<String, Errors> errorsMap) void
Clear all the application specificErrors
in thisPageState
.boolean
Compares the specified object with thisPageState
for equality.getId()
Return the identifier of thisPageState
.int
getIndex()
Return the internal index, which is the same as definition order in the backend, of thePageState
.Return an unmodifiable metadata map of thePageState
.getName()
Return the (human readable) name of thisPageState
.getPath()
Return the logical path info of thePageState
.int
hashCode()
Returns the hash code value for thisPageState
.boolean
Return true if there's no application error at runtime in thisPageState
.removeErrors
(String name)
-
Method Details
-
getId
String getId()Return the identifier of thisPageState
.- Returns:
- the identifier of this
PageState
-
getName
String getName()Return the (human readable) name of thisPageState
.- Returns:
- the (human readable) name of this
PageState
-
getPath
String getPath()Return the logical path info of thePageState
.This
path
info must be translated into a physical URI or client-side route information by an application. In the definition level, thispath
info doesn't imply any physical translations by itself.- Returns:
- the logical path info of the
PageState
-
getIndex
int getIndex()Return the internal index, which is the same as definition order in the backend, of thePageState
.- Returns:
- the internal index, which is the same as definition order in the backend, of the
PageState
-
getMetadata
Return an unmodifiable metadata map of thePageState
.- Returns:
- an unmodifiable metadata map of the
PageState
-
isErrorsEmpty
boolean isErrorsEmpty()Return true if there's no application error at runtime in thisPageState
.The application errors can be added, retrieved and removed by applications for an easier application development.
- Returns:
- true if there's no application error at runtime in this
PageState
-
addErrors
Add an application specificErrors
by thename
to thisPageState
.The
name
can be used by applications to distinguish the sources of errors. e.g, field name. -
addAllErrors
-
removeErrors
Remove the application specificErrors
by thename
from thisPageState
.The
name
can be used by applications to distinguish the sources of errors. e.g, field name.- Parameters:
name
- application specific source name of the errors.- Returns:
- the previous
Errors
value associated withname
, or null if there was no mapping for thename
-
getErrorsMap
-
clearAllErrors
void clearAllErrors()Clear all the application specificErrors
in thisPageState
. -
equals
Compares the specified object with thisPageState
for equality. -
hashCode
int hashCode()Returns the hash code value for thisPageState
.
-