org.pietschy.command
Class AbstractFaceBuilder

java.lang.Object
  extended by org.pietschy.command.AbstractBuilder
      extended by org.pietschy.command.AbstractFaceBuilder
Direct Known 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(org.pietschy.command.AbstractFaceBuilder).


Constructor Summary
AbstractFaceBuilder()
           
 
Method Summary
abstract  void configure(Face face, org.w3c.dom.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFaceBuilder

public AbstractFaceBuilder()
Method Detail

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.

configure

public abstract void configure(Face face,
                               org.w3c.dom.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.