org.apache.commons.beanutils.locale

Class LocaleBeanUtilsBean.Descriptor

Enclosing Class:
LocaleBeanUtilsBean

protected class LocaleBeanUtilsBean.Descriptor
extends java.lang.Object

Field Summary

private int
index
private String
key
private String
name
private String
propName
private Object
target

Constructor Summary

Descriptor(Object target, String name, String propName, String key, int index)
Construct a descriptor instance for the target bean and property.

Method Summary

int
getIndex()
Return indexed property index.
String
getKey()
Return the mapped property key.
String
getName()
Return property name (includes indexed/mapped expr).
String
getPropName()
Return the property name.
Object
getTarget()
Return the target bean.
void
setIndex(int index)
Set the indexed property index.
void
setKey(String key)
Set the mapped property key.
void
setName(String name)
Set the property name (includes indexed/mapped expr).
void
setPropName(String propName)
Set the property name.
void
setTarget(Object target)
Set the target bean.

Field Details

index

private int index

key

private String key

name

private String name

propName

private String propName

target

private Object target

Constructor Details

Descriptor

public Descriptor(Object target,
                  String name,
                  String propName,
                  String key,
                  int index)
Construct a descriptor instance for the target bean and property.
Parameters:
target - The target bean
name - The property name (includes indexed/mapped expr)
propName - The property name
key - The mapped property key (if any)
index - The indexed property index (if any)

Method Details

getIndex

public int getIndex()
Return indexed property index.
Returns:
indexed property index (if any)

getKey

public String getKey()
Return the mapped property key.
Returns:
the mapped property key (if any)

getName

public String getName()
Return property name (includes indexed/mapped expr).
Returns:
The property name (includes indexed/mapped expr)

getPropName

public String getPropName()
Return the property name.
Returns:
The property name

getTarget

public Object getTarget()
Return the target bean.
Returns:
The descriptors target bean

setIndex

public void setIndex(int index)
Set the indexed property index.
Parameters:
index - The indexed property index (if any)

setKey

public void setKey(String key)
Set the mapped property key.
Parameters:
key - The mapped property key (if any)

setName

public void setName(String name)
Set the property name (includes indexed/mapped expr).
Parameters:
name - The property name (includes indexed/mapped expr)

setPropName

public void setPropName(String propName)
Set the property name.
Parameters:
propName - The property name

setTarget

public void setTarget(Object target)
Set the target bean.
Parameters:
target - The target bean

Copyright (c) 2001-2007 - Apache Software Foundation