org.nakedobjects.metamodel.spec
Interface Hierarchical

All Known Subinterfaces:
NakedObjectSpecification
All Known Implementing Classes:
InstanceCollectionSpecification, IntrospectableSpecificationAbstract, JavaSpecification, NakedObjectSpecificationNoMember

public interface Hierarchical


Method Summary
 void addSubclass(NakedObjectSpecification specification)
          Add the class for the specified specification as a subclass of this specification's class.
 boolean hasSubclasses()
          Returns true if the subclasses() method will return an array of one or more elements (ie, not an empty array).
 NakedObjectSpecification[] interfaces()
          Get the list of specifications for all the interfaces that the class represented by this specification implements.
 boolean isOfType(NakedObjectSpecification specification)
          Determines if this specification represents the same specification, or a subclass, of the specified specification.
 NakedObjectSpecification[] subclasses()
          Get the list of specifications for the subclasses of the class represented by this specification
 NakedObjectSpecification superclass()
          Get the specification for this specification's class's superclass.
 

Method Detail

addSubclass

void addSubclass(NakedObjectSpecification specification)
Add the class for the specified specification as a subclass of this specification's class.


hasSubclasses

boolean hasSubclasses()
Returns true if the subclasses() method will return an array of one or more elements (ie, not an empty array).


interfaces

NakedObjectSpecification[] interfaces()
Get the list of specifications for all the interfaces that the class represented by this specification implements.


isOfType

boolean isOfType(NakedObjectSpecification specification)
Determines if this specification represents the same specification, or a subclass, of the specified specification.

subSpec.isOfType(superSpec) is equivalent to Java's superType.isAssignableFrom(subType).


subclasses

NakedObjectSpecification[] subclasses()
Get the list of specifications for the subclasses of the class represented by this specification


superclass

NakedObjectSpecification superclass()
Get the specification for this specification's class's superclass.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.