| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Property
For use by portlets written to the IBM portlet API.
Encapsulates property information. A property represents a data type which can
be produced or consumed by a portlet. The type information is used by the Property
Broker to determine matches between properties produced by a source portlet and
properties consumed by a target portlet.
If a portlet declares actions in a WSDL file, the Action objects
and their associated
Parameter objects and Property
objects
are created and registered automatically by the runtime.
Each Parameter object is associated with a Property
object.
If actions are not declared in a WSDL file, PropertyFactory may be used to create
instances of Property
. After instantiation, required fields must be set using
setters. If a portlet does not use Actions
,
it may register Property
objects exclusively. Such
properties are not associated with actions, but are "standalone". In this event, the
portlet must also implement the PropertyListener interface,
and changes to property values
will be delivered through the setProperties
method of that interface.
Field Summary | |
---|---|
static int | IN
Deprecated. IN indicates that the portlet produces the property. |
static int | OUT
Deprecated. OUT indicates that the portlet consumes the property. |
Method Summary | |
---|---|
java.lang.String | getClassname()
Deprecated. Returns the fully qualified java class name for the property object. |
java.lang.String | getDefaultValue()
Deprecated. Returns a default value for the property. |
java.lang.String | getDescription()
Deprecated. |
java.lang.String | getDescription(java.util.Locale locale)
Deprecated. Returns a text description for this property for the provided locale. |
int | getDirection()
Deprecated. Returns whether the property is produced or consumed. |
java.lang.String | getName()
Deprecated. Returns the name of the Property .
|
java.lang.String | getNamespace()
Deprecated. Returns a string containing the type namespace. |
java.lang.Object | getOwnerId()
Deprecated. Returns an Object whose hashcode and equals method may be used
to identify the portlet that registered this property.
|
java.lang.String | getTitle()
Deprecated. |
java.lang.String | getTitle(java.util.Locale locale)
Deprecated. Returns a short description for this property for the provided locale. |
java.lang.String | getType()
Deprecated. Returns a string containing the property type. |
boolean | isImplementedBy(PortletSettings caller)
Deprecated. Returns true if the property was registered by the calling portlet. |
void | setClassname(java.lang.String classname)
Deprecated. Sets the name of the java class encapsulating the property value. |
void | setDefaultValue(java.lang.String defaultValue)
Deprecated. Sets a default value for this property. |
void | setDescription(java.lang.String descriptionKey)
Deprecated. |
void | setDescriptionKey(java.lang.String descriptionKey)
Deprecated. Sets the key used for retrieving the localized description. |
void | setDirection(int direction)
Deprecated. Sets the direction of this property, i.e, whether it is produced or consumed. |
void | setLocalizationInfo(java.lang.String nlsFileName,
PortletContext context,
java.util.Locale[] locales)
Deprecated. This data is used to retrieve internationalized versions of the title and description. |
void | setName(java.lang.String name)
Deprecated. Sets the name of the property. |
void | setNamespace(java.lang.String namespace)
Deprecated. Sets the namespace of the property. |
void | setTitle(java.lang.String titleKey)
Deprecated. |
void | setTitleKey(java.lang.String titleKey)
Deprecated. Sets the key used for retrieving the localized title. |
void | setType(java.lang.String type)
Deprecated. Sets the type of the property. |
Field Detail |
---|
static final int IN
static final int OUT
Method Detail |
---|
java.lang.String getName()
Property
.
Property names must be unique within a portlet instance.
The name is a required field (i.e.
must not be null).
String
containing the name of the property.java.lang.String getType()
String
containing the property type.java.lang.String getNamespace()
String
containing the type namespace.java.lang.String getClassname()
int getDirection()
int
indicating the direction (IN, OUT
constants defined in this class).java.lang.String getTitle()
java.lang.String getTitle(java.util.Locale locale)
java.lang.String getDescription()
java.lang.String getDescription(java.util.Locale locale)
java.lang.String getDefaultValue()
java.lang.Object getOwnerId()
Object
whose hashcode and equals method may be used
to identify the portlet that registered this property.
Object
identifying the portlet which registered this propertyboolean isImplementedBy(PortletSettings caller)
void setName(java.lang.String name)
void setType(java.lang.String type)
void setNamespace(java.lang.String namespace)
void setClassname(java.lang.String classname)
void setDirection(int direction) throws InvalidPropertyException
IN
or OUT
constants defined in this class
IN
, OUT
,
getDirection()void setTitle(java.lang.String titleKey)
setTitleKey
instead.
void setTitleKey(java.lang.String titleKey)
setLocalizationInfo
.
void setDescription(java.lang.String descriptionKey)
setDescriptionKey
instead.
void setDescriptionKey(java.lang.String descriptionKey)
setLocalizationInfo
.
void setLocalizationInfo(java.lang.String nlsFileName, PortletContext context, java.util.Locale[] locales)
Property
is set
as a result of registering an Action,
the localization info for the Action
will be used. This method only needs to be invoked if the Property
is registered standalone, i.e, not associated with an Action.
void setDefaultValue(java.lang.String defaultValue)
java.lang.String
.
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |