org.kuali.rice.krms.dto
Class PropositionParameterEditor

java.lang.Object
  extended by org.kuali.rice.krms.dto.PropositionParameterEditor
All Implemented Interfaces:
Serializable, Identifiable, Versioned, PropositionParameterContract

public class PropositionParameterEditor
extends Object
implements PropositionParameterContract, Serializable

Created with IntelliJ IDEA. User: SW Date: 2013/02/15 Time: 10:29 AM To change this template use File | Settings | File Templates.

See Also:
Serialized Form

Constructor Summary
PropositionParameterEditor()
           
PropositionParameterEditor(PropositionParameterContract definition)
          Converts a immutable object to it's mutable bo counterpart
PropositionParameterEditor(String parameterType, Integer sequenceNumber)
           
 
Method Summary
 String getId()
           
 String getParameterType()
          Returns the type of the parameter.
 String getPropId()
          Returns the Id for the parent proposition.
 Integer getSequenceNumber()
          Returns the sequence number of the proposition parameter.
 TermDefinition getTermValue()
          Returns the term value of the proposition parameter if the proposition parameter is a term.
 String getValue()
          Returns the value of the proposition parameter
 Long getVersionNumber()
           
 void setId(String id)
           
 void setParameterType(String parameterType)
           
 void setPropId(String propId)
           
 void setSequenceNumber(Integer sequenceNumber)
           
 void setTermValue(TermDefinition termValue)
           
 void setValue(String value)
           
 void setVersionNumber(Long versionNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropositionParameterEditor

public PropositionParameterEditor()

PropositionParameterEditor

public PropositionParameterEditor(String parameterType,
                                  Integer sequenceNumber)

PropositionParameterEditor

public PropositionParameterEditor(PropositionParameterContract definition)
Converts a immutable object to it's mutable bo counterpart

Parameters:
definition - immutable object
Method Detail

setId

public void setId(String id)

getId

public String getId()
Specified by:
getId in interface Identifiable

setPropId

public void setPropId(String propId)

getPropId

public String getPropId()
Description copied from interface: PropositionParameterContract
Returns the Id for the parent proposition.

It is the Id of the parent proposition.

Specified by:
getPropId in interface PropositionParameterContract
Returns:
Id for parent parameter.

setValue

public void setValue(String value)

getValue

public String getValue()
Description copied from interface: PropositionParameterContract
Returns the value of the proposition parameter

It is the value of the parameter

Specified by:
getValue in interface PropositionParameterContract
Returns:
value of the parameter

setTermValue

public void setTermValue(TermDefinition termValue)

getTermValue

public TermDefinition getTermValue()
Description copied from interface: PropositionParameterContract
Returns the term value of the proposition parameter if the proposition parameter is a term.

It is the term value of the parameter

Specified by:
getTermValue in interface PropositionParameterContract
Returns:
value of the term parameter

setParameterType

public void setParameterType(String parameterType)

getParameterType

public String getParameterType()
Description copied from interface: PropositionParameterContract
Returns the type of the parameter. Proposition parameters are one of the following types: Constant Values: numbers, strings, dates, etc. Terms: data available in the execution environment or provided by a term resolver Functions: custom functions that resolve to a value, or standard operators (equals, greater than, less than, ...)

It identified the type of the parameter.

Specified by:
getParameterType in interface PropositionParameterContract
Returns:
the parameter type code. Valid values are C, T, and F.

setSequenceNumber

public void setSequenceNumber(Integer sequenceNumber)

getSequenceNumber

public Integer getSequenceNumber()
Description copied from interface: PropositionParameterContract
Returns the sequence number of the proposition parameter. Proposition parameters are listed in Reverse Polish Notation. The sequence number (starting with 1) identifies the position of the parameter in the list.

Specified by:
getSequenceNumber in interface PropositionParameterContract
Returns:
the sequence number of the proposition parameter

getVersionNumber

public Long getVersionNumber()
Specified by:
getVersionNumber in interface Versioned

setVersionNumber

public void setVersionNumber(Long versionNumber)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.