org.weblab_project.core.factory
Class LineFactory
java.lang.Object
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
Line
s.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
Line
s 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 org.weblab_project.core.model.structure.Line |
createAndLinkLine(org.weblab_project.core.model.structure.Table table)
|
static org.weblab_project.core.model.structure.Line |
createAndLinkLine(org.weblab_project.core.model.structure.Table table,
int index)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createAndLinkLine
public static org.weblab_project.core.model.structure.Line createAndLinkLine(org.weblab_project.core.model.structure.Table table)
- Parameters:
table
- The Table
in witch to create a line at the end.
- Returns:
- The created
Line
createAndLinkLine
public static org.weblab_project.core.model.structure.Line createAndLinkLine(org.weblab_project.core.model.structure.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-2009. All Rights Reserved.