|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.loom.mapping.EventParameter
public class EventParameter
Argument received by an Event
| Constructor Summary | |
|---|---|
EventParameter()
|
|
| Method Summary | ||
|---|---|---|
void |
addValidator(PropertyValidator validator)
|
|
|
getAnnotation(java.lang.Class<T> annotationClass)
If the parameter has the provided annotation, return it. |
|
java.lang.annotation.Annotation[] |
getAnnotations()
|
|
Converter |
getConverter()
|
|
java.lang.String |
getDisplayName()
|
|
Event |
getEvent()
|
|
int |
getIndex()
|
|
ItemMetadata |
getItemMetadata(int index)
|
|
int |
getItemMetadataSize()
|
|
java.lang.String |
getName()
|
|
java.lang.Class<?> |
getParameterType()
|
|
java.lang.Object |
getPropertyAsObject(java.lang.Object container,
java.lang.String propertyPath)
|
|
java.lang.String |
getPropertyAsString(java.lang.Object container,
java.lang.String propertyPath,
MessagesRepository repository)
|
|
PropertyBinder |
getPropertyBinder(java.lang.String normalizedPropertyPathWithPrefix)
|
|
java.lang.Class |
getPropertyClass()
this method exists only to comply with the implemented interface AnnotationContainer |
|
java.util.Set<PropertyValidator> |
getValidators(java.lang.String propertyPath)
|
|
java.lang.Class<?> |
guessCollectionGenericType()
|
|
java.lang.Class<?> |
guessMapGenericKeyType()
|
|
java.lang.Class<?> |
guessMapGenericValueType()
|
|
boolean |
isCollection()
|
|
boolean |
isMap()
|
|
boolean |
matches(java.lang.String propertyPath)
|
|
java.lang.Object |
populate(java.lang.Object container,
ServletRequestParameters parameters,
MessagesRepository repository,
Messages messages)
Return the list of created parameter values for this request |
|
void |
setAnnotations(java.lang.annotation.Annotation[] annotations)
|
|
void |
setConverter(Converter converter)
|
|
void |
setEvent(Event event)
|
|
void |
setIndex(int index)
|
|
void |
setItemMetadata(ItemMetadata[] itemMetadata)
|
|
void |
setName(java.lang.String name)
|
|
void |
setParameterType(java.lang.Class<?> parameterType)
|
|
void |
setPropertyAsObject(java.util.Map<java.lang.String,java.lang.Object> parameterValues,
java.lang.String propertyPath,
java.lang.Object value)
Assigns value to some property nested inside this eventParameter |
|
void |
setPropertyBinderFactory(PropertyBinderFactory propertyBinderFactory)
|
|
java.lang.String |
toString()
|
|
void |
validate(java.lang.Object container,
Messages messages)
execute the validations configured for this event parameter |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EventParameter()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public java.lang.Object populate(java.lang.Object container,
ServletRequestParameters parameters,
MessagesRepository repository,
Messages messages)
public void validate(java.lang.Object container,
Messages messages)
container - the event parameter valuemessages - where validation errors will be addedpublic PropertyBinder getPropertyBinder(java.lang.String normalizedPropertyPathWithPrefix)
normalizedPropertyPathWithPrefix - the property path including the parameter namepublic boolean matches(java.lang.String propertyPath)
public java.lang.Object getPropertyAsObject(java.lang.Object container,
java.lang.String propertyPath)
public java.lang.String getPropertyAsString(java.lang.Object container,
java.lang.String propertyPath,
MessagesRepository repository)
public java.lang.String getName()
getName in interface AnnotationContainerpublic void setName(java.lang.String name)
public java.lang.Class<?> getParameterType()
public java.lang.Class getPropertyClass()
AnnotationContainer
getPropertyClass in interface AnnotationContainerpublic void setParameterType(java.lang.Class<?> parameterType)
public Converter getConverter()
public void setConverter(Converter converter)
public void setPropertyBinderFactory(PropertyBinderFactory propertyBinderFactory)
public void addValidator(PropertyValidator validator)
public java.util.Set<PropertyValidator> getValidators(java.lang.String propertyPath)
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
public java.lang.annotation.Annotation[] getAnnotations()
getAnnotations in interface AnnotationContainerpublic <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
getAnnotation in interface AnnotationContainerpublic java.lang.String getDisplayName()
getDisplayName in interface AnnotationContainer
public void setPropertyAsObject(java.util.Map<java.lang.String,java.lang.Object> parameterValues,
java.lang.String propertyPath,
java.lang.Object value)
public Event getEvent()
public void setEvent(Event event)
public int getIndex()
public void setIndex(int index)
public java.lang.Class<?> guessCollectionGenericType()
guessCollectionGenericType in interface AnnotationContainerpublic java.lang.Class<?> guessMapGenericKeyType()
guessMapGenericKeyType in interface AnnotationContainerpublic java.lang.Class<?> guessMapGenericValueType()
guessMapGenericValueType in interface AnnotationContainerpublic boolean isCollection()
isCollection in interface AnnotationContainerpublic boolean isMap()
isMap in interface AnnotationContainerpublic void setItemMetadata(ItemMetadata[] itemMetadata)
public ItemMetadata getItemMetadata(int index)
getItemMetadata in interface AnnotationContainerpublic int getItemMetadataSize()
getItemMetadataSize in interface AnnotationContainer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||