|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A form that uses XML to store information. Supports multi-phase validation and serialization. By using xml as the model and separating out the validation, xml forms can be used outside the Struts framework, ie in a SOAP web services environment simultaneously.
| Method Summary | |
org.xmlform.Form |
getForm()
Gets the underlying XMLForm.org form |
java.lang.String |
getFormPath()
Gets the form path |
java.lang.String |
getName()
Gets the name of the form |
java.lang.String |
getPhase()
Gets the validation phase |
java.lang.String |
getSchemaNS()
Gets the schema namespace |
java.lang.String |
getValue(java.lang.String xpath)
Gets the value at the xpath path |
java.lang.String |
getValue(java.lang.String xpath,
java.lang.String def)
Gets the value at the xpath path |
boolean |
isInitialized()
Determines if the form is initializes or not |
boolean |
isViewstateEnabled()
Gets the validation phase |
void |
loadState(java.io.InputStream in)
Loads the XML from the inputstream |
void |
outputXML(java.io.OutputStream out)
Serializes the XML |
void |
prePopulate()
Called before the form is populated |
void |
reset()
Resets the form by loading the default XML if available |
java.lang.String |
save()
Saves the form and returns a String status code |
void |
setDefaultXML(org.w3c.dom.Document doc)
Sets the default xml |
void |
setForm(org.xmlform.Form form)
Sets the underlying XMLForm.org form |
void |
setFormPath(java.lang.String path)
Sets the form path |
void |
setName(java.lang.String name)
Sets the name of the form |
void |
setPhase(java.lang.String phase)
Sets the validation phase |
void |
setSchema(java.io.InputStream schema)
Sets the schema path |
void |
setSchemaNS(java.lang.String schema)
Sets the schema namespace |
void |
setValue(java.lang.String xpath,
java.lang.Object val)
Sets the value at the xpath path |
void |
setViewstateEnabled(boolean val)
Sets the validation phase |
void |
setXML(org.w3c.dom.Document doc)
Sets the form xml |
java.util.List |
validate()
Validate the data and generate violations |
| Method Detail |
public void loadState(java.io.InputStream in)
in - The inputstreampublic void setDefaultXML(org.w3c.dom.Document doc)
doc - The default XMLpublic void setXML(org.w3c.dom.Document doc)
doc - The default XMLpublic boolean isInitialized()
public void setName(java.lang.String name)
name - The new name valuepublic java.lang.String getName()
public void setSchema(java.io.InputStream schema)
schema - The new schema pathpublic java.lang.String getSchemaNS()
public void setSchemaNS(java.lang.String schema)
schema - The new schema namespacepublic void setFormPath(java.lang.String path)
path - The new form pathpublic java.lang.String getFormPath()
public void setForm(org.xmlform.Form form)
form - The new form valuepublic org.xmlform.Form getForm()
public java.lang.String getPhase()
public void setPhase(java.lang.String phase)
phase - The new phase valuepublic boolean isViewstateEnabled()
public void setViewstateEnabled(boolean val)
val - The new viewstateEnabled valuepublic void reset()
public java.util.List validate()
public void prePopulate()
public java.lang.String save()
public void outputXML(java.io.OutputStream out)
out - The outputstreampublic java.lang.String getValue(java.lang.String xpath)
xpath - The xpath path
public java.lang.String getValue(java.lang.String xpath,
java.lang.String def)
xpath - The xpath pathdef - The default value
public void setValue(java.lang.String xpath,
java.lang.Object val)
xpath - The xpath pathval - The value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||