org.exolab.castor.mapping
Interface ClassDescriptor

All Superinterfaces:
NatureExtendable, PropertyHolder
All Known Subinterfaces:
XMLClassDescriptor
All Known Implementing Classes:
BaseDescriptor, BaseDescriptor, BindXmlAutoNamingTypeDescriptor, BindXmlDescriptor, BindXmlNodeTypeDescriptor, CacheTypeMappingDescriptor, CenturyDescriptor, ClassChoiceDescriptor, ClassDescriptorImpl, ClassMappingAccessTypeDescriptor, ClassMappingDescriptor, ContainerDescriptor, DateClassDescriptor, DateDescriptor, DateTimeDescriptor, DurationDescriptor, EnumerationDescriptor, FieldHandlerDefDescriptor, FieldMappingCollectionTypeDescriptor, FieldMappingDescriptor, GDayDescriptor, GMonthDayDescriptor, GMonthDescriptor, GYearDescriptor, GYearMonthDescriptor, IncludeDescriptor, KeyGeneratorDefDescriptor, LdapDescriptor, ListClassDescriptor, LocaleDescriptor, MappingRootDescriptor, MapToDescriptor, MonthDescriptor, NamedNativeQueryDescriptor, NamedQueryDescriptor, ParamDescriptor, PrimitivesClassDescriptor, PropertyDescriptor, PropertyTypeDescriptor, QueryHintDescriptor, RecurringDurationDescriptor, RootArrayDescriptor, SQLDateClassDescriptor, SqlDescriptor, SqlDirtyTypeDescriptor, SQLTimeClassDescriptor, SQLTimestampClassDescriptor, StringClassDescriptor, TimeDescriptor, TimeDurationDescriptor, TimePeriodDescriptor, VectorClassDescriptor, XMLClassDescriptorAdapter, XMLClassDescriptorImpl, YearDescriptor

public interface ClassDescriptor
extends PropertyHolder

Describes the properties of a class and its fields. Implementations will extend this interface to provide additional properties.

Version:
$Revision: 8725 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
Author:
Assaf Arkin
See Also:
FieldDescriptor

Method Summary
 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 getIdentity()
          Returns the identity field, null if this class has no identity.
 Class<?> getJavaClass()
          Returns the Java class represented by this descriptor.
 
Methods inherited from interface org.castor.core.nature.PropertyHolder
getProperty, setProperty
 
Methods inherited from interface org.castor.core.nature.NatureExtendable
addNature, hasNature
 

Method Detail

getJavaClass

Class<?> getJavaClass()
Returns the Java class represented by this descriptor.

Returns:
The Java class

getFields

FieldDescriptor[] getFields()
Returns a list of fields represented by this descriptor.

Returns:
A list of fields

getExtends

ClassDescriptor getExtends()
Returns the class descriptor of the class extended by this class.

Returns:
The extended class descriptor

getIdentity

FieldDescriptor getIdentity()
Returns the identity field, null if this class has no identity.

Returns:
The identity field


Copyright © 2011. All Rights Reserved.