FileDocCategorySizeDatePackage
NestedTask.javaAPI DocAndroid 1.5 API2120Wed May 06 22:41:16 BST 2009com.vladium.emma.ant

NestedTask

public abstract class NestedTask extends SuppressableTask
author
Vlad Roubtsov, (C) 2003

Fields Summary
protected final SuppressableTask
m_parent
Constructors Summary
protected NestedTask(SuppressableTask parent)

        if (parent == null)
            throw new IllegalArgumentException ("null input: parent");
        
        m_parent = parent;
    
Methods Summary
protected final com.vladium.util.IPropertiesgetTaskSettings()
Overrides {@link SuppressableTask#getTaskSettings()} to mix in parent task settings as the base settings.

        final IProperties parentSettings = m_parent != null
            ? m_parent.getTaskSettings ()
            : null;
        
        final IProperties taskOverrides = super.getTaskSettings ();
        
        // task settings are always more specific than parent settings, but attention
        // needs to be paid to horizontal inheritance:
        
        if (parentSettings == null)
            return taskOverrides;
        else
        {
            final IProperties settings = IProperties.Factory.combine (taskOverrides, parentSettings);
        
            return settings;
        }