org.squashtest.tm.domain.denormalizedfield
Class DenormalizedFieldValue

java.lang.Object
  extended by org.squashtest.tm.domain.denormalizedfield.DenormalizedFieldValue

@Entity
public class DenormalizedFieldValue
extends Object


Constructor Summary
protected DenormalizedFieldValue()
          For ORM purposes.
  DenormalizedFieldValue(CustomFieldValue customFieldValue, int newBindingPosition, Long denormalizedFieldHolderId, DenormalizedFieldHolderType denormalizedFieldHolderType)
          Will create a DenormalizedFieldValue with the value param.
  DenormalizedFieldValue(CustomFieldValue customFieldValue, Long denormalizedFieldHolderId, DenormalizedFieldHolderType denormalizedFieldHolderType)
          Copies the attributes of the given customFieldValue and it's associated customField and customFieldBinding
  DenormalizedFieldValue(String value, CustomFieldBinding binding, Long denormalizedFieldHolderId, DenormalizedFieldHolderType denormalizedFieldHolderType)
          Create DenormalizedFieldValue with value param.
 
Method Summary
 String getCode()
           
 CustomFieldValue getCustomFieldValue()
           
 Long getDenormalizedFieldHolderId()
           
 DenormalizedFieldHolderType getDenormalizedFieldHolderType()
           
 Long getId()
           
 InputType getInputType()
           
 String getLabel()
           
 int getPosition()
           
 Set<RenderingLocation> getRenderingLocations()
           
 String getValue()
           
 Date getValueAsDate()
          Return the value as a Date or null if the input type is not Date-picker and if the parsing can't be done.
 void setRenderingLocations(Set<RenderingLocation> renderingLocations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DenormalizedFieldValue

protected DenormalizedFieldValue()
For ORM purposes.


DenormalizedFieldValue

public DenormalizedFieldValue(CustomFieldValue customFieldValue,
                              Long denormalizedFieldHolderId,
                              DenormalizedFieldHolderType denormalizedFieldHolderType)
Copies the attributes of the given customFieldValue and it's associated customField and customFieldBinding

Parameters:
customFieldValue - : must be bound to it's customField
denormalizedFieldHolderId -
denormalizedFieldHolderType -

DenormalizedFieldValue

public DenormalizedFieldValue(String value,
                              CustomFieldBinding binding,
                              Long denormalizedFieldHolderId,
                              DenormalizedFieldHolderType denormalizedFieldHolderType)
Create DenormalizedFieldValue with value param. All positions params are copied from the given binding.

Parameters:
value -
binding -
denormalizedFieldHolderId -
denormalizedFieldHolderType -

DenormalizedFieldValue

public DenormalizedFieldValue(CustomFieldValue customFieldValue,
                              int newBindingPosition,
                              Long denormalizedFieldHolderId,
                              DenormalizedFieldHolderType denormalizedFieldHolderType)
Will create a DenormalizedFieldValue with the value param. The position will be valorized with the given param. No rendering location is added.

Parameters:
customFieldValue -
newBindingPosition -
denormalizedFieldHolderId -
denormalizedFieldHolderType -
Method Detail

getId

public Long getId()

getCustomFieldValue

public CustomFieldValue getCustomFieldValue()

getCode

public String getCode()

getDenormalizedFieldHolderId

public Long getDenormalizedFieldHolderId()

getDenormalizedFieldHolderType

public DenormalizedFieldHolderType getDenormalizedFieldHolderType()

getInputType

public InputType getInputType()

getLabel

public String getLabel()

getPosition

public int getPosition()

getValue

public String getValue()

getValueAsDate

public Date getValueAsDate()
Return the value as a Date or null if the input type is not Date-picker and if the parsing can't be done.

Returns:
a Date or null in case of ParseException and wrong input-type

getRenderingLocations

public Set<RenderingLocation> getRenderingLocations()

setRenderingLocations

public void setRenderingLocations(Set<RenderingLocation> renderingLocations)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.