org.apache.struts.taglib.nested

Class NestedReference

Implemented Interfaces:
Serializable

public class NestedReference
extends java.lang.Object
implements Serializable

So that a nested hierarchy can penetrate a dynamic JSP include, this class will hold the details of a bean name and nested property.
Version:
$Rev: 54929 $
Since:
Struts 1.1

Field Summary

private String
beanName
private String
property

Constructor Summary

NestedReference()
Empty constructor.
NestedReference(String name, String property)
Constructor takes the all the relevant details to init the object.

Method Summary

String
getBeanName()
Getter for the bean name
String
getNestedProperty()
Getter for the nested property
void
setBeanName(String newName)
Setter for the bean name
void
setNestedProperty(String newProperty)
Setter for the nested property

Field Details

beanName

private String beanName

property

private String property

Constructor Details

NestedReference

public NestedReference()
Empty constructor.

NestedReference

public NestedReference(String name,
                       String property)
Constructor takes the all the relevant details to init the object.
Parameters:
name - String name of the bean that the include is to reference
property - String nested property value that the include will be continuing on with.

Method Details

getBeanName

public String getBeanName()
Getter for the bean name
Returns:
String value that will be the bean's reference

getNestedProperty

public String getNestedProperty()
Getter for the nested property
Returns:
String value that is the nested property for the current nesting

setBeanName

public void setBeanName(String newName)
Setter for the bean name
Parameters:
newName - String value to set the bean reference.

setNestedProperty

public void setNestedProperty(String newProperty)
Setter for the nested property
Parameters:
newProperty - String value of the new current nesting level

Copyright B) 2000-2007 - The Apache Software Foundation