Package org.knime.core.webui.node
Record Class PagePathSegments
java.lang.Object
java.lang.Record
org.knime.core.webui.node.PagePathSegments
- Record Components:
pathPrefix- the path prefix more or less encoding the ui-extension type (view, dialog etc.) - seePageResourceManager.getPagePathPrefix(org.knime.core.webui.node.PageResourceManager.PageType)pageId- the page-id which is essentially tied to aPage-instance. As a result it is build differently depending on whether the page is static, 'static-reusable' or non-static (seePageCache.PageIdType) - because these page-instances have different life cycles (e.g. there will be only one single instance of a 'static-reusable' page across different node instances and ui-extension-types)pageContentId- a optional path segment (i.e. can benull) reflecting the content of the pagerelativePagePath- the relative path to the actual page(-resource)
public record PagePathSegments(String pathPrefix, String pageId, String pageContentId, String relativePagePath)
extends Record
The path segments that contribute to a page path as it's returned by
PageResourceManager.getPagePath(NodeWrapper).- Author:
- Martin Horn, KNIME GmbH, Konstanz, Germany
-
Constructor Summary
ConstructorsConstructorDescriptionPagePathSegments(String pathPrefix, String pageId, String pageContentId, String relativePagePath) Creates an instance of aPagePathSegmentsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepageContentIdrecord component.pageId()Returns the value of thepageIdrecord component.Returns the value of thepathPrefixrecord component.Returns the value of therelativePagePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PagePathSegments
public PagePathSegments(String pathPrefix, String pageId, String pageContentId, String relativePagePath) Creates an instance of aPagePathSegmentsrecord class.- Parameters:
pathPrefix- the value for thepathPrefixrecord componentpageId- the value for thepageIdrecord componentpageContentId- the value for thepageContentIdrecord componentrelativePagePath- the value for therelativePagePathrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
pathPrefix
Returns the value of thepathPrefixrecord component.- Returns:
- the value of the
pathPrefixrecord component
-
pageId
Returns the value of thepageIdrecord component.- Returns:
- the value of the
pageIdrecord component
-
pageContentId
Returns the value of thepageContentIdrecord component.- Returns:
- the value of the
pageContentIdrecord component
-
relativePagePath
Returns the value of therelativePagePathrecord component.- Returns:
- the value of the
relativePagePathrecord component
-