|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface TransformationInterface
The interface that must be implemented for all Transformation Beans. "Transformation Bean" is the name given to a Java component which consumes data from either a model or via property sets and transforms the data into a different representation that will be streamed to a client (or other consumer). A very common type of Transformation Bean will be one that consumes data from a webAF model (such as DataSetInterface) and represents the data in HTML (such as a TABLE).
Transformation Beans are intended to be used by servlet developers and JSP (Java ServerPages) writers.
The com.sas.servlet.beans package contains generic interfaces that define different types of beans. The final implementation will be language-specific, with the classes residing in a sub-package such as com.sas.servlet.beans.html. It is anticipated that languages other than HTML (such as XML, JavaScript, and DHTML) may implement the generic interfaces as well.
| Method Summary | |
|---|---|
abstract java.lang.String |
getCustomAttributes()
Gets the custom attributes |
abstract java.lang.String |
getDescription()
Gets the description that will be used to describe this bean to the user. |
abstract java.lang.String |
getId()
Gets the id. |
abstract java.util.Locale |
getLocale()
Get the locale |
abstract java.lang.String |
getName()
Gets the name that will be used to identify the content when it is submitted to the server |
abstract javax.servlet.http.HttpServletRequest |
getRequest()
Gets the current request object. |
abstract javax.servlet.http.HttpServletResponse |
getResponse()
Gets the current response object. |
abstract java.lang.String |
getTagEpilog()
Returns a string to be written after to any tag information |
abstract java.lang.String |
getTagProlog()
Returns the TransformationBean's prolog String |
abstract boolean |
isVisible()
Returns whether or not the transformation bean should be written |
abstract void |
setCustomAttributes(java.lang.String value)
Sets any custom attributes. |
abstract void |
setDescription(java.lang.String value)
Sets the description that will be used to describe this bean to the user. |
abstract void |
setId(java.lang.String value)
Sets the id. |
abstract void |
setLocale(java.util.Locale locale)
Set the locale |
abstract void |
setName(java.lang.String value)
Sets the name that will be used to identify the content when it is submitted to the server |
abstract void |
setRequest(javax.servlet.http.HttpServletRequest request)
Sets the request object. |
abstract void |
setResponse(javax.servlet.http.HttpServletResponse response)
Sets the response object. |
abstract void |
setTagEpilog(java.lang.String epilog)
Sets a string to be written after to any tag information |
abstract void |
setTagProlog(java.lang.String prolog)
Sets a string to be written prior to any tag information |
abstract void |
setVisible(boolean b)
Sets the visibility parameter for a tbean. |
abstract void |
write(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
Writes the transformed representation of the object. |
abstract void |
write(java.io.OutputStream out)
Writes the transformed representation of the object. |
abstract void |
write(java.io.PrintWriter out)
Writes the transformed representation of the object. |
abstract void |
write(java.io.Writer out)
Writes the transformed representation of the object. |
| Method Detail |
|---|
void setCustomAttributes(java.lang.String value)
value - The custom attributejava.lang.String getCustomAttributes()
void setDescription(java.lang.String value)
desc - The descriptionjava.lang.String getDescription()
void setLocale(java.util.Locale locale)
locale - java.util.Locale getLocale()
void setName(java.lang.String value)
value - The namejava.lang.String getName()
void setRequest(javax.servlet.http.HttpServletRequest request)
request - The request objectjavax.servlet.http.HttpServletRequest getRequest()
void setResponse(javax.servlet.http.HttpServletResponse response)
response - The response objectjavax.servlet.http.HttpServletResponse getResponse()
void setId(java.lang.String value)
value - The idjava.lang.String getId()
java.lang.String getTagProlog()
setTagProlog(String)void setTagProlog(java.lang.String prolog)
prolog - string to be written prior to any tag informationjava.lang.String getTagEpilog()
void setTagEpilog(java.lang.String epilog)
epilog - string to be written after to any tag informationvoid setVisible(boolean b)
b - true to display the tbean, false otherwise.boolean isVisible()
void write(java.io.PrintWriter out)
throws java.io.IOException
out - The output stream
java.io.IOException - Thrown if some type of I/O error occurs
void write(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp)
throws javax.servlet.ServletException,
java.io.IOException
req - The request objectresp - The response object
javax.servlet.ServletException - Thrown if some type of servlet
error occurs
java.io.IOException - Thrown if some type of I/O error occurs
void write(java.io.Writer out)
throws java.io.IOException
out - The output stream
java.io.IOException - Thrown if some type of I/O error occurs
void write(java.io.OutputStream out)
throws java.io.IOException
out - The output stream
java.io.IOException - Thrown if some type of I/O error occurs
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||