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

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

public class Address
extends Object
implements Serializable

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

Constructor Summary
Address()
           
 
Method Summary
 void deleteId()
           
 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 setId(long id)
          Sets the value of field 'id'.
static Address unmarshalAddress(Reader reader)
          Method unmarshalAddress.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Address

public Address()
Method Detail

deleteId

public void deleteId()

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

setId

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

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

unmarshalAddress

public static Address unmarshalAddress(Reader reader)
                                throws MarshalException,
                                       ValidationException
Method unmarshalAddress.

Parameters:
reader -
Returns:
the unmarshaled org.castor.cpa.test.test2996.onetoone.Address
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.