|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.mapping.loader.ClassDescriptorImpl
A basic class descriptor implementation. Engines will extend this class to provide additional functionality.
Field Summary | |
---|---|
protected FieldDescriptor[] |
_fields
The fields described for this class. |
protected FieldDescriptor[] |
_identities
The field of the identity for this class. |
Constructor Summary | |
---|---|
protected |
ClassDescriptorImpl(java.lang.Class javaClass)
Constructor used by derived classes. |
|
ClassDescriptorImpl(java.lang.Class javaClass,
FieldDescriptor[] fields,
FieldDescriptor[] identities,
ClassDescriptor extend,
ClassDescriptor depend,
AccessMode accessMode)
Constructs a new descriptor for the specified class. |
|
ClassDescriptorImpl(java.lang.Class javaClass,
FieldDescriptor[] fields,
FieldDescriptor[] identities,
ClassDescriptor extend,
ClassDescriptor depend,
AccessMode accessMode,
boolean verifyConstructable)
Constructs a new descriptor for the specified class. |
Method Summary | |
---|---|
void |
checkValidity(java.lang.Object object)
Checks the object validity. |
AccessMode |
getAccessMode()
Returns the access mode specified for this class. |
ClassDescriptor |
getDepends()
|
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()
|
void |
setMapping(ClassMapping map)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected final FieldDescriptor[] _fields
protected final FieldDescriptor[] _identities
Constructor Detail |
public ClassDescriptorImpl(java.lang.Class javaClass, FieldDescriptor[] fields, FieldDescriptor[] identities, ClassDescriptor extend, ClassDescriptor depend, AccessMode accessMode) throws MappingException
javaClass
- The Java type of this classfields
- The fields described for this classextend
- 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
MappingException
- The extended descriptor does not match
a parent class of this typepublic ClassDescriptorImpl(java.lang.Class javaClass, FieldDescriptor[] fields, FieldDescriptor[] identities, ClassDescriptor extend, ClassDescriptor depend, AccessMode accessMode, boolean verifyConstructable) throws MappingException
javaClass
- The Java type of this classfields
- The fields described for this classextend
- 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
MappingException
- The extended descriptor does not match
a parent class of this typeprotected ClassDescriptorImpl(java.lang.Class javaClass)
Method Detail |
public ClassMapping getMapping()
public void setMapping(ClassMapping map)
public java.lang.Class getJavaClass()
ClassDescriptor
getJavaClass
in interface ClassDescriptor
public FieldDescriptor[] getFields()
ClassDescriptor
getFields
in interface ClassDescriptor
public ClassDescriptor getExtends()
ClassDescriptor
getExtends
in interface ClassDescriptor
public ClassDescriptor getDepends()
public FieldDescriptor getIdentity()
ClassDescriptor
getIdentity
in interface ClassDescriptor
public FieldDescriptor[] getIdentities()
public AccessMode getAccessMode()
ClassDescriptor
getAccessMode
in interface ClassDescriptor
public void checkValidity(java.lang.Object object) throws ValidityException, java.lang.IllegalStateException
object
- The object
ValidityException
- The object is invalid, a required is
null, or any other validity violation
java.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |