org.xwiki.model.reference
Interface EntityReferenceValueProvider


@Role
public interface EntityReferenceValueProvider

Return default values for specified Entity Reference types. Useful when an Entity Reference value has not been specified and we need to find a default value for it (the default value returned will depend on the implementations, some will return default values defined in the XWiki configuration, others will return values taken from the current document reference, etc).

Since:
2.3M1
Version:
$Id: 3b3103281624ebfccfacf57064047de467938cb9 $

Method Summary
 String getDefaultValue(EntityType type)
           
 

Method Detail

getDefaultValue

String getDefaultValue(EntityType type)
Parameters:
type - the entity reference type for which to get the default value
Returns:
the default value for the passed type


Copyright © 2004–2014 XWiki. All rights reserved.