FileDocCategorySizeDatePackage
AttributeBean.javaAPI DocApache Axis 1.43875Sat Apr 22 18:57:28 BST 2006test.encoding

AttributeBean

public class AttributeBean extends ParentBean
Simple Java Bean with fields that should be serialized as attributes

Fields Summary
private int
age
private float
iD
public String
company
private String
name
private boolean
male
private static org.apache.axis.description.TypeDesc
typeDesc
Constructors Summary
public AttributeBean()

public AttributeBean(int age, float iD, String name, String company, boolean male)

        this.age = age;
        this.iD = iD;
        this.name = name;
        this.male = male;
        this.company = company;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if (obj == null || !(obj instanceof AttributeBean))
            return false;
        AttributeBean other = (AttributeBean)obj;
        if (other.getAge() != age)
            return false;
        if (other.getID() != iD)
            return false;
        if (other.getMale() != male)
            return false;
        if (name == null) {
            if (other.getName() != null) {
                return false;
            }
        }else if (!name.equals(other.getName())) {
            return false;
        }
        if (company == null) {
            if (other.company != null) {
                return false;
            }
        } else if (!company.equals(other.company)) {
            return false;
        }
        if (getParentFloat() != other.getParentFloat())
            return false;
        if (getParentStr() != null) {
            return getParentStr().equals(other.getParentStr());
        }
        return other.getParentStr() == null;
    
public intgetAge()

        return age;
    
public floatgetID()

        return iD;
    
public booleangetMale()

        return male;
    
public java.lang.StringgetName()

        return name;
    
public static org.apache.axis.description.TypeDescgetTypeDesc()

        typeDesc = new TypeDesc(AttributeBean.class);
        FieldDesc field;

        // An attribute with a specified QName
        field = new AttributeDesc();
        field.setFieldName("name");
        field.setXmlName(new QName("foo", "nameAttr"));
        typeDesc.addFieldDesc(field);

        // An attribute with a default QName
        field = new AttributeDesc();
        field.setFieldName("male");
        typeDesc.addFieldDesc(field);

        // An element with a specified QName
        field = new ElementDesc();
        field.setFieldName("age");
        field.setXmlName(new QName("foo", "ageElement"));
        typeDesc.addFieldDesc(field);
    
        return typeDesc;
    
public voidsetAge(int age)

        this.age = age;
    
public voidsetID(float iD)

        this.iD = iD;
    
public voidsetMale(boolean male)

        this.male = male;
    
public voidsetName(java.lang.String name)

        this.name = name;