org.exolab.castor.mapping.loader
Class ClassDescriptorImpl
java.lang.Object
org.exolab.castor.mapping.loader.ClassDescriptorImpl
- ClassDescriptor
public class ClassDescriptorImpl
extends java.lang.Object
A basic class descriptor implementation. Engines will extend this
class to provide additional functionality.
$Revision: 6230 $ $Date: 2006-01-07 15:48:31 -0700 (Sat, 07 Jan 2006) $
_fields
protected final FieldDescriptor[] _fields
The fields described for this class.
_identities
protected final FieldDescriptor[] _identities
The field of the identity for this class.
ClassDescriptorImpl
protected ClassDescriptorImpl(Class javaClass)
Constructor used by derived classes.
ClassDescriptorImpl
public ClassDescriptorImpl(ClassDescriptorImpl clsDesc)
throws MappingException
Constructs a new descriptor for the specified class. When describing
inheritence, the descriptor of the parent class should be used and only
the fields added in this object must be supplied here.
MappingException
- The extended descriptor does not match
a parent class of this type
checkValidity
public void checkValidity(Object object)
throws ValidityException,
IllegalStateException
Checks the object validity. Returns successfully if the object
can be stored, is valid, etc, throws an exception otherwise.
ValidityException
- The object is invalid, a required is
null, or any other validity violation
getExtendedBy
public Collection getExtendedBy()
Returns a collection of class descriptors that extend this class descriptor.
- A collection of class descriptors.
isExtended
public boolean isExtended()
isExtending
public boolean isExtending()
toString
public String toString()
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com