org.castor.cpa.test.test2996.single
Class Book

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

public class Book
extends Object
implements Serializable

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

Constructor Summary
Book()
           
 
Method Summary
 void deleteIsbn()
           
 long getIsbn()
          Returns the value of field 'isbn'.
 String getTitle()
          Returns the value of field 'title'.
 boolean hasIsbn()
          Method hasIsbn.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setIsbn(long isbn)
          Sets the value of field 'isbn'.
 void setTitle(String title)
          Sets the value of field 'title'.
static Book unmarshalBook(Reader reader)
          Method unmarshalBook.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Book

public Book()
Method Detail

deleteIsbn

public void deleteIsbn()

getIsbn

public long getIsbn()
Returns the value of field 'isbn'.

Returns:
the value of field 'Isbn'.

getTitle

public String getTitle()
Returns the value of field 'title'.

Returns:
the value of field 'Title'.

hasIsbn

public boolean hasIsbn()
Method hasIsbn.

Returns:
true if at least one Isbn 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

setIsbn

public void setIsbn(long isbn)
Sets the value of field 'isbn'.

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

setTitle

public void setTitle(String title)
Sets the value of field 'title'.

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

unmarshalBook

public static Book unmarshalBook(Reader reader)
                          throws MarshalException,
                                 ValidationException
Method unmarshalBook.

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