org.codehaus.metaclass.model
Class FeatureDescriptor

java.lang.Object
  extended byorg.codehaus.metaclass.model.FeatureDescriptor
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ClassDescriptor, FieldDescriptor, MethodDescriptor

public abstract class FeatureDescriptor
extends java.lang.Object
implements java.io.Serializable

This is the Abstract class for all feature descriptors. Every descriptor has the capability of adding Attributes of some kind. These Attributes can then be interpreted by the container. The meaning of the specific Attributes will be defined by future specification documents.

Version:
$Revision: 1.12 $ $Date: 2003/11/27 08:09:53 $
Author:
Peter Donald, Doug Hagan
See Also:
Serialized Form

Constructor Summary
protected FeatureDescriptor(Attribute[] declaredAttributes, Attribute[] attributes)
          Create a FeatureDescriptor with specific set of attributes.
 
Method Summary
 Attribute[] getAttributes()
          Return the attributes associated with descriptor.
 Attribute[] getDeclaredAttributes()
          Return the declared attributes associated with descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureDescriptor

protected FeatureDescriptor(Attribute[] declaredAttributes,
                            Attribute[] attributes)
Create a FeatureDescriptor with specific set of attributes.

Parameters:
attributes - the attributes
declaredAttributes - the declared attributes
Method Detail

getDeclaredAttributes

public Attribute[] getDeclaredAttributes()
Return the declared attributes associated with descriptor.

Returns:
the declared attributes associated with descriptor.

getAttributes

public Attribute[] getAttributes()
Return the attributes associated with descriptor.

Returns:
the attributes associated with descriptor.


Copyright © 2003-2004 Codehaus. All Rights Reserved.