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

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

public class House
extends Object
implements Serializable

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

Constructor Summary
House()
           
 
Method Summary
 void addFlats(Flat vFlats)
           
 void addFlats(int index, Flat vFlats)
           
 void deleteId()
           
 Enumeration<? extends Flat> enumerateFlats()
          Method enumerateFlats.
 Flat[] getFlats()
          Method getFlats.Returns the contents of the collection in an Array.
 Flat getFlats(int index)
          Method getFlats.
 int getFlatsCount()
          Method getFlatsCount.
 long getId()
          Returns the value of field 'id'.
 boolean hasId()
          Method hasId.
 boolean isValid()
          Method isValid.
 Iterator<? extends Flat> iterateFlats()
          Method iterateFlats.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllFlats()
           
 boolean removeFlats(Flat vFlats)
          Method removeFlats.
 Flat removeFlatsAt(int index)
          Method removeFlatsAt.
 void setFlats(Flat[] vFlatsArray)
           
 void setFlats(int index, Flat vFlats)
           
 void setId(long id)
          Sets the value of field 'id'.
static House unmarshalHouse(Reader reader)
          Method unmarshalHouse.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

House

public House()
Method Detail

addFlats

public void addFlats(Flat vFlats)
              throws IndexOutOfBoundsException
Parameters:
vFlats -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

addFlats

public void addFlats(int index,
                     Flat vFlats)
              throws IndexOutOfBoundsException
Parameters:
index -
vFlats -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

deleteId

public void deleteId()

enumerateFlats

public Enumeration<? extends Flat> enumerateFlats()
Method enumerateFlats.

Returns:
an Enumeration over all possible elements of this collection

getFlats

public Flat getFlats(int index)
              throws IndexOutOfBoundsException
Method getFlats.

Parameters:
index -
Returns:
the value of the org.castor.cpa.test.test2996.onetomany.Flat at the given inde
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

getFlats

public Flat[] getFlats()
Method getFlats.Returns the contents of the collection in an Array.

Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.

Returns:
this collection as an Array

getFlatsCount

public int getFlatsCount()
Method getFlatsCount.

Returns:
the size of this collection

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

iterateFlats

public Iterator<? extends Flat> iterateFlats()
Method iterateFlats.

Returns:
an Iterator over all possible elements in this collection

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

removeAllFlats

public void removeAllFlats()

removeFlats

public boolean removeFlats(Flat vFlats)
Method removeFlats.

Parameters:
vFlats -
Returns:
true if the object was removed from the collection.

removeFlatsAt

public Flat removeFlatsAt(int index)
Method removeFlatsAt.

Parameters:
index -
Returns:
the element removed from the collection

setFlats

public void setFlats(int index,
                     Flat vFlats)
              throws IndexOutOfBoundsException
Parameters:
index -
vFlats -
Throws:
IndexOutOfBoundsException - if the index given is outside the bounds of the collection

setFlats

public void setFlats(Flat[] vFlatsArray)
Parameters:
vFlatsArray -

setId

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

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

unmarshalHouse

public static House unmarshalHouse(Reader reader)
                            throws MarshalException,
                                   ValidationException
Method unmarshalHouse.

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