fr.cnes.sitools.form.dataset.dto
Class FormDTO

java.lang.Object
  extended by fr.cnes.sitools.form.dataset.dto.FormDTO
Direct Known Subclasses:
FormProjectAdminDTO, FormProjectDTO

public class FormDTO
extends java.lang.Object

FormDTO class to store Form definition

Author:
d.arpin (AKKA Technologies)

Constructor Summary
FormDTO()
          Constructor
 
Method Summary
static Form dtoToForm(FormDTO dto)
          Transform a DTO to a form
static java.util.List<Zone> dtoToZones(java.util.List<ZoneDTO> dtos)
          dtoToZones
static FormDTO formToDTO(Form form)
          Transform a form to a DTO
 java.lang.String getAuthorized()
          Gets the authorized value
 java.lang.String getCss()
          Get the CSS of a form
 java.lang.String getDescription()
          Gets the description value
 int getHeight()
          Returns the height of the form
 java.lang.String getId()
          Gets the id value
 java.lang.String getName()
          Gets the name value
 java.util.List<ParameterDTO> getParameters()
          Gets the parametersDTO value
 java.lang.String getParent()
          Gets the parent value
 java.lang.String getParentUrl()
          Gets the parentUrl value
 int getWidth()
          Get the width of the form
 java.util.List<ZoneDTO> getZones()
          Gets the zones value
 void setAuthorized(java.lang.String authorized)
          Sets the value of authorized
 void setCss(java.lang.String css)
          Set the CSS of a form
 void setDescription(java.lang.String description)
          Sets the value of description
 void setHeight(int height)
          Set the height of the form
 void setId(java.lang.String id)
          Sets the value of id
 void setName(java.lang.String name)
          Sets the value of name
 void setParameters(java.util.List<ParameterDTO> parameters)
          Sets the value of parametersDTO
 void setParent(java.lang.String parent)
          Sets the value of parent
 void setParentUrl(java.lang.String parentUrl)
          Sets the value of parentUrl
 void setWidth(int width)
          Set the width
 void setZones(java.util.List<ZoneDTO> zones)
          Sets the value of zones
static java.util.List<ZoneDTO> zonesToDTO(java.util.List<Zone> zones)
          Convert a list of Zone to a ZoneDTO
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormDTO

public FormDTO()
Constructor

Method Detail

getId

public java.lang.String getId()
Gets the id value

Returns:
the id

setId

public void setId(java.lang.String id)
Sets the value of id

Parameters:
id - the id to set

getParent

public java.lang.String getParent()
Gets the parent value

Returns:
the parent

setParent

public void setParent(java.lang.String parent)
Sets the value of parent

Parameters:
parent - the parent to set

getName

public java.lang.String getName()
Gets the name value

Returns:
the name

setName

public void setName(java.lang.String name)
Sets the value of name

Parameters:
name - the name to set

getDescription

public java.lang.String getDescription()
Gets the description value

Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Sets the value of description

Parameters:
description - the description to set

getParameters

public java.util.List<ParameterDTO> getParameters()
Gets the parametersDTO value

Returns:
the parametersDTO

getWidth

public int getWidth()
Get the width of the form

Returns:
the width

setWidth

public void setWidth(int width)
Set the width

Parameters:
width - the width to set

getHeight

public int getHeight()
Returns the height of the form

Returns:
the height

setHeight

public void setHeight(int height)
Set the height of the form

Parameters:
height - the height to set

setParameters

public void setParameters(java.util.List<ParameterDTO> parameters)
Sets the value of parametersDTO

Parameters:
parameters - the parametersDTO to set

getCss

public java.lang.String getCss()
Get the CSS of a form

Returns:
the CSS

setCss

public void setCss(java.lang.String css)
Set the CSS of a form

Parameters:
css - the CSS to set

formToDTO

public static FormDTO formToDTO(Form form)
Transform a form to a DTO

Parameters:
form - the form to transform
Returns:
the DTO corresponding to the form

dtoToForm

public static Form dtoToForm(FormDTO dto)
Transform a DTO to a form

Parameters:
dto - the DTO to transform
Returns:
a form corresponding to the DTO

setAuthorized

public void setAuthorized(java.lang.String authorized)
Sets the value of authorized

Parameters:
authorized - the authorized to set

getAuthorized

public java.lang.String getAuthorized()
Gets the authorized value

Returns:
the authorized

setParentUrl

public void setParentUrl(java.lang.String parentUrl)
Sets the value of parentUrl

Parameters:
parentUrl - the parentUrl to set

getParentUrl

public java.lang.String getParentUrl()
Gets the parentUrl value

Returns:
the parentUrl

getZones

public java.util.List<ZoneDTO> getZones()
Gets the zones value

Returns:
the zones

setZones

public void setZones(java.util.List<ZoneDTO> zones)
Sets the value of zones

Parameters:
zones - the zones to set

zonesToDTO

public static java.util.List<ZoneDTO> zonesToDTO(java.util.List<Zone> zones)
Convert a list of Zone to a ZoneDTO

Parameters:
zones - a list of zones
Returns:
ZoneDTO

dtoToZones

public static java.util.List<Zone> dtoToZones(java.util.List<ZoneDTO> dtos)
dtoToZones

Parameters:
dtos - the list of ZoneDTO
Returns:
the list of Zone from the zoneDTO


Copyright © 2010-2013 CNES. All Rights Reserved.