org.castor.core.nature
Interface NatureExtendable

All Known Subinterfaces:
ClassDescriptor, ClassDescriptorResolutionCommand, FieldDescriptor, PropertyHolder, XMLClassDescriptor, XMLFieldDescriptor
All Known Implementing Classes:
BaseDescriptor, BaseDescriptor, BaseHarnessDescriptor, BaseResolutionCommand, CaseDescriptor, CategoryDescriptor, CenturyDescriptor, ClassDescriptorImpl, ClassInfo, ClassInfo, ClassResolutionByCDR, ClassResolutionByFile, ClassResolutionByMappingLoader, CollectionInfo, CollectionInfoJ2, CollectionInfoJ2Collection, CollectionInfoJ2Set, CollectionInfoJ2SortedSet, CollectionInfoODMG30, DateClassDescriptor, DateDescriptor, DateTimeDescriptor, DurationDescriptor, EnumerationDescriptor, FieldDescriptorImpl, FieldInfo, FieldInfo, GDayDescriptor, GMonthDayDescriptor, GMonthDescriptor, GYearDescriptor, GYearMonthDescriptor, HarnessDescriptor, IdentityInfo, ListClassDescriptor, LocaleDescriptor, MonthDescriptor, PrimitivesClassDescriptor, RecurringDurationDescriptor, RootArrayDescriptor, SQLDateClassDescriptor, SQLTimeClassDescriptor, SQLTimestampClassDescriptor, StringClassDescriptor, TimeDescriptor, TimeDurationDescriptor, TimePeriodDescriptor, VectorClassDescriptor, XMLClassDescriptorAdapter, XMLClassDescriptorImpl, XMLContainerElementFieldDescriptor, XMLFieldDescriptorImpl, YearDescriptor

public interface NatureExtendable

Defines a marker interface that any class needs to implement that wants to allow natures to be layered on top.

Since:
1.2.1
Author:
Tobias Hochwallner, Sebastian Gabmeyer
See Also:
ClassInfo, Nature

Method Summary
 void addNature(java.lang.String nature)
          Adds a specified nature.
 boolean hasNature(java.lang.String nature)
          Checks if a specified nature has been added.
 

Method Detail

hasNature

boolean hasNature(java.lang.String nature)
Checks if a specified nature has been added.

Parameters:
nature - the name of the nature.
Returns:
true if the specified nature was added.

addNature

void addNature(java.lang.String nature)
Adds a specified nature.

Parameters:
nature - the name of the nature


Copyright © 2011. All Rights Reserved.