org.exolab.castor.mapping.loader
public class ClassDescriptorImpl extends Object implements ClassDescriptor
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:08:29 $
Field Summary | |
---|---|
protected FieldDescriptor[] | _fields
The fields described for this class. |
protected FieldDescriptor[] | _identities
The field of the identity for this class. |
Constructor Summary | |
---|---|
ClassDescriptorImpl(Class javaClass, FieldDescriptor[] fields, FieldDescriptor[] identities, ClassDescriptor extend, ClassDescriptor depend, AccessMode accessMode)
Constructs a new descriptor for the specified class. | |
ClassDescriptorImpl(Class javaClass, FieldDescriptor[] fields, FieldDescriptor[] identities, ClassDescriptor extend, ClassDescriptor depend, AccessMode accessMode, boolean verifyConstructable)
Constructs a new descriptor for the specified class. | |
protected | ClassDescriptorImpl(Class javaClass)
Constructor used by derived classes. |
Method Summary | |
---|---|
void | checkValidity(Object object)
Checks the object validity. |
AccessMode | getAccessMode() |
ClassDescriptor | getDepends() |
ClassDescriptor | getExtends() |
FieldDescriptor[] | getFields() |
FieldDescriptor[] | getIdentities() |
FieldDescriptor | getIdentity() |
Class | getJavaClass() |
ClassMapping | getMapping() |
void | setMapping(ClassMapping map) |
String | toString() |
Parameters: javaClass The Java type of this class fields The fields described for this class identity The field of the identity (key) of this class, may be null extend The descriptor of the class which this class extends, accessMode The access mode for this class (null is shared) or null if this is a top-level class
Throws: MappingException The extended descriptor does not match a parent class of this type
Parameters: javaClass The Java type of this class fields The fields described for this class identity The field of the identity (key) of this class, may be null extend The descriptor of the class which this class extends, accessMode The access mode for this class (null is shared) or null if this is a top-level class
Throws: MappingException The extended descriptor does not match a parent class of this type
Parameters: object The object
Throws: ValidityException The object is invalid, a required is null, or any other validity violation IllegalStateException The Java object has changed and is no longer supported by this handler, or the handler is not compatiable with the Java object