com.alveole.studio.web.managers.struts2editor
Class ConstantPanelModel

java.lang.Object
  extended by com.alveole.studio.web.managers.struts2editor.ConstantPanelModel

public class ConstantPanelModel
extends java.lang.Object

This is the model associated to constant view.

Author:
sylvain

Field Summary
protected  Struts2BaseFileModel baseModel
          Struts2 base model.
protected  org.w3c.dom.Element constant
          Constant tag.
protected  org.w3c.dom.Element constants
          Constants tag.
protected  java.lang.String constName
          Constant name.
protected  java.lang.String constValue
          Constant value.
 
Constructor Summary
ConstantPanelModel(Struts2BaseFileModel baseModel, org.w3c.dom.Element constants, org.w3c.dom.Element constant)
           
 
Method Summary
 java.lang.String check()
          Check if parameters are correct.
 java.lang.String getConstName()
           
 java.lang.String getConstValue()
           
 org.w3c.dom.Element performOk()
          Performs OK.
 void setConstName(java.lang.String constName)
           
 void setConstValue(java.lang.String constValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

constName

protected java.lang.String constName
Constant name.


constValue

protected java.lang.String constValue
Constant value.


baseModel

protected Struts2BaseFileModel baseModel
Struts2 base model.


constants

protected org.w3c.dom.Element constants
Constants tag.


constant

protected org.w3c.dom.Element constant
Constant tag.

Constructor Detail

ConstantPanelModel

public ConstantPanelModel(Struts2BaseFileModel baseModel,
                          org.w3c.dom.Element constants,
                          org.w3c.dom.Element constant)
Method Detail

check

public java.lang.String check()
Check if parameters are correct.


performOk

public org.w3c.dom.Element performOk()
Performs OK.


getConstName

public java.lang.String getConstName()
Returns:
the constName

setConstName

public void setConstName(java.lang.String constName)
Parameters:
constName - the constName to set

getConstValue

public java.lang.String getConstValue()
Returns:
the constValue

setConstValue

public void setConstValue(java.lang.String constValue)
Parameters:
constValue - the constValue to set