com.silverpeas.wysiwyg.dynamicvalue.model
Class DynamicValue

java.lang.Object
  extended by com.silverpeas.wysiwyg.dynamicvalue.model.DynamicValue
All Implemented Interfaces:
Serializable

public class DynamicValue
extends Object
implements Serializable

class used to store data information used by the dynamic value functionality

See Also:
Serialized Form

Constructor Summary
DynamicValue()
          default constructor
DynamicValue(String key, String value, Date startDate, Date endDate)
          full constructor
 
Method Summary
 Date getEnDate()
           
 String getKey()
           
 Date getStartDate()
           
 String getValue()
           
 void setEnDate(Date enDate)
           
 void setKey(String key)
          sets the key
 void setStartDate(Date startDate)
           
 void setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicValue

public DynamicValue()
default constructor


DynamicValue

public DynamicValue(String key,
                    String value,
                    Date startDate,
                    Date endDate)
full constructor

Parameters:
key - the key is used in HTML code as follows : "(%%)".
value - the value relating to a key this value replace the key when user read the content
startDate - the start date of key validity
endDate - the end date of key validity
Method Detail

getKey

public String getKey()
Returns:
the key

setKey

public void setKey(String key)
sets the key

Parameters:
key - the key to set

getValue

public String getValue()
Returns:
the value

setValue

public void setValue(String value)
Parameters:
value - the value to set

getStartDate

public Date getStartDate()
Returns:
the startDate

setStartDate

public void setStartDate(Date startDate)
Parameters:
startDate - the startDate to set

getEnDate

public Date getEnDate()
Returns:
the enDate

setEnDate

public void setEnDate(Date enDate)
Parameters:
enDate - the enDate to set


Copyright © 2016 Silverpeas. All Rights Reserved.