org.codehaus.mojo.pomtools.wrapper.modify
Class AbstractModifiableObject
java.lang.Object
org.codehaus.mojo.pomtools.wrapper.modify.AbstractModifiableObject
- All Implemented Interfaces:
- Modifiable
- Direct Known Subclasses:
- ModifiableList, ModifiableListIterator, ObjectWrapper, PomToolsPluginContext, ProjectWrapper
public abstract class AbstractModifiableObject
- extends Object
- implements Modifiable
- Version:
- $Id: AbstractModifiableObject.java 2166 2006-07-18 21:32:16Z carlos $
- Author:
- David Hawkins
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractModifiableObject
public AbstractModifiableObject(Modifiable parent)
isModified
public boolean isModified()
- Specified by:
isModified
in interface Modifiable
setModified
public void setModified()
setModified
public void setModified(boolean modified)
- Setting modified to true propagates the value up to our parent.
Setting it to false will propagate down to our children.
If I am modified, that makes my parent modified. However, if I am
setting my modified to false, that does not mean my parent is no longer
modified.
- Specified by:
setModified
in interface Modifiable
addChild
public Modifiable addChild(Modifiable child)
- Specified by:
addChild
in interface Modifiable
Copyright © 2011 The Codehaus. All Rights Reserved.