tigase.form
Class Form

java.lang.Object
  extended by tigase.form.Form

public class Form
extends Object

Created: 2007-05-27 11:41:02

Version:
$Rev:43 $
Author:
bmalkow

Constructor Summary
Form(tigase.xml.Element form)
           
Form(String type, String title, String instruction)
           
 
Method Summary
 void addField(Field field)
           
 void clear()
           
 void copyValuesFrom(tigase.xml.Element form)
           
 void copyValuesFrom(Form form)
           
 Field get(String var)
           
 List<Field> getAllFields()
           
 Boolean getAsBoolean(String var)
           
 Integer getAsInteger(String var)
           
 String getAsString(String var)
           
 String[] getAsStrings(String var)
           
 tigase.xml.Element getElement()
           
 String getInstruction()
           
 String getTitle()
           
 String getType()
           
 boolean is(String var)
           
 void removeField(String var)
           
 void setInstruction(String instruction)
           
 void setTitle(String title)
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Form

public Form(tigase.xml.Element form)

Form

public Form(String type,
            String title,
            String instruction)
Method Detail

addField

public void addField(Field field)

clear

public void clear()

copyValuesFrom

public void copyValuesFrom(tigase.xml.Element form)

copyValuesFrom

public void copyValuesFrom(Form form)

get

public Field get(String var)

getAllFields

public List<Field> getAllFields()

getAsBoolean

public Boolean getAsBoolean(String var)

getAsInteger

public Integer getAsInteger(String var)
Parameters:
var -
Returns:

getAsString

public String getAsString(String var)

getAsStrings

public String[] getAsStrings(String var)

getElement

public tigase.xml.Element getElement()

getInstruction

public String getInstruction()
Returns:
Returns the instruction.

getTitle

public String getTitle()
Returns:
Returns the title.

getType

public String getType()
Returns:
Returns the type.

is

public boolean is(String var)

removeField

public void removeField(String var)

setInstruction

public void setInstruction(String instruction)
Parameters:
instruction - The instruction to set.

setTitle

public void setTitle(String title)
Parameters:
title - The title to set.

setType

public void setType(String type)
Parameters:
type - The type to set.


Copyright © 2012 Tigase. All Rights Reserved.