org.jasig.portal.channel.dao.jpa
Class ChannelParameterImpl

java.lang.Object
  extended by org.jasig.portal.channel.dao.jpa.ChannelParameterImpl
All Implemented Interfaces:
Serializable, IChannelParameter

public class ChannelParameterImpl
extends Object
implements IChannelParameter, Serializable

JPA implementation of the IChanenlParameter interface.

Author:
Jen Bourey, jennifer.bourey@gmail.com
See Also:
Serialized Form

Constructor Summary
ChannelParameterImpl()
          Default constructor required by Hibernate
ChannelParameterImpl(IChannelParameter param)
          Construct a new ChannelParameterImpl from an IChannelParameter
ChannelParameterImpl(String name, String value, boolean override)
          Instantiate a ChannelParameter with a particular name, default value, and indication of whether it can be overridden.
 
Method Summary
 boolean equals(Object object)
           
 String getDescription()
          Get a description of this channel parameter.
 String getName()
          Get the name of the channel parameter.
 boolean getOverride()
          Get whether the value of this channel parameter may be overridden.
 String getValue()
          Get the default value of the channel parameter.
 int hashCode()
           
 void setDescription(String descr)
          Set the description of this channel parameter.
 void setName(String name)
          Set the name of the channel parameter.
 void setOverride(boolean override)
          Set whether this channel parameter may be overridden.
 void setValue(String value)
          Set the default value for this channel parameter.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChannelParameterImpl

public ChannelParameterImpl()
Default constructor required by Hibernate


ChannelParameterImpl

public ChannelParameterImpl(String name,
                            String value,
                            boolean override)
Instantiate a ChannelParameter with a particular name, default value, and indication of whether it can be overridden.

Parameters:
name - name of the channel parameter.
value - default value for the parameter.
override - true if the default value may be overridden.

ChannelParameterImpl

public ChannelParameterImpl(IChannelParameter param)
Construct a new ChannelParameterImpl from an IChannelParameter

Parameters:
param -
Method Detail

getName

public String getName()
Description copied from interface: IChannelParameter
Get the name of the channel parameter.

Specified by:
getName in interface IChannelParameter
Returns:
the name of the channel parameter.

getValue

public String getValue()
Description copied from interface: IChannelParameter
Get the default value of the channel parameter.

Specified by:
getValue in interface IChannelParameter
Returns:
the default value for this channel parameter.

getOverride

public boolean getOverride()
Description copied from interface: IChannelParameter
Get whether the value of this channel parameter may be overridden.

Specified by:
getOverride in interface IChannelParameter
Returns:
true if value may be overridden, false otherwise.

getDescription

public String getDescription()
Description copied from interface: IChannelParameter
Get a description of this channel parameter.

Specified by:
getDescription in interface IChannelParameter
Returns:
a description of this channel parameter.

setName

public void setName(String name)
Description copied from interface: IChannelParameter
Set the name of the channel parameter.

Specified by:
setName in interface IChannelParameter
Parameters:
name - the name of the channel parameter

setValue

public void setValue(String value)
Description copied from interface: IChannelParameter
Set the default value for this channel parameter.

Specified by:
setValue in interface IChannelParameter
Parameters:
value - the default value for this channel parameter.

setOverride

public void setOverride(boolean override)
Description copied from interface: IChannelParameter
Set whether this channel parameter may be overridden.

Specified by:
setOverride in interface IChannelParameter
Parameters:
override - true if the channel parameter may be overridden.

setDescription

public void setDescription(String descr)
Description copied from interface: IChannelParameter
Set the description of this channel parameter.

Specified by:
setDescription in interface IChannelParameter
Parameters:
descr - description of this channel parameter.

equals

public boolean equals(Object object)
Overrides:
equals in class Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 Jasig. All Rights Reserved.