Package org.xwiki.model.reference
Class AttachmentReferenceConverter
- java.lang.Object
-
- org.xwiki.properties.converter.AbstractConverter<AttachmentReference>
-
- org.xwiki.model.reference.AttachmentReferenceConverter
-
- All Implemented Interfaces:
org.xwiki.properties.converter.Converter<AttachmentReference>
@Component @Singleton public class AttachmentReferenceConverter extends org.xwiki.properties.converter.AbstractConverter<AttachmentReference>
Converter that converts a value into aAttachmentReference
object. Relative references are resolved using "current"DocumentReferenceResolver
.- Since:
- 11.6RC1, 10.11.9, 11.3.2
- Version:
- $Id: 28d77da2cafb4c08127c1103c40e6c733f72886a $
-
-
Constructor Summary
Constructors Constructor Description AttachmentReferenceConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
convertToString(AttachmentReference value)
protected AttachmentReference
convertToType(Type type, Object value)
-
-
-
Method Detail
-
convertToType
protected AttachmentReference convertToType(Type type, Object value)
- Overrides:
convertToType
in classorg.xwiki.properties.converter.AbstractConverter<AttachmentReference>
-
convertToString
protected String convertToString(AttachmentReference value)
- Overrides:
convertToString
in classorg.xwiki.properties.converter.AbstractConverter<AttachmentReference>
-
-