Package org.ametys.cms.transformation
Class LocalURIResolver.URIInfo
java.lang.Object
org.ametys.cms.transformation.LocalURIResolver.URIInfo
- Enclosing class:
- LocalURIResolver
Helper class containg all infos parsed from URI.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the attribute.Returns the resolved content, if any.Returns the content id.Returns the content version, if any.Returns the resource name.void
setAttribute
(String attribute) Set the attribute.void
setContent
(Content content) Set the content.void
setContentId
(String contentId) Set the content id.void
setContentVersion
(Optional<String> contentVersion) Set the content version.void
setFilename
(String name) Set the resource name.
-
Constructor Details
-
URIInfo
protected URIInfo()
-
-
Method Details
-
getContentId
Returns the content id.- Returns:
- the content id.
-
setContentId
Set the content id.- Parameters:
contentId
- the content id.
-
getAttribute
Returns the attribute.- Returns:
- the attribute.
-
setAttribute
Set the attribute.- Parameters:
attribute
- the attribute.
-
getFilename
Returns the resource name.- Returns:
- the name
-
setFilename
Set the resource name.- Parameters:
name
- the name.
-
getContentVersion
Returns the content version, if any.- Returns:
- the content version.
-
setContentVersion
Set the content version.- Parameters:
contentVersion
- the content version.
-
getContent
Returns the resolved content, if any.- Returns:
- the content.
-
setContent
Set the content.- Parameters:
content
- the content.
-