com.mindtree.techworks.insight.preferences.model
Class PreferenceAttribute
java.lang.Object
com.mindtree.techworks.insight.preferences.model.PreferenceAttribute
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ListPreferenceAttribute
public class PreferenceAttribute
- extends java.lang.Object
- implements java.io.Serializable
This is an individual Attribute in a Preference. A PreferenceAttribute must
have a type, id and indicators whether it is Persistant and UserModifiable.
- Version:
- $Revision: 27 $ $Date: 2007-12-16 04:58:03 -0700 (Sun, 16 Dec 2007) $
- Author:
- Bindul Bhowmik
- See Also:
Preference
,
PreferenceAttributeType
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PreferenceAttribute
public PreferenceAttribute(PreferenceAttributeType type,
java.lang.String id,
java.lang.String value,
boolean isEncrypted,
boolean isPersistant,
boolean isUserModifiable,
Preference parent)
- The constructor for this class.
- Parameters:
type
- Identifies the type of this Preference Attributeid
- Represents an identifier for the attributevalue
- he value associated with the attribute.isPersistant
- Represents if the value of the attribute will persist
across instances of the applicationisUserModifiable
- Represents whether the attribute can be modified
by user GUIparent
- The Preference which is the parent of the Preference
Attribute
getName
public java.lang.String getName()
- Returns:
- Returns the name.
setName
public void setName(java.lang.String name)
- Parameters:
name
- The name to set.
getValue
public java.lang.String getValue()
- Returns:
- Returns the value.
setValue
public void setValue(java.lang.String value)
- Parameters:
value
- The value to set.
getDefaultValue
public java.lang.String getDefaultValue()
- Returns:
- Returns the defaultValue.
getId
public java.lang.String getId()
- Returns:
- Returns the id.
isPersistant
public boolean isPersistant()
- Returns:
- Returns the isPersistant.
isUserModifiable
public boolean isUserModifiable()
- Returns:
- Returns the isUserModifiable.
getParent
public Preference getParent()
- Returns:
- Returns the parent.
getType
public PreferenceAttributeType getType()
- Returns:
- Returns the type.
setDefaultValue
public void setDefaultValue(java.lang.String defaultValue)
- Parameters:
defaultValue
- The defaultValue to set.
isEncrypted
public boolean isEncrypted()
setEncrypted
public void setEncrypted(boolean isEncrypted)
Copyright © 2003-2008 MindTree Consulting Ltd.. All Rights Reserved.