public class FieldDescriptor extends Descriptor
DESCRIPTION_CHANGED, DESCRIPTOR_CHANGED, docType, LARGE_ICON_CHANGED, NAME_CHANGED, SMALL_ICON_CHANGED
Constructor and 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.
|
Modifier and Type | Method and 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(StringBuilder toStringBuilder)
Returns a formatted version of me as a String.
|
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
addExtraAttribute, getExtraAttribute, getExtraAttributes, removeExtraAttribute, toString
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public FieldDescriptor()
public FieldDescriptor(String name)
public FieldDescriptor(String name, String description)
public FieldDescriptor(Field field)
public boolean equals(Object object)
public void print(StringBuilder toStringBuilder)
print
in class Descriptor
public static void checkFieldName(String fieldName) throws IllegalArgumentException
Check if a field name is of an acceptable value (start with a lowercase letter)
fieldName
- is the field name to testIllegalArgumentException
Copyright © 2020. All rights reserved.