org.apache.avalon.composition.model.impl
Class DefaultModel

java.lang.Object
  extended byorg.apache.avalon.composition.model.impl.DefaultModel
All Implemented Interfaces:
Model
Direct Known Subclasses:
DefaultContainmentModel, DefaultDeploymentModel

public abstract class DefaultModel
extends Object
implements Model

Abstract model base class.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/09/24 09:32:10 $
Author:
Avalon Development Team

Constructor Summary
DefaultModel(Logger logger, String path, String name, Mode mode)
          Creation of an abstract model.
 
Method Summary
protected  Logger getLogger()
          Return the logging channel.
 Mode getMode()
          Return the mode of establishment.
 String getName()
          Return the profile name.
 String getPath()
          Return the profile path.
 String getQualifiedName()
          Return the model fully qualified name.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.composition.model.Model
getServices, isaCandidate, isaCandidate
 

Constructor Detail

DefaultModel

public DefaultModel(Logger logger,
                    String path,
                    String name,
                    Mode mode)
Creation of an abstract model. The model associated a name and a partition.

Parameters:
path - the profile partition
name - the profile name
Method Detail

getName

public String getName()
Return the profile name.

Specified by:
getName in interface Model
Returns:
the name

getPath

public String getPath()
Return the profile path.

Specified by:
getPath in interface Model
Returns:
the path

getQualifiedName

public String getQualifiedName()
Return the model fully qualified name.

Specified by:
getQualifiedName in interface Model
Returns:
the fully qualified name

getMode

public Mode getMode()
Return the mode of establishment.

Specified by:
getMode in interface Model
Returns:
the mode

getLogger

protected Logger getLogger()
Return the logging channel.

Returns:
the logger

toString

public String toString()


Copyright © Apache Software Foundation. All Rights Reserved.