public class ChangeSet extends Object
Modifier and Type | Field and Description |
---|---|
protected Set<String> |
addedChildren
A set of added children.
|
protected Set<String> |
changedProperties
A set of changed/added properties.
|
protected boolean |
hasChanges
Do we have changes at all?
|
protected Set<String> |
removedChildren
A set of removed children.
|
protected Set<String> |
removedProperties
A set of removed properties.
|
Constructor and Description |
---|
ChangeSet() |
Modifier and Type | Method and Description |
---|---|
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<String> |
getAddedChildren()
Return a collection with the added children names.
|
Collection<String> |
getChangedProperties()
Return a collection with the changed property names.
|
Collection<String> |
getRemovedChildren()
Return a collection with the removed children names.
|
Collection<String> |
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.
|
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<String> getChangedProperties()
public Collection<String> getRemovedProperties()
public Collection<String> getAddedChildren()
public Collection<String> getRemovedChildren()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.