Class ViewTemplateDescriptorRegistry
java.lang.Object
io.jmix.flowui.view.template.impl.ViewTemplateDescriptorRegistry
@Component("flowui_ViewTemplateDescriptorRegistry")
public class ViewTemplateDescriptorRegistry
extends Object
Stores XML descriptors rendered for template-generated views.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix used for synthetic descriptor paths stored in this registry. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePath(String viewId) Creates a synthetic descriptor path for the given view id.getDescriptor(String path) Returns a rendered descriptor by its synthetic path.booleanisTemplatePath(String path) Checks whether the given path belongs to this registry.voidStores a rendered descriptor under the given synthetic path.booleanRemoves a descriptor previously stored under the given synthetic path.
-
Field Details
-
PATH_PREFIX
Prefix used for synthetic descriptor paths stored in this registry.- See Also:
-
descriptors
-
-
Constructor Details
-
ViewTemplateDescriptorRegistry
public ViewTemplateDescriptorRegistry()
-
-
Method Details
-
createPath
Creates a synthetic descriptor path for the given view id.- Parameters:
viewId- generated view id- Returns:
- synthetic descriptor path
-
put
Stores a rendered descriptor under the given synthetic path.- Parameters:
path- synthetic descriptor pathdescriptor- rendered XML descriptor
-
remove
Removes a descriptor previously stored under the given synthetic path.- Parameters:
path- synthetic descriptor path- Returns:
trueif a descriptor was stored under the path
-
getDescriptor
Returns a rendered descriptor by its synthetic path.- Parameters:
path- synthetic descriptor path- Returns:
- descriptor if present
-
isTemplatePath
Checks whether the given path belongs to this registry.- Parameters:
path- descriptor path- Returns:
trueif the path usesPATH_PREFIX
-