fr.cnes.sitools.form.project.dto
Class FormPropertyParameterDTO

java.lang.Object
  extended by fr.cnes.sitools.form.project.dto.FormPropertyParameterDTO

public class FormPropertyParameterDTO
extends java.lang.Object

Object to store Form property search parameter

Author:
m.gond

Constructor Summary
FormPropertyParameterDTO()
          Default constructor
FormPropertyParameterDTO(java.lang.String name, java.lang.String type)
          Constructor with name of type attributes
 
Method Summary
static java.util.List<FormPropertyParameter> dtoToproperties(java.util.List<FormPropertyParameterDTO> propertiesDTO)
          Wrap List of FormPropertyParameterDTO to List of FormPropertyParameter
 java.lang.String getName()
          Gets the name value
 java.lang.String getType()
          Gets the type value
static java.util.List<FormPropertyParameterDTO> propertiesToDTO(java.util.List<FormPropertyParameter> properties)
          Wrap List of FormPropertyParameter to List of FormPropertyParameterDTO
 void setName(java.lang.String name)
          Sets the value of name
 void setType(java.lang.String type)
          Sets the value of type
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormPropertyParameterDTO

public FormPropertyParameterDTO()
Default constructor


FormPropertyParameterDTO

public FormPropertyParameterDTO(java.lang.String name,
                                java.lang.String type)
Constructor with name of type attributes

Parameters:
name - the name of the property
type - the type of search to perform on that property
Method Detail

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

getType

public java.lang.String getType()
Gets the type value

Returns:
the type

setType

public void setType(java.lang.String type)
Sets the value of type

Parameters:
type - the type to set

propertiesToDTO

public static java.util.List<FormPropertyParameterDTO> propertiesToDTO(java.util.List<FormPropertyParameter> properties)
Wrap List of FormPropertyParameter to List of FormPropertyParameterDTO

Parameters:
properties - the list of objects
Returns:
the list of dtos

dtoToproperties

public static java.util.List<FormPropertyParameter> dtoToproperties(java.util.List<FormPropertyParameterDTO> propertiesDTO)
Wrap List of FormPropertyParameterDTO to List of FormPropertyParameter

Parameters:
propertiesDTO - the list of dtos
Returns:
the list of objects


Copyright © 2010-2013 CNES. All Rights Reserved.