|
|||||||||
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
Method Summary | |
---|---|
java.lang.Class |
getInstanceType()
|
java.lang.String |
getJavascript()
Accessor for the javascript class name for the converted objects. |
java.util.Map |
getPropertyMapFromClass(java.lang.Class type,
boolean readRequired,
boolean writeRequired)
Get a map of property names to implementations of Property . |
java.util.Map |
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 the converted objects. |
Methods inherited from interface org.directwebremoting.extend.Converter |
---|
convertInbound, convertOutbound, setConverterManager |
Method Detail |
---|
java.util.Map getPropertyMapFromObject(java.lang.Object example, boolean readRequired, boolean writeRequired) throws MarshallException
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 writeable
MarshallException
- If the introspection failsgetPropertyMapFromClass(Class, boolean, boolean)
java.util.Map getPropertyMapFromClass(java.lang.Class type, boolean readRequired, boolean writeRequired) throws MarshallException
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 accound extra runtime type info.
type
- The class to find bean info fromreadRequired
- The properties returned must be readablewriteRequired
- The properties returned must be writeable
MarshallException
- 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 name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |