net.sf.fikin.pojostate
Interface MethodMeta

All Known Subinterfaces:
Property
All Known Implementing Classes:
AbstractDecoratorProperty, AbstractMethodMeta, DefaultMethodMeta, DynamicState.DynamicProperty, ExplicitMethodMeta, NEFormatterSelector.NEFMethodMeta, SnapshotState.StaticProperty

public interface MethodMeta

Metadata of an jva.lang.reflect.Method

MethodMeta wraps the actual Method object with user defined method's UI name, description and formatting object.

This metadata objct is instantiated by Selector whenever the method is found suitable for inclusion in State. created on Jun 22, 2005

Version:
$Revision: 1.4 $
Author:
fiykov

Method Summary
 java.lang.String getDescription()
          Property's UI description Descriptions in general are provided by the user in one way or another but automated description generation is also possible.
 java.text.Format getFormat()
          get Property's formatting object Formatting object is responsible to provide the actual Method's value formatting e.g. dates, times, numbers, durations.
 java.lang.reflect.Method getMethod()
          Underlying java.lang.reflect.method object, represented by this Property
 java.lang.String getName()
          Property's UI name.
 

Method Detail

getName

java.lang.String getName()
Property's UI name. This may or may not be the actual Method name behind this object.

Whether this is the actual method's name or some custom defined name it depends on Selector interface.

Returns:
property's UI name

getDescription

java.lang.String getDescription()
Property's UI description

Descriptions in general are provided by the user in one way or another but automated description generation is also possible. This is governed by Selector interface.

Returns:
Property'd UI description if given or null

getFormat

java.text.Format getFormat()
get Property's formatting object

Formatting object is responsible to provide the actual Method's value formatting e.g. dates, times, numbers, durations.

Typically this object is used by Property.getValue() to generate the Property's value.

Returns:
the object used to format the property's UI appearance

getMethod

java.lang.reflect.Method getMethod()
Underlying java.lang.reflect.method object, represented by this Property

Returns:
Returns the method


Copyright © 2005 Nikolay Fiykov. All Rights Reserved.