org.exolab.castor.mapping.xml
Class ClassMapping

java.lang.Object
  extended by org.exolab.castor.mapping.xml.ClassMapping
All Implemented Interfaces:
java.io.Serializable

public class ClassMapping
extends java.lang.Object
implements java.io.Serializable

Class ClassMapping.

Version:
$Revision: 6104 $ $Date: 2006-01-07 15:48:31 -0700 (Sat, 07 Jan 2006) $
See Also:
Serialized Form

Constructor Summary
ClassMapping()
           
 
Method Summary
 void addIdentity(int index, java.lang.String vIdentity)
          Method addIdentity
 void addIdentity(java.lang.String vIdentity)
          Method addIdentity
 void addNamedQuery(int index, NamedQuery vNamedQuery)
          Method addNamedQuery
 void addNamedQuery(NamedQuery vNamedQuery)
          Method addNamedQuery
 void clearIdentity()
          Method clearIdentity
 void clearNamedQuery()
          Method clearNamedQuery
 void deleteAutoComplete()
          Method deleteAutoComplete
 void deleteVerifyConstructable()
          Method deleteVerifyConstructable
 java.util.Enumeration enumerateIdentity()
          Method enumerateIdentity
 java.util.Enumeration enumerateNamedQuery()
          Method enumerateNamedQuery
 ClassMappingAccessType getAccess()
          Returns the value of field 'access'.
 boolean getAutoComplete()
          Returns the value of field 'autoComplete'.
 CacheTypeMapping getCacheTypeMapping()
          Returns the value of field 'cacheTypeMapping'.
 ClassChoice getClassChoice()
          Returns the value of field 'classChoice'.
 java.lang.Object getDepends()
          Returns the value of field 'depends'.
 java.lang.String getDescription()
          Returns the value of field 'description'.
 java.lang.Object getExtends()
          Returns the value of field 'extends'.
 java.lang.String[] getIdentity()
          Method getIdentity
 java.lang.String getIdentity(int index)
          Method getIdentity
 int getIdentityCount()
          Method getIdentityCount
 java.lang.String getKeyGenerator()
          Returns the value of field 'keyGenerator'.
 MapTo getMapTo()
          Returns the value of field 'mapTo'.
 java.lang.String getName()
          Returns the value of field 'name'.
 NamedQuery[] getNamedQuery()
          Method getNamedQuery
 NamedQuery getNamedQuery(int index)
          Method getNamedQuery
 int getNamedQueryCount()
          Method getNamedQueryCount
 boolean getVerifyConstructable()
          Returns the value of field 'verifyConstructable'.
 boolean hasAutoComplete()
          Method hasAutoComplete
 boolean hasVerifyConstructable()
          Method hasVerifyConstructable
 boolean isValid()
          Method isValid
 void marshal(org.xml.sax.ContentHandler handler)
          Method marshal
 void marshal(java.io.Writer out)
          Method marshal
 boolean removeIdentity(java.lang.String vIdentity)
          Method removeIdentity
 boolean removeNamedQuery(NamedQuery vNamedQuery)
          Method removeNamedQuery
 void setAccess(ClassMappingAccessType access)
          Sets the value of field 'access'.
 void setAutoComplete(boolean autoComplete)
          Sets the value of field 'autoComplete'.
 void setCacheTypeMapping(CacheTypeMapping cacheTypeMapping)
          Sets the value of field 'cacheTypeMapping'.
 void setClassChoice(ClassChoice classChoice)
          Sets the value of field 'classChoice'.
 void setDepends(java.lang.Object depends)
          Sets the value of field 'depends'.
 void setDescription(java.lang.String description)
          Sets the value of field 'description'.
 void setExtends(java.lang.Object _extends)
          Sets the value of field 'extends'.
 void setIdentity(int index, java.lang.String vIdentity)
          Method setIdentity
 void setIdentity(java.lang.String[] identityArray)
          Method setIdentity
 void setKeyGenerator(java.lang.String keyGenerator)
          Sets the value of field 'keyGenerator'.
 void setMapTo(MapTo mapTo)
          Sets the value of field 'mapTo'.
 void setName(java.lang.String name)
          Sets the value of field 'name'.
 void setNamedQuery(int index, NamedQuery vNamedQuery)
          Method setNamedQuery
 void setNamedQuery(NamedQuery[] namedQueryArray)
          Method setNamedQuery
 void setVerifyConstructable(boolean verifyConstructable)
          Sets the value of field 'verifyConstructable'.
static ClassMapping unmarshal(java.io.Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassMapping

public ClassMapping()
Method Detail

addIdentity

public void addIdentity(java.lang.String vIdentity)
                 throws java.lang.IndexOutOfBoundsException
Method addIdentity

Parameters:
vIdentity -
Throws:
java.lang.IndexOutOfBoundsException

addIdentity

public void addIdentity(int index,
                        java.lang.String vIdentity)
                 throws java.lang.IndexOutOfBoundsException
Method addIdentity

Parameters:
index -
vIdentity -
Throws:
java.lang.IndexOutOfBoundsException

addNamedQuery

public void addNamedQuery(NamedQuery vNamedQuery)
                   throws java.lang.IndexOutOfBoundsException
Method addNamedQuery

Parameters:
vNamedQuery -
Throws:
java.lang.IndexOutOfBoundsException

addNamedQuery

public void addNamedQuery(int index,
                          NamedQuery vNamedQuery)
                   throws java.lang.IndexOutOfBoundsException
Method addNamedQuery

Parameters:
index -
vNamedQuery -
Throws:
java.lang.IndexOutOfBoundsException

clearIdentity

public void clearIdentity()
Method clearIdentity


clearNamedQuery

public void clearNamedQuery()
Method clearNamedQuery


deleteAutoComplete

public void deleteAutoComplete()
Method deleteAutoComplete


deleteVerifyConstructable

public void deleteVerifyConstructable()
Method deleteVerifyConstructable


enumerateIdentity

public java.util.Enumeration enumerateIdentity()
Method enumerateIdentity

Returns:
Enumeration

enumerateNamedQuery

public java.util.Enumeration enumerateNamedQuery()
Method enumerateNamedQuery

Returns:
Enumeration

getAccess

public ClassMappingAccessType getAccess()
Returns the value of field 'access'.

Returns:
ClassMappingAccessType

getAutoComplete

public boolean getAutoComplete()
Returns the value of field 'autoComplete'.

Returns:
boolean

getCacheTypeMapping

public CacheTypeMapping getCacheTypeMapping()
Returns the value of field 'cacheTypeMapping'.

Returns:
CacheTypeMapping

getClassChoice

public ClassChoice getClassChoice()
Returns the value of field 'classChoice'.

Returns:
ClassChoice

getDepends

public java.lang.Object getDepends()
Returns the value of field 'depends'.

Returns:
Object

getDescription

public java.lang.String getDescription()
Returns the value of field 'description'.

Returns:
String

getExtends

public java.lang.Object getExtends()
Returns the value of field 'extends'.

Returns:
Object

getIdentity

public java.lang.String getIdentity(int index)
                             throws java.lang.IndexOutOfBoundsException
Method getIdentity

Parameters:
index -
Returns:
String
Throws:
java.lang.IndexOutOfBoundsException

getIdentity

public java.lang.String[] getIdentity()
Method getIdentity

Returns:
String

getIdentityCount

public int getIdentityCount()
Method getIdentityCount

Returns:
int

getKeyGenerator

public java.lang.String getKeyGenerator()
Returns the value of field 'keyGenerator'.

Returns:
String

getMapTo

public MapTo getMapTo()
Returns the value of field 'mapTo'.

Returns:
MapTo

getName

public java.lang.String getName()
Returns the value of field 'name'.

Returns:
String

getNamedQuery

public NamedQuery getNamedQuery(int index)
                         throws java.lang.IndexOutOfBoundsException
Method getNamedQuery

Parameters:
index -
Returns:
NamedQuery
Throws:
java.lang.IndexOutOfBoundsException

getNamedQuery

public NamedQuery[] getNamedQuery()
Method getNamedQuery

Returns:
NamedQuery

getNamedQueryCount

public int getNamedQueryCount()
Method getNamedQueryCount

Returns:
int

getVerifyConstructable

public boolean getVerifyConstructable()
Returns the value of field 'verifyConstructable'.

Returns:
boolean

hasAutoComplete

public boolean hasAutoComplete()
Method hasAutoComplete

Returns:
boolean

hasVerifyConstructable

public boolean hasVerifyConstructable()
Method hasVerifyConstructable

Returns:
boolean

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(java.io.Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    MarshalException,
                    ValidationException
Method marshal

Parameters:
handler -
Throws:
java.io.IOException
MarshalException
ValidationException

removeIdentity

public boolean removeIdentity(java.lang.String vIdentity)
Method removeIdentity

Parameters:
vIdentity -
Returns:
boolean

removeNamedQuery

public boolean removeNamedQuery(NamedQuery vNamedQuery)
Method removeNamedQuery

Parameters:
vNamedQuery -
Returns:
boolean

setAccess

public void setAccess(ClassMappingAccessType access)
Sets the value of field 'access'.

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

setAutoComplete

public void setAutoComplete(boolean autoComplete)
Sets the value of field 'autoComplete'.

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

setCacheTypeMapping

public void setCacheTypeMapping(CacheTypeMapping cacheTypeMapping)
Sets the value of field 'cacheTypeMapping'.

Parameters:
cacheTypeMapping - the value of field 'cacheTypeMapping'

setClassChoice

public void setClassChoice(ClassChoice classChoice)
Sets the value of field 'classChoice'.

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

setDepends

public void setDepends(java.lang.Object depends)
Sets the value of field 'depends'.

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

setDescription

public void setDescription(java.lang.String description)
Sets the value of field 'description'.

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

setExtends

public void setExtends(java.lang.Object _extends)
Sets the value of field 'extends'.

Parameters:
_extends -
extends - the value of field 'extends'.

setIdentity

public void setIdentity(int index,
                        java.lang.String vIdentity)
                 throws java.lang.IndexOutOfBoundsException
Method setIdentity

Parameters:
index -
vIdentity -
Throws:
java.lang.IndexOutOfBoundsException

setIdentity

public void setIdentity(java.lang.String[] identityArray)
Method setIdentity

Parameters:
identityArray -

setKeyGenerator

public void setKeyGenerator(java.lang.String keyGenerator)
Sets the value of field 'keyGenerator'.

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

setMapTo

public void setMapTo(MapTo mapTo)
Sets the value of field 'mapTo'.

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

setName

public void setName(java.lang.String name)
Sets the value of field 'name'.

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

setNamedQuery

public void setNamedQuery(int index,
                          NamedQuery vNamedQuery)
                   throws java.lang.IndexOutOfBoundsException
Method setNamedQuery

Parameters:
index -
vNamedQuery -
Throws:
java.lang.IndexOutOfBoundsException

setNamedQuery

public void setNamedQuery(NamedQuery[] namedQueryArray)
Method setNamedQuery

Parameters:
namedQueryArray -

setVerifyConstructable

public void setVerifyConstructable(boolean verifyConstructable)
Sets the value of field 'verifyConstructable'.

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

unmarshal

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

Parameters:
reader -
Returns:
ClassMapping
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException


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