jef.dna.attributes
Interface AttribFactory

All Known Implementing Classes:
AttributeFactory

public interface AttribFactory

This interface is used for accessing real attribute factory implementations for instantiating attribute classes.

Author:
Francesco Russo frusso@cs.unibo.it

Method Summary
 Attribute getInstance(AttributeTypes type)
          This method returns not populated Attribute instances.
 Attribute getInstance(java.io.DataInputStream dis, Dna dna)
          This method returns not populated Attribute instances.
 

Method Detail

getInstance

Attribute getInstance(AttributeTypes type)
                      throws UnsupportedAttributeException
This method returns not populated Attribute instances.

Parameters:
type - Which attribute to instantiate
Returns:
Attribute The requested attribute
Throws:
UnsupportedAttributeException

getInstance

Attribute getInstance(java.io.DataInputStream dis,
                      Dna dna)
                      throws DnaDeserializationException
This method returns not populated Attribute instances.

Parameters:
dis - The input stream the attribute has to be instantiated from
dna - The Dna instance which will contain the returned Attribute instance
Returns:
Attribute The required attribute
Throws:
DnaDeserializationException