org.castor.cpa.test.test2996.onetomany
Class Flat

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

public class Flat
extends Object
implements Serializable

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

Constructor Summary
Flat()
           
 
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 Flat unmarshalFlat(Reader reader)
          Method unmarshalFlat.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flat

public Flat()
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'.

unmarshalFlat

public static Flat unmarshalFlat(Reader reader)
                          throws MarshalException,
                                 ValidationException
Method unmarshalFlat.

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