public class PortionFactory extends java.lang.Object implements IPortionFactory
Allows to create test portions
Constructor and Description |
---|
PortionFactory() |
Modifier and Type | Method and Description |
---|---|
IPortion |
createPortion()
Creates an empty text portion.
|
IPortion |
createPortion(IPortion portion)
Creates a portion with the using of a specified portion data.
|
IPortion |
createPortion(java.lang.String str)
Creates a text portion from specified string.
|
public final IPortion createPortion()
Creates an empty text portion.
createPortion
in interface IPortionFactory
public final IPortion createPortion(java.lang.String str)
Creates a text portion from specified string.
createPortion
in interface IPortionFactory
str
- String.public final IPortion createPortion(IPortion portion)
Creates a portion with the using of a specified portion data.
createPortion
in interface IPortionFactory
portion
- A portion to use.