net.sf.tomp.el.author
Class Practice

java.lang.Object
  extended by net.sf.tomp.el.author.Practice
All Implemented Interfaces:
Described

public class Practice
extends java.lang.Object
implements Described


Constructor Summary
Practice(Practices p, java.lang.String id)
          Creates a new instance of Practice and sets its ID.
 
Method Summary
 Description getDescription()
          Returns the description.
 java.io.File getFile()
          Returns the Practice's XML file.
 java.lang.String getId()
          Returns practice's ID.
 Practices getPractices()
          Returns practices.
 void setDescription(Description description)
          Sets the practice's description
 java.lang.String toString()
          Creates string of practice.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Practice

public Practice(Practices p,
                java.lang.String id)
Creates a new instance of Practice and sets its ID. Initialize its practices and creates default description.

Parameters:
p - Practices
id - Practice's ID
Method Detail

getFile

public java.io.File getFile()
Returns the Practice's XML file.

Returns:
Practice's file

getPractices

public Practices getPractices()
Returns practices.

Returns:
Practices.

getId

public java.lang.String getId()
Returns practice's ID.

Returns:
ID

toString

public java.lang.String toString()
Creates string of practice.

Overrides:
toString in class java.lang.Object
Returns:
String containing "practice <ID>"

getDescription

public Description getDescription()
Returns the description.

Specified by:
getDescription in interface Described
Returns:
Practice's description

setDescription

public void setDescription(Description description)
Sets the practice's description

Specified by:
setDescription in interface Described
Parameters:
description - The description to set.