Class FieldDescriptor
java.lang.Object
java.util.Observable
org.glassfish.deployment.common.DynamicAttributesDescriptor
org.glassfish.deployment.common.Descriptor
org.glassfish.ejb.deployment.descriptor.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:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructrs an empty field descriptorFieldDescriptor(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
Modifier and TypeMethodDescriptionstatic voidcheckFieldName(String fieldName) Check if a field name is of an acceptable value (start with a lowercase letter)booleanEquality iff the other objects is a field descriptor with the same name.inthashCode()My hashcode.voidprint(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, getDeploymentExtensions, getDescription, getDescriptorExtension, getDescriptorExtensions, getDisplayName, getLargeIconUri, getLocalizedDescription, getLocalizedDescriptions, getLocalizedDisplayName, getLocalizedDisplayNames, getLocalizedLargeIconUri, getLocalizedLargeIconUris, getLocalizedSmallIconUri, getLocalizedSmallIconUris, getName, getPrefixMapping, getSmallIconUri, isBoundsChecking, setBoundsChecking, setDescription, setDisplayName, setLargeIconUri, setLocalizedDescription, setLocalizedDisplayName, setLocalizedLargeIconUri, setLocalizedSmallIconUri, setName, setSmallIconUri, visitMethods inherited from class org.glassfish.deployment.common.DynamicAttributesDescriptor
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toStringMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Constructor Details
-
FieldDescriptor
public FieldDescriptor()Constructrs an empty field descriptor -
FieldDescriptor
Constructrs a field descriptor with the given name. -
FieldDescriptor
Constructrs a field descriptor with the given name and description. -
FieldDescriptor
Constructs a field descriptor from the supplied java.lang.reflect.Field object.
-
-
Method Details
-
equals
Equality iff the other objects is a field descriptor with the same name. -
hashCode
public int hashCode()My hashcode. -
print
Returns a formatted version of me as a String.- Overrides:
printin classorg.glassfish.deployment.common.Descriptor
-
checkFieldName
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
-