
toxgene.core.genes.ContainerGene Maven / Gradle / Ivy
/**
* Defines an interface for genes that are simply containers for attributes
* for its parent element. These attributes may or may not be actually
* generated, depending on certain conditions and on the kind of Container
* object.
*
* Containers may also have elements. Since a container is also a gene, such
* elements are generated by calling the generate() method from that
* interface.
*
* @author Denilson Barbosa
* @version 0.1
*/
package toxgene.core.genes;
import java.io.PrintStream;
public interface ContainerGene extends Gene{
/**
* Determines whether there are attributes in this container.
*/
public boolean hasAttributes();
/**
* Generates all attributes in this container, ouputing their values into
* the correspoind stream.
*/
public void generateAttributes(PrintStream outputStream);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy