Package org.ametys.cms.transformation
Class LocalURIResolver.URIInfo
- java.lang.Object
-
- org.ametys.cms.transformation.LocalURIResolver.URIInfo
-
- Enclosing class:
- LocalURIResolver
protected static class LocalURIResolver.URIInfo extends Object
Helper class containg all infos parsed from URI.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedURIInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAttribute()Returns the metadata.ContentgetContent()Returns the resolved content, if any.StringgetContentId()Returns the content id.StringgetContentVersion()Returns the content version, if any.StringgetFilename()Returns the resource name.voidsetAttribute(String attribute)Set the metadata.voidsetContent(Content content)Set the content.voidsetContentId(String contentId)Set the content id.voidsetContentVersion(String contentVersion)Set the content version.voidsetFilename(String name)Set the resource name.
-
-
-
Constructor Detail
-
URIInfo
protected URIInfo()
-
-
Method Detail
-
getContentId
public String getContentId()
Returns the content id.- Returns:
- the content id.
-
setContentId
public void setContentId(String contentId)
Set the content id.- Parameters:
contentId- the content id.
-
getAttribute
public String getAttribute()
Returns the metadata.- Returns:
- the metadata.
-
setAttribute
public void setAttribute(String attribute)
Set the metadata.- Parameters:
attribute- the metadata.
-
getFilename
public String getFilename()
Returns the resource name.- Returns:
- the name
-
setFilename
public void setFilename(String name)
Set the resource name.- Parameters:
name- the name.
-
getContentVersion
public String getContentVersion()
Returns the content version, if any.- Returns:
- the content version.
-
setContentVersion
public void setContentVersion(String contentVersion)
Set the content version.- Parameters:
contentVersion- the content version.
-
getContent
public Content getContent()
Returns the resolved content, if any.- Returns:
- the content.
-
setContent
public void setContent(Content content)
Set the content.- Parameters:
content- the content.
-
-