Factory Method

TagScanner possess an FM for the creation of a tag.

      protected Tag createTag(TagData tagData);

    Scanner subclasses override this to specify the type of tag to be constructed.

    CompositeTagScanner possesses an FM for the creation of a tag.

      protected Tag createTag(TagData tagData,CompositeTagData compositeTagData);

    Composite scanners override this to specify the type of tag to be constructed.

    --SomikRaha

    Last edited on Sunday, February 23, 2003  5:37:36 pm.