public class ClassDescriptorImpl extends java.lang.Object implements ClassDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected FieldDescriptor[] |
_fields
The fields described for this class.
|
protected FieldDescriptor[] |
_identities
The field of the identity for this class.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ClassDescriptorImpl(java.lang.Class javaClass)
Constructor used by derived classes.
|
|
ClassDescriptorImpl(ClassDescriptorImpl clsDesc)
Constructs a new descriptor for the specified class.
|
|
ClassDescriptorImpl(ClassMapping map,
java.lang.Class javaClass,
FieldDescriptor[] fields,
FieldDescriptor[] identities,
ClassDescriptor extend,
ClassDescriptor depend) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExtendedBy(ClassDescriptor classDesc) |
void |
checkValidity(java.lang.Object object)
Checks the object validity.
|
AccessMode |
getAccessMode()
Returns the access mode specified for this class.
|
ClassDescriptor |
getDepends() |
java.util.Collection |
getExtendedBy()
Returns a collection of class descriptors that extend this class descriptor.
|
ClassDescriptor |
getExtends()
Returns the class descriptor of the class extended by this class.
|
FieldDescriptor[] |
getFields()
Returns a list of fields represented by this descriptor.
|
FieldDescriptor[] |
getIdentities() |
FieldDescriptor |
getIdentity()
Returns the identity field, null if this class has no identity.
|
java.lang.Class |
getJavaClass()
Returns the Java class represented by this descriptor.
|
ClassMapping |
getMapping() |
boolean |
isExtended() |
boolean |
isExtending() |
java.lang.String |
toString() |
protected final FieldDescriptor[] _fields
protected final FieldDescriptor[] _identities
public ClassDescriptorImpl(ClassDescriptorImpl clsDesc) throws MappingException
MappingException - The extended descriptor does not match
a parent class of this typepublic ClassDescriptorImpl(ClassMapping map, java.lang.Class javaClass, FieldDescriptor[] fields, FieldDescriptor[] identities, ClassDescriptor extend, ClassDescriptor depend) throws MappingException
MappingExceptionprotected ClassDescriptorImpl(java.lang.Class javaClass)
public ClassMapping getMapping()
public java.lang.Class getJavaClass()
ClassDescriptorgetJavaClass in interface ClassDescriptorpublic FieldDescriptor[] getFields()
ClassDescriptorgetFields in interface ClassDescriptorpublic ClassDescriptor getExtends()
ClassDescriptorgetExtends in interface ClassDescriptorpublic boolean isExtending()
public java.util.Collection getExtendedBy()
public boolean isExtended()
public void addExtendedBy(ClassDescriptor classDesc)
public ClassDescriptor getDepends()
public FieldDescriptor getIdentity()
ClassDescriptorgetIdentity in interface ClassDescriptorpublic FieldDescriptor[] getIdentities()
public AccessMode getAccessMode()
ClassDescriptorgetAccessMode in interface ClassDescriptorpublic void checkValidity(java.lang.Object object)
throws ValidityException,
java.lang.IllegalStateException
object - The objectValidityException - The object is invalid, a required is
null, or any other validity violationjava.lang.IllegalStateException - The Java object has changed and
is no longer supported by this handler, or the handler
is not compatiable with the Java objectpublic java.lang.String toString()
toString in class java.lang.ObjectIntalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com