|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openfjord.business.entities.SurveyElementFactory
Factory Class for creating new SurveyElement Entity Beans
Title: openFJORD
Description: open Flexible Java Online Research Designer
Copyright: Copyright (c) University of Muenster
Company: University of Muenster
Field Summary | |
static int |
CARDINALQUESTION
|
static int |
NOMINALQUESTION
|
static int |
ORDINALQUESTION
|
static int |
PAGEBREAK
|
static int |
PARAGRAPH
|
static int |
QUESTION
|
static int |
SURVEYFOOTER
|
static int |
SURVEYHEADER
|
static int |
TEXTELEMENT
|
Constructor Summary | |
SurveyElementFactory()
|
Method Summary | |
static SurveyElementLocal |
createSurveyElement(int elementType)
Creates a new SurveyElement entity bean. |
static SurveyElementLocal |
createSurveyElement(SurveyElement element)
Creates a new SurveyElement entity bean. |
static boolean |
isContainer(int type)
checks if the given type is a survey element container type or not |
static boolean |
isQuestion(int type)
check if the given type is a question or not |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PARAGRAPH
public static final int SURVEYHEADER
public static final int SURVEYFOOTER
public static final int TEXTELEMENT
public static final int QUESTION
public static final int CARDINALQUESTION
public static final int ORDINALQUESTION
public static final int NOMINALQUESTION
public static final int PAGEBREAK
Constructor Detail |
public SurveyElementFactory()
Method Detail |
public static SurveyElementLocal createSurveyElement(SurveyElement element)
element
- reference to domain interface
createSurveyElement(org.openfjord.business.domain.SurveyElement)
public static SurveyElementLocal createSurveyElement(int elementType)
elementType
- type of the survey element
public static boolean isQuestion(int type)
type
- element type
public static boolean isContainer(int type)
type
- element type
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |