|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.prefs.ChangeSet
public class ChangeSet
This class keeps track of the changes to a preferences node.
| Field Summary | |
|---|---|
protected Set |
addedChildren
A set of added children. |
protected Set |
changedProperties
A set of changed/added properties. |
protected boolean |
hasChanges
Do we have changes at all? |
protected Set |
removedChildren
A set of removed children. |
protected Set |
removedProperties
A set of removed properties. |
| Constructor Summary | |
|---|---|
ChangeSet()
|
|
| Method Summary | |
|---|---|
void |
childAdded(String name)
Inform that a child has been added. |
void |
childRemoved(String name)
Inform that a child has been removed. |
void |
clear()
Reset state to unchanged. |
Collection |
getAddedChildren()
Return a collection with the added children names. |
Collection |
getChangedProperties()
Return a collection with the changed property names. |
Collection |
getRemovedChildren()
Return a collection with the removed children names. |
Collection |
getRemovedProperties()
Return a collection with the removed property names. |
boolean |
hasChanges()
Do we have changes? |
void |
importChanges(ChangeSet other)
Import the changes from the other change set. |
void |
propertyChanged(String name)
Inform that a property has been added/changed. |
void |
propertyRemoved(String name)
Inform that a property has removed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean hasChanges
protected final Set changedProperties
protected final Set removedProperties
protected final Set addedChildren
protected final Set removedChildren
| Constructor Detail |
|---|
public ChangeSet()
| Method Detail |
|---|
public boolean hasChanges()
public void propertyChanged(String name)
name - The name of the property.public void propertyRemoved(String name)
name - The name of the property.public void childAdded(String name)
name - The name of the child.public void childRemoved(String name)
name - The name of the child.public void clear()
public void importChanges(ChangeSet other)
other - public Collection getChangedProperties()
public Collection getRemovedProperties()
public Collection getAddedChildren()
public Collection getRemovedChildren()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||