org.xwiki.model.internal.reference
Class DefaultStringEntityReferenceResolver

java.lang.Object
  extended by org.xwiki.model.internal.reference.AbstractStringEntityReferenceResolver
      extended by org.xwiki.model.internal.reference.DefaultStringEntityReferenceResolver
All Implemented Interfaces:
EntityReferenceResolver<java.lang.String>

@Component
@Singleton
public class DefaultStringEntityReferenceResolver
extends AbstractStringEntityReferenceResolver

Generic implementation that resolve EntityReference objects from their string representation. This implementation uses fixed default values when parts of the Reference are missing in the string representation. Default values are retrieved from the ModelConfiguration class.

Since:
2.2M1
Version:
$Id$

Constructor Summary
DefaultStringEntityReferenceResolver()
           
 
Method Summary
protected  java.lang.String getDefaultValue(EntityType type, java.lang.Object... parameters)
          
 
Methods inherited from class org.xwiki.model.internal.reference.AbstractStringEntityReferenceResolver
resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStringEntityReferenceResolver

public DefaultStringEntityReferenceResolver()
Method Detail

getDefaultValue

protected java.lang.String getDefaultValue(EntityType type,
                                           java.lang.Object... parameters)

Specified by:
getDefaultValue in class AbstractStringEntityReferenceResolver
Parameters:
type - the entity type for which to return the default value to use (since the use has not specified it)
parameters - optional parameters. Their meaning depends on the resolver implementation
Returns:
the default value to use
See Also:
AbstractStringEntityReferenceResolver.getDefaultValue(org.xwiki.model.EntityType, java.lang.Object...)


Copyright © 2004-2011 XWiki. All Rights Reserved.