com.mindtree.techworks.insight.preferences.model
Class PreferenceAttribute

java.lang.Object
  extended by 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

Constructor Summary
PreferenceAttribute(PreferenceAttributeType type, java.lang.String id, java.lang.String value, boolean isEncrypted, boolean isPersistant, boolean isUserModifiable, Preference parent)
          The constructor for this class.
 
Method Summary
 java.lang.String getDefaultValue()
           
 java.lang.String getId()
           
 java.lang.String getName()
           
 Preference getParent()
           
 PreferenceAttributeType getType()
           
 java.lang.String getValue()
           
 boolean isEncrypted()
           
 boolean isPersistant()
           
 boolean isUserModifiable()
           
 void setDefaultValue(java.lang.String defaultValue)
           
 void setEncrypted(boolean isEncrypted)
           
 void setName(java.lang.String name)
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Attribute
id - Represents an identifier for the attribute
value - he value associated with the attribute.
isPersistant - Represents if the value of the attribute will persist across instances of the application
isUserModifiable - Represents whether the attribute can be modified by user GUI
parent - The Preference which is the parent of the Preference Attribute
Method Detail

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.