org.weblab_project.core.factory
Class LineFactory

java.lang.Object
  extended by org.weblab_project.core.factory.LineFactory

public class LineFactory
extends java.lang.Object

This class will provide an easy and strongly recommended way to create Lines.it will enable the creation of a Line having an URI compliant with the WebLabRI recommendations.
Since an Line hasn't any sense without being attached to a Table, we only provide a method for creating Lines that takes a Table in parameter. As a result, the created Line is added to the Line List of the Table.

Author:
EADS WebLab Team
Date:
2008-01-22

Method Summary
static Line createAndLinkLine(Table table)
           
static Line createAndLinkLine(Table table, int index)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createAndLinkLine

public static Line createAndLinkLine(Table table)
Parameters:
table - The Table in witch to create a line at the end.
Returns:
The created Line

createAndLinkLine

public static Line createAndLinkLine(Table table,
                                     int index)
                              throws WebLabResourceCreationException
Parameters:
table - The Table in witch to create a line at the end.
index - The index
Returns:
The created Line
Throws:
WebLabResourceCreationException - if the index is out of range (index < 0 || index > table.getLine().size()).


Copyright © 2004-2010. All Rights Reserved.