|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.migration.model20.impl.preferences.MappedPreferenceSet
Field Summary | |
private java.util.Set |
children
|
private FQN |
fqn
|
java.lang.Integer |
id
|
private static org.apache.log4j.Logger |
log
Our logger. |
protected java.util.Map |
map
|
private java.lang.String |
name
|
private MappedPreferenceSet |
parent
|
Constructor Summary | |
MappedPreferenceSet()
Hibernate constructor. |
|
MappedPreferenceSet(java.lang.String name)
|
Method Summary | |
void |
addChild(MappedPreferenceSet child)
|
java.util.Set |
getChildren()
|
java.util.Map |
getContent()
|
MappedPreferenceSet |
getDescendant(FQN fqn)
|
FQN |
getFQN()
|
java.lang.Integer |
getID()
|
java.lang.String |
getName()
|
MappedPreferenceSet |
getParent()
|
Preference |
getPreference(java.lang.String key)
Return the preference for the given key. |
Value |
getValue(java.lang.String key)
Return the value for the given key or null if it does not exist. |
boolean |
isReadOnly(java.lang.String key)
Return the read only value for the given preference. |
java.util.Set |
keySet()
Return the key set of all the preferences. |
protected MappedPreferenceSet |
newChild(java.lang.String name)
Override to provide the right object. |
protected Preference |
newPreference(java.lang.String name,
Value value,
boolean readOnly)
Override to provide the right object. |
void |
setChildren(java.util.Set children)
|
void |
setContent(java.util.Map content)
|
protected void |
setID(java.lang.Integer id)
Called by hibernate. |
protected void |
setName(java.lang.String name)
Called by hibernate. |
void |
setParent(MappedPreferenceSet parent)
|
void |
setReadOnly(java.lang.String key,
boolean readOnly)
Update the read only value for the given key. |
void |
setValue(java.lang.String key,
Value value)
Update the value of the given key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static org.apache.log4j.Logger log
public java.lang.Integer id
private MappedPreferenceSet parent
private java.util.Set children
private java.lang.String name
private FQN fqn
protected java.util.Map map
Constructor Detail |
public MappedPreferenceSet()
public MappedPreferenceSet(java.lang.String name)
Method Detail |
public java.lang.Integer getID()
protected void setID(java.lang.Integer id)
public java.lang.String getName()
protected void setName(java.lang.String name)
public MappedPreferenceSet getParent()
public void setParent(MappedPreferenceSet parent)
public void addChild(MappedPreferenceSet child)
public java.util.Set getChildren()
public void setChildren(java.util.Set children)
public MappedPreferenceSet getDescendant(FQN fqn)
public FQN getFQN()
public java.util.Map getContent()
public void setContent(java.util.Map content)
public java.util.Set keySet()
PreferenceSet
keySet
in interface PreferenceSet
public Preference getPreference(java.lang.String key)
PreferenceSet
getPreference
in interface PreferenceSet
key
- the requested key
public Value getValue(java.lang.String key)
PreferenceSet
getValue
in interface PreferenceSet
key
- the requested key
public void setValue(java.lang.String key, Value value)
PreferenceSet
setValue
in interface PreferenceSet
key
- the key to updatevalue
- the new valuepublic boolean isReadOnly(java.lang.String key)
PreferenceSet
isReadOnly
in interface PreferenceSet
key
- the requested key
public void setReadOnly(java.lang.String key, boolean readOnly)
PreferenceSet
setReadOnly
in interface PreferenceSet
key
- the key to updatereadOnly
- the new read only valueprotected MappedPreferenceSet newChild(java.lang.String name)
protected Preference newPreference(java.lang.String name, Value value, boolean readOnly)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |