Class FieldDescriptor

  • All Implemented Interfaces:
    Serializable

    public class FieldDescriptor
    extends org.glassfish.deployment.common.Descriptor
    I represent a field on an ejb. Either an actual field (e.g. for EJB1.1 CMP) or a virtual field (e.g. for EJb2.0 CMP)
    Author:
    Danny Coward
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.glassfish.deployment.common.Descriptor

        DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
    • Constructor Summary

      Constructors 
      Constructor Description
      FieldDescriptor()
      Constructrs an empty field descriptor
      FieldDescriptor​(Field field)
      Constructs a field descriptor from the supplied java.lang.reflect.Field object.
      FieldDescriptor​(String name)
      Constructrs a field descriptor with the given name.
      FieldDescriptor​(String name, String description)
      Constructrs a field descriptor with the given name and description.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void checkFieldName​(String fieldName)
      Check if a field name is of an acceptable value (start with a lowercase letter)
      boolean equals​(Object object)
      Equality iff the other objects is a field descriptor with the same name.
      int hashCode()
      My hashcode.
      void print​(StringBuffer toStringBuffer)
      Returns a formatted version of me as a String.
      • Methods inherited from class org.glassfish.deployment.common.Descriptor

        addDescriptorExtension, addPrefixMapping, createUniqueFilenameAmongst, createUniqueNameAmongst, createUniqueNameAmongstNamedDescriptors, fillDocType, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getDocType, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visit
      • Methods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor

        addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
    • Constructor Detail

      • FieldDescriptor

        public FieldDescriptor()
        Constructrs an empty field descriptor
      • FieldDescriptor

        public FieldDescriptor​(String name)
        Constructrs a field descriptor with the given name.
      • FieldDescriptor

        public FieldDescriptor​(String name,
                               String description)
        Constructrs a field descriptor with the given name and description.
      • FieldDescriptor

        public FieldDescriptor​(Field field)
        Constructs a field descriptor from the supplied java.lang.reflect.Field object.
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Equality iff the other objects is a field descriptor with the same name.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        My hashcode.
        Overrides:
        hashCode in class Object
      • print

        public void print​(StringBuffer toStringBuffer)
        Returns a formatted version of me as a String.
        Overrides:
        print in class org.glassfish.deployment.common.Descriptor
      • checkFieldName

        public static void checkFieldName​(String fieldName)
                                   throws IllegalArgumentException

        Check if a field name is of an acceptable value (start with a lowercase letter)

        Parameters:
        fieldName - is the field name to test
        Throws:
        IllegalArgumentException - if the name is unacceptable