org.codehaus.mojo.pomtools.wrapper.modify
Class AbstractModifiableObject

java.lang.Object
  extended by org.codehaus.mojo.pomtools.wrapper.modify.AbstractModifiableObject
All Implemented Interfaces:
Modifiable
Direct Known Subclasses:
ModifiableList, ModifiableListIterator, ObjectWrapper, PomToolsPluginContext, ProjectWrapper

public abstract class AbstractModifiableObject
extends java.lang.Object
implements Modifiable

Version:
$Id: AbstractModifiableObject.java 2166 2006-07-18 21:32:16Z carlos $
Author:
David Hawkins

Constructor Summary
AbstractModifiableObject(Modifiable parent)
           
 
Method Summary
 Modifiable addChild(Modifiable child)
           
 boolean isModified()
           
 void setModified()
           
 void setModified(boolean modified)
          Setting modified to true propagates the value up to our parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractModifiableObject

public AbstractModifiableObject(Modifiable parent)
Method Detail

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 © 2009 The Codehaus. All Rights Reserved.