|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StatePrototype
A State with ability to clone and factory method for new Properties.
It is used by Decorator
during decoration of POJOs.
created on Jun 22, 2005
Field Summary |
---|
Fields inherited from interface net.sf.fikin.pojostate.State |
---|
SORT_ASC, SORT_BY_DESC, SORT_BY_NAME, SORT_BY_VALUE, SORT_DESC |
Method Summary | |
---|---|
java.lang.Object |
clone()
implements cloning |
Property |
newProperty(MethodMeta mm)
instantiate new Property for given MethodMeta
This is a factory method used by Decorator during instantiation
of new State object |
void |
setClassLoader(java.lang.ClassLoader loader)
|
void |
setFormat(StateFormat format)
assign the formating object |
void |
setLocale(java.util.Locale locale)
|
void |
setObject(java.lang.Object object)
assign the underlying POJO |
Methods inherited from interface net.sf.fikin.pojostate.State |
---|
getClassLoader, getFormat, getLocale, getObject, getProperty, sort, toString, update |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
void setClassLoader(java.lang.ClassLoader loader)
loader
- The loader to set.void setLocale(java.util.Locale locale)
locale
- The locale to set.void setObject(java.lang.Object object)
object
- void setFormat(StateFormat format)
format
- java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
Property newProperty(MethodMeta mm) throws DecorationException
Property
for given MethodMeta
This is a factory method used by Decorator
during instantiation
of new State
object
mm
- to be used as underlying MethodMeta for that Property
DecorationException
- in case of internal error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |