站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

MappedPreference - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.migration.model20.impl.preferences
Class MappedPreference

java.lang.Object
  extended byorg.jboss.portal.migration.model20.impl.preferences.MappedPreference
All Implemented Interfaces:
Preference
Direct Known Subclasses:
UserPref20

public class MappedPreference
extends java.lang.Object
implements Preference

Version:
$Revision: 5449 $
Author:
Julien Viet

Field Summary
private  boolean dirty
           
private static java.lang.String[] EMPTY_STRING_ARRAY
           
private static Value EMPTY_VALUE
           
 java.lang.Integer id
           
 java.lang.String name
           
 java.lang.String[] strings
           
 int type
           
private  Value value
           
 
Constructor Summary
MappedPreference()
           
MappedPreference(java.lang.String name)
           
 
Method Summary
protected  java.lang.Integer getID()
           
 java.lang.String getName()
          Return the preference name.
 java.lang.String[] getStrings()
           
 int getType()
           
 Value getValue()
          Return the preference value.
 boolean isReadOnly()
          By default it's never read only.
protected  void setID(java.lang.Integer id)
          Called by hibernate.
protected  void setName(java.lang.String name)
          Called by hibernate.
private  void setStrings(java.lang.String[] strings)
          Called by hibernate.
protected  void setType(int type)
          Called by hibernate.
 void setValue(Value value)
           
 java.lang.String toString()
          Provide a default impl.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_STRING_ARRAY

private static final java.lang.String[] EMPTY_STRING_ARRAY

EMPTY_VALUE

private static final Value EMPTY_VALUE

id

public java.lang.Integer id

name

public java.lang.String name

type

public int type

strings

public java.lang.String[] strings

value

private Value value

dirty

private boolean dirty
Constructor Detail

MappedPreference

public MappedPreference()

MappedPreference

public MappedPreference(java.lang.String name)
Method Detail

getID

protected java.lang.Integer getID()

setID

protected void setID(java.lang.Integer id)
Called by hibernate.


getName

public java.lang.String getName()
Description copied from interface: Preference
Return the preference name.

Specified by:
getName in interface Preference
Returns:
the preference name

setName

protected void setName(java.lang.String name)
Called by hibernate.


getType

public int getType()

setType

protected void setType(int type)
Called by hibernate.


getStrings

public java.lang.String[] getStrings()

setValue

public void setValue(Value value)

setStrings

private void setStrings(java.lang.String[] strings)
Called by hibernate.


getValue

public Value getValue()
Description copied from interface: Preference
Return the preference value.

Specified by:
getValue in interface Preference
Returns:
the preference value.

isReadOnly

public boolean isReadOnly()
By default it's never read only. Subclasses may provide custom behaviour here.

Specified by:
isReadOnly in interface Preference
Returns:
the read only value

toString

public java.lang.String toString()
Provide a default impl.