org.exolab.castor.xml.schema.annotations.jdo
Class Column

java.lang.Object
  extended by org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyType
      extended by org.exolab.castor.xml.schema.annotations.jdo.Column
All Implemented Interfaces:
java.io.Serializable

public class Column
extends ReadonlyDirtyType
implements java.io.Serializable

Element 'column' is used to specify the column where the property of an object will be saved.

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

Constructor Summary
Column()
           
 
Method Summary
 void deleteAcceptNull()
           
 boolean getAcceptNull()
          Returns the value of field 'acceptNull'.
 java.lang.String getName()
          Returns the value of field 'name'.
 java.lang.String getType()
          Returns the value of field 'type'.
 boolean hasAcceptNull()
          Method hasAcceptNull.
 boolean isAcceptNull()
          Returns the value of field 'acceptNull'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setAcceptNull(boolean acceptNull)
          Sets the value of field 'acceptNull'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setType(java.lang.String type)
          Sets the value of field 'type'.
static ReadonlyDirtyType unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyType
deleteDirty, deleteReadOnly, getDirty, getReadOnly, hasDirty, hasReadOnly, isDirty, isReadOnly, setDirty, setReadOnly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column()
Method Detail

deleteAcceptNull

public void deleteAcceptNull()

getAcceptNull

public boolean getAcceptNull()
Returns the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.

Returns:
the value of field 'AcceptNull'.

getName

public java.lang.String getName()
Returns the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the column.

Returns:
the value of field 'Name'.

getType

public java.lang.String getType()
Returns the value of field 'type'. The field 'type' has the following description: Attribute 'type' is used to specify the JDO-type of the column.

Returns:
the value of field 'Type'.

hasAcceptNull

public boolean hasAcceptNull()
Method hasAcceptNull.

Returns:
true if at least one AcceptNull has been added

isAcceptNull

public boolean isAcceptNull()
Returns the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.

Returns:
the value of field 'AcceptNull'.

isValid

public boolean isValid()
Method isValid.

Overrides:
isValid in class ReadonlyDirtyType
Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Overrides:
marshal in class ReadonlyDirtyType
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(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Overrides:
marshal in class ReadonlyDirtyType
Parameters:
handler -
Throws:
java.io.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

setAcceptNull

public void setAcceptNull(boolean acceptNull)
Sets the value of field 'acceptNull'. The field 'acceptNull' has the following description: Specifies if this field accepts NULL values or not.

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'. The field 'name' has the following description: Attribute 'name' is used to specify the name of the column.

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

setType

public void setType(java.lang.String type)
Sets the value of field 'type'. The field 'type' has the following description: Attribute 'type' is used to specify the JDO-type of the column.

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

unmarshal

public static ReadonlyDirtyType unmarshal(java.io.Reader reader)
                                   throws MarshalException,
                                          ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled org.exolab.castor.xml.schema.annotations.jdo.ReadonlyDirtyTyp
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
Overrides:
validate in class ReadonlyDirtyType
Throws:
ValidationException - if this object is an invalid instance according to the schema


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com