1 |
/* java.beans.FeatureDescriptor |
/* java.beans.FeatureDescriptor |
2 |
Copyright (C) 1998 Free Software Foundation, Inc. |
Copyright (C) 1998, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
57 |
* |
* |
58 |
* @author John Keiser |
* @author John Keiser |
59 |
* @since 1.1 |
* @since 1.1 |
|
* @version 1.1.0, 31 May 1998 |
|
60 |
*/ |
*/ |
61 |
|
|
62 |
public class FeatureDescriptor |
public class FeatureDescriptor |
98 |
|
|
99 |
/** |
/** |
100 |
* Get the localized (display) name of this feature. |
* Get the localized (display) name of this feature. |
101 |
|
* |
102 |
|
* @returns The localized display name of this feature or falls |
103 |
|
* back to the programmatic name. |
104 |
*/ |
*/ |
105 |
public String getDisplayName() |
public String getDisplayName() |
106 |
{ |
{ |
107 |
return displayName; |
return (displayName == null) ? name : displayName; |
108 |
} |
} |
109 |
|
|
110 |
/** |
/** |
119 |
|
|
120 |
/** |
/** |
121 |
* Get the localized short description for this feature. |
* Get the localized short description for this feature. |
122 |
|
* |
123 |
|
* @returns A short localized description of this feature or |
124 |
|
* what <code>getDisplayName</code> returns in case, that no short description |
125 |
|
* is available. |
126 |
*/ |
*/ |
127 |
public String getShortDescription() |
public String getShortDescription() |
128 |
{ |
{ |
129 |
return shortDescription; |
return (shortDescription == null) ? getDisplayName() : shortDescription; |
130 |
} |
} |
131 |
|
|
132 |
/** |
/** |