org.apache.pluto.internal.impl
Class PortletPreferenceImpl

java.lang.Object
  extended by org.apache.pluto.internal.impl.PortletPreferenceImpl
All Implemented Interfaces:
InternalPortletPreference

public class PortletPreferenceImpl
extends Object
implements InternalPortletPreference

TODO: javadoc

Since:
Sep 20, 2004
Version:
1.0

Constructor Summary
PortletPreferenceImpl(String name, String[] values)
           
PortletPreferenceImpl(String name, String[] values, boolean readOnly)
           
 
Method Summary
 Object clone()
          Clone a copy of itself.
 String getName()
          Returns the name of this portlet preference.
 String[] getValues()
          Returns the values of this portlet preference, which is a string array.
 boolean isReadOnly()
          Returns true if this portlet preference is marked as read-only.
 void setName(String name)
           
 void setReadOnly(boolean readOnly)
           
 void setValues(String[] values)
          Sets values of this portlet preference.
 String toString()
          Override of toString() that prints out name and values of fields.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PortletPreferenceImpl

public PortletPreferenceImpl(String name,
                             String[] values)

PortletPreferenceImpl

public PortletPreferenceImpl(String name,
                             String[] values,
                             boolean readOnly)
Method Detail

getName

public String getName()
Description copied from interface: InternalPortletPreference
Returns the name of this portlet preference.

Specified by:
getName in interface InternalPortletPreference
Returns:
the name of this portlet preference.

setName

public void setName(String name)

getValues

public String[] getValues()
Description copied from interface: InternalPortletPreference
Returns the values of this portlet preference, which is a string array.

Specified by:
getValues in interface InternalPortletPreference
Returns:
the values of this portlet preference as a string array.

setValues

public void setValues(String[] values)
Description copied from interface: InternalPortletPreference
Sets values of this portlet preference.

Specified by:
setValues in interface InternalPortletPreference
Parameters:
values - values of this portlet preference to set.

isReadOnly

public boolean isReadOnly()
Description copied from interface: InternalPortletPreference
Returns true if this portlet preference is marked as read-only.

Specified by:
isReadOnly in interface InternalPortletPreference
Returns:
true if this portlet preference is marked as read-only.

setReadOnly

public void setReadOnly(boolean readOnly)

clone

public Object clone()
Description copied from interface: InternalPortletPreference
Clone a copy of itself.

Specified by:
clone in interface InternalPortletPreference
Overrides:
clone in class Object
Returns:
a copy of itself.

toString

public String toString()
Override of toString() that prints out name and values of fields.

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


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.