edu.udo.cs.yale.gui.templates
Class BuildingBlock
java.lang.Object
edu.udo.cs.yale.gui.templates.BuildingBlock
- All Implemented Interfaces:
- java.lang.Comparable<BuildingBlock>
public class BuildingBlock
- extends java.lang.Object
- implements java.lang.Comparable<BuildingBlock>
A building block consisting of a name, a short description, and the XML description
for the building block. Templates must look like this:
one line for the name
one line of html description
one line for the XML description
- Version:
- $Id: BuildingBlock.java,v 1.2 2006/08/03 14:39:29 ingomierswa Exp $
- Author:
- Ingo Mierswa
Constructor Summary |
BuildingBlock(java.io.File file)
|
BuildingBlock(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String xmlDescription)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
name
private java.lang.String name
description
private java.lang.String description
xmlDescription
private java.lang.String xmlDescription
buildingBlockFile
private java.io.File buildingBlockFile
icon
private java.lang.String icon
BuildingBlock
public BuildingBlock(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
BuildingBlock
public BuildingBlock(java.lang.String name,
java.lang.String description,
java.lang.String icon,
java.lang.String xmlDescription)
getFile
public java.io.File getFile()
getName
public java.lang.String getName()
getDescription
public java.lang.String getDescription()
getIcon
public java.lang.String getIcon()
getXML
public java.lang.String getXML()
save
public void save(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(BuildingBlock buildingBlock)
- Specified by:
compareTo
in interface java.lang.Comparable<BuildingBlock>
Copyright © 2001-2006