|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface NamedConverter
Additions to Converter that allow objects to have names that are exposed to the browser
| Method Summary | |
|---|---|
java.lang.Class<?> |
getInstanceType()
|
java.lang.String |
getJavascript()
Accessor for the javascript class name for mapped converted objects. |
java.lang.String |
getJavascriptSuperClass()
Accessor for the javascript class name that will appear as superclass for mapped converted objects. |
java.util.Map<java.lang.String,Property> |
getPropertyMapFromClass(java.lang.Class<?> type,
boolean readRequired,
boolean writeRequired)
Get a map of property names to implementations of Property. |
java.util.Map<java.lang.String,Property> |
getPropertyMapFromObject(java.lang.Object example,
boolean readRequired,
boolean writeRequired)
Get a map of property names to implementations of Property. |
void |
setInstanceType(java.lang.Class<?> instanceType)
|
void |
setJavascript(java.lang.String javascript)
Accessor for the javascript class name for mapped converted objects. |
void |
setJavascriptSuperClass(java.lang.String javascriptSuperClass)
Setter for the javascript class name that will appear as superclass for mapped converted objects. |
| Methods inherited from interface org.directwebremoting.extend.Converter |
|---|
convertInbound, convertOutbound, setConverterManager |
| Method Detail |
|---|
java.util.Map<java.lang.String,Property> getPropertyMapFromObject(java.lang.Object example,
boolean readRequired,
boolean writeRequired)
throws ConversionException
Property.
HibernateBeanConverter (and maybe others) may want to provide alternate versions of bean.getClass(), and we may wish to fake or hide properties in some cases.
This implementation is preferred above the alternate:
getPropertyMapFromClass(Class, boolean, boolean) because it
potentially retains important extra type information.
example - The object to find bean info fromreadRequired - The properties returned must be readablewriteRequired - The properties returned must be writable
ConversionException - If the introspection failsgetPropertyMapFromClass(Class, boolean, boolean)
java.util.Map<java.lang.String,Property> getPropertyMapFromClass(java.lang.Class<?> type,
boolean readRequired,
boolean writeRequired)
throws ConversionException
Property.
HibernateBeanConverter (and maybe others) may want to provide alternate versions of bean.getClass(), and we may wish to fake or hide properties in some cases.
If you have a real object to investigate then it is probably better
to call getPropertyMapFromObject(Object, boolean, boolean)
because that version can take into account extra runtime type info.
type - The class to find bean info fromreadRequired - The properties returned must be readablewriteRequired - The properties returned must be writable
ConversionException - If the introspection failsgetPropertyMapFromObject(Object, boolean, boolean)java.lang.Class<?> getInstanceType()
void setInstanceType(java.lang.Class<?> instanceType)
instanceType - The instanceType to set.java.lang.String getJavascript()
void setJavascript(java.lang.String javascript)
javascript - The Javascript classnamejava.lang.String getJavascriptSuperClass()
void setJavascriptSuperClass(java.lang.String javascriptSuperClass)
javascriptSuperClass - The Javascript classname
|
Copyright ยจ 2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||