org.silverpeas.contribution.web
Class FormFieldValueEntity

java.lang.Object
  extended by org.silverpeas.contribution.web.FormFieldValueEntity

public class FormFieldValueEntity
extends Object

Author:
Yohann Chastagnier

Constructor Summary
protected FormFieldValueEntity()
           
 
Method Summary
static FormFieldValueEntity createFrom(String id, String displayedValue)
          Creates a new form field value entity from the specified form field value data
protected  String getDisplayedValue()
           
protected  String getId()
           
 FormFieldValueEntity withAttachmentURI(URI attachmentUri)
          Sets an attachment URI to this entity.
 FormFieldValueEntity withLink(String link)
          Sets a link to this entity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormFieldValueEntity

protected FormFieldValueEntity()
Method Detail

withLink

public FormFieldValueEntity withLink(String link)
Sets a link to this entity.

Parameters:
link - the link.
Returns:
itself.

withAttachmentURI

public FormFieldValueEntity withAttachmentURI(URI attachmentUri)
Sets an attachment URI to this entity.

Parameters:
attachmentUri - the web attachment entity URI.
Returns:
itself.

createFrom

public static FormFieldValueEntity createFrom(String id,
                                              String displayedValue)
Creates a new form field value entity from the specified form field value data

Parameters:
id -
displayedValue -
Returns:
the entity representing the specified form field value data.

getId

protected String getId()

getDisplayedValue

protected String getDisplayedValue()


Copyright © 2016 Silverpeas. All Rights Reserved.