org.pietschy.command

Class AbstractFaceBuilder

Known Direct Subclasses:
DefaultFaceBuilder

public abstract class AbstractFaceBuilder
extends AbstractBuilder

Implementations of this class are used used to construct face instances from the commands configuration file. Builders can be installed by calling FaceManager.setFaceBuilder(AbstractFaceBuilder).

Method Summary

abstract void
configure(Face face, Element faceElement)
Implementers of this class are responsible for building a Face element for the specified configuration data.
abstract Face
createFace(FaceId id, FaceManager faceManager)
Constructs a new Face witht the specified FaceId and that uses the specified FaceManager to locate parent faces.

Methods inherited from class org.pietschy.command.AbstractBuilder

getAttribute, getCommandManager, getElementPath, getElementText, isEmptyElement, isIncluded, populateProperties, setCommandManager

Method Details

configure

public abstract void configure(Face face,
                               Element faceElement)
Implementers of this class are responsible for building a Face element for the specified configuration data.
Parameters:
face - the face that is to be configured.
faceElement - the face's configuration information.

createFace

public abstract Face createFace(FaceId id,
                                FaceManager faceManager)
Constructs a new Face witht the specified FaceId and that uses the specified FaceManager to locate parent faces.
Parameters:
id - the id of the face.
faceManager - the FaceManager the face can use to locate its parent.
Returns:
a new empty Face.