edu.udo.cs.yale.gui.templates
Class BuildingBlock

java.lang.Object
  extended by 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

Field Summary
private  java.io.File buildingBlockFile
           
private  java.lang.String description
           
private  java.lang.String icon
           
private  java.lang.String name
           
private  java.lang.String xmlDescription
           
 
Constructor Summary
BuildingBlock(java.io.File file)
           
BuildingBlock(java.lang.String name, java.lang.String description, java.lang.String icon, java.lang.String xmlDescription)
           
 
Method Summary
 int compareTo(BuildingBlock buildingBlock)
           
 java.lang.String getDescription()
           
 java.io.File getFile()
           
 java.lang.String getIcon()
           
 java.lang.String getName()
           
 java.lang.String getXML()
           
 void save(java.io.File file)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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