org.codehaus.metaclass.model
Class FieldDescriptor

java.lang.Object
  extended byorg.codehaus.metaclass.model.FeatureDescriptor
      extended byorg.codehaus.metaclass.model.FieldDescriptor
All Implemented Interfaces:
java.io.Serializable

public final class FieldDescriptor
extends FeatureDescriptor
implements java.io.Serializable

A descriptor that describes a Field. It contains information about;

Also associated with each field is a set of arbitrary Attributes that can be used to store extra information about method.

Version:
$Revision: 1.11 $ $Date: 2003/12/11 08:41:50 $
Author:
Peter Donald, Doug Hagan
See Also:
Serialized Form

Field Summary
static FieldDescriptor[] EMPTY_SET
          Constant for empty set of fields.
 
Constructor Summary
FieldDescriptor(java.lang.String name, java.lang.String type, Attribute[] declaredAttributes, Attribute[] attributes)
          Create a descriptor for a field.
 
Method Summary
 java.lang.String getName()
          Return the name of the field.
 java.lang.String getType()
          Return the type of the field.
 
Methods inherited from class org.codehaus.metaclass.model.FeatureDescriptor
getAttributes, getDeclaredAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_SET

public static final FieldDescriptor[] EMPTY_SET
Constant for empty set of fields.

Constructor Detail

FieldDescriptor

public FieldDescriptor(java.lang.String name,
                       java.lang.String type,
                       Attribute[] declaredAttributes,
                       Attribute[] attributes)
Create a descriptor for a field.

Parameters:
name - the name of the field
type - the return type of the field
declaredAttributes - the declared attributes
attributes - any attributes associated with method
Method Detail

getName

public java.lang.String getName()
Return the name of the field.

Returns:
the name of the field.

getType

public java.lang.String getType()
Return the type of the field.

Returns:
the type of the field.


Copyright © 2003-2004 Codehaus. All Rights Reserved.