org.castor.cpa.test.test2996.onetoone
Class Employee

java.lang.Object
  extended by org.castor.cpa.test.test2996.onetoone.Employee
All Implemented Interfaces:
Serializable

public class Employee
extends Object
implements Serializable

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Employee()
           
 
Method Summary
 void deleteId()
           
 Address getAddress()
          Returns the value of field 'address'.
 long getId()
          Returns the value of field 'id'.
 boolean hasId()
          Method hasId.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setAddress(Address address)
          Sets the value of field 'address'.
 void setId(long id)
          Sets the value of field 'id'.
static Employee unmarshalEmployee(Reader reader)
          Method unmarshalEmployee.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Employee

public Employee()
Method Detail

deleteId

public void deleteId()

getAddress

public Address getAddress()
Returns the value of field 'address'.

Returns:
the value of field 'Address'.

getId

public long getId()
Returns the value of field 'id'.

Returns:
the value of field 'Id'.

hasId

public boolean hasId()
Method hasId.

Returns:
true if at least one Id has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Parameters:
out -
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Parameters:
handler -
Throws:
IOException - if an IOException occurs during marshaling
ValidationException - if this object is an invalid instance according to the schema
MarshalException - if object is null or if any SAXException is thrown during marshaling

setAddress

public void setAddress(Address address)
Sets the value of field 'address'.

Parameters:
address - the value of field 'address'.

setId

public void setId(long id)
Sets the value of field 'id'.

Parameters:
id - the value of field 'id'.

unmarshalEmployee

public static Employee unmarshalEmployee(Reader reader)
                                  throws MarshalException,
                                         ValidationException
Method unmarshalEmployee.

Parameters:
reader -
Returns:
the unmarshaled org.castor.cpa.test.test2996.onetoone.Employee
Throws:
MarshalException - if object is null or if any SAXException is thrown during marshaling
ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws ValidationException
Throws:
ValidationException - if this object is an invalid instance according to the schema


Copyright © 2012. All Rights Reserved.