org.xwiki.model.internal.reference
Class ExplicitStringAttachmentReferenceResolver

java.lang.Object
  extended by org.xwiki.model.internal.reference.ExplicitStringAttachmentReferenceResolver
All Implemented Interfaces:
AttachmentReferenceResolver<String>

@Component
@Named(value="explicit")
@Singleton
public class ExplicitStringAttachmentReferenceResolver
extends Object
implements AttachmentReferenceResolver<String>

Specialized version of EntityReferenceResolver which can be considered a helper component to resolve AttachmentReference objects from their string representation. The behavior is the one defined in ExplicitStringEntityReferenceResolver.

Since:
3.0M1

Field Summary
 
Fields inherited from interface org.xwiki.model.reference.AttachmentReferenceResolver
TYPE_REFERENCE, TYPE_STRING
 
Constructor Summary
ExplicitStringAttachmentReferenceResolver()
           
 
Method Summary
 AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExplicitStringAttachmentReferenceResolver

public ExplicitStringAttachmentReferenceResolver()
Method Detail

resolve

public AttachmentReference resolve(String attachmentReferenceRepresentation,
                                   Object... parameters)
Specified by:
resolve in interface AttachmentReferenceResolver<String>
Parameters:
attachmentReferenceRepresentation - the representation of an attachment reference (eg as a String)
parameters - optional parameters. Their meaning depends on the resolver implementation
Returns:
the valid resolved attachment reference as an Object