|
||||||||||
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 java.util.Set |
addedChildren
A set of added children. |
protected java.util.Set |
changedProperties
A set of changed/added properties. |
protected boolean |
hasChanges
Do we have changes at all? |
protected java.util.Set |
removedChildren
A set of removed children. |
protected java.util.Set |
removedProperties
A set of removed properties. |
Constructor Summary | |
---|---|
ChangeSet()
|
Method Summary | |
---|---|
void |
childAdded(java.lang.String name)
Inform that a child has been added. |
void |
childRemoved(java.lang.String name)
Inform that a child has been removed. |
void |
clear()
Reset state to unchanged. |
java.util.Collection |
getAddedChildren()
Return a collection with the added children names. |
java.util.Collection |
getChangedProperties()
Return a collection with the changed property names. |
java.util.Collection |
getRemovedChildren()
Return a collection with the removed children names. |
java.util.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(java.lang.String name)
Inform that a property has been added/changed. |
void |
propertyRemoved(java.lang.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 java.util.Set changedProperties
protected final java.util.Set removedProperties
protected final java.util.Set addedChildren
protected final java.util.Set removedChildren
Constructor Detail |
---|
public ChangeSet()
Method Detail |
---|
public boolean hasChanges()
public void propertyChanged(java.lang.String name)
name
- The name of the property.public void propertyRemoved(java.lang.String name)
name
- The name of the property.public void childAdded(java.lang.String name)
name
- The name of the child.public void childRemoved(java.lang.String name)
name
- The name of the child.public void clear()
public void importChanges(ChangeSet other)
other
- public java.util.Collection getChangedProperties()
public java.util.Collection getRemovedProperties()
public java.util.Collection getAddedChildren()
public java.util.Collection getRemovedChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |