blob: 8a03b4994e17adc70e0e0be460392f38ec5970c0 [file] [log] [blame]
package beans;
import java.math.BigInteger;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
public class MyBean
{
public String getStringProperty()
{
return "";
}
public int getIntegerProperty()
{
return 0;
}
public boolean getBooleanProperty()
{
return false;
}
public double getDoubleProperty()
{
return 1.04;
}
public Map getMapProperty()
{
return Collections.EMPTY_MAP;
}
public String[] getStringArrayProperty()
{
return new String[0];
}
public Collection getCollectionProperty()
{
return Collections.EMPTY_LIST;
}
public List getListProperty()
{
return Collections.EMPTY_LIST;
}
public Comparable getComparableProperty()
{
return null;
}
public BigInteger getBigIntegerProperty()
{
return BigInteger.ONE;
}
public BigDecimal getBigDoubleProperty()
{
return new BigDecimal(0.5);
}
public MyBean recursiveCall()
{
return this;
}
public String getWritableStringProperty()
{
return "";
}
public void setWritableStringProperty(String newValue)
{
;
}
public void validate(FacesContext facesContext,
UIComponent component,
Object object
)
{
}
public void validate2(FacesContext facesContext,
UIComponent component,
Object[] object
)
{
}
public MyBean getSelf()
{
return this;
}
public boolean isIsStyleBooleanProperty()
{
return false;
}
public int[] getIntArrayProperty()
{
return new int[] {0, 1, 2};
}
public String[][] getArrayOfArrayOfStringProperty()
{
return new String[3][];
}
public ArrayElementType[] getArrayElements()
{
return new ArrayElementType[] {new ArrayElementType()};
}
private static class ArrayElementType
{
public String getName()
{
return "foo";
}
}
public MyEnum1 getCoins() {
return MyEnum1.dime;
}
public MyEnum2 getColors() {
return MyEnum2.red;
}
public java.lang.Enum getRawEnum()
{
// doesn't matter what we return as long as is an enum
return MyEnum2.red;
}
public java.lang.Enum<MyEnum1> getCoinEnum()
{
// doesn't matter what we return as long as is an enum of type MyEnum1
return MyEnum1.dime;
}
}