public final class PropertyDisplayRegistry
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
PropertyDisplayRegistry.Plugin
This class facilitates the PropertyDisplayRegistry's extensibility. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
getDisplayName(java.lang.String propName)
Returns a displayable (translated) name for the given property. 
 | 
static java.lang.String | 
getDisplayName(java.lang.String propName,
              DBObjectProvider pro,
              DBObject obj)
Returns a displayable (translated) name for the given property in the
 context of the given provider. 
 | 
static java.lang.String | 
getDisplayNameOrNull(java.lang.String propName,
                    DBObjectProvider pro,
                    DBObject obj)
Returns a displayable (translated) name for the given property in the
 context of the given provider. 
 | 
static PropertyDisplayRegistry | 
getInstance()  | 
static java.lang.String | 
getNullPropValueDisplay()
Gets the generic string " 
 | 
static java.lang.String | 
getPropValueDisplay(java.lang.String propName,
                   java.lang.Object value)
Returns a displayable (translated) name for the given property value. 
 | 
static boolean | 
hasNlsStringForPropValue(java.lang.String propName,
                        java.lang.Object value)
Returns whether there is a displayable (translated) name for the given
 property value. 
 | 
void | 
registerBundle(java.util.ResourceBundle bundle)
Registers a bundle of diplay names. 
 | 
void | 
registerBundle(Thunk<java.util.ResourceBundle> bundle)
Registers a bundle of diplay names. 
 | 
void | 
registerDisplayName(java.lang.String propName,
                   java.lang.String displayName)
Deprecated.  
 | 
void | 
registerPlugin(PropertyDisplayRegistry.Plugin plugin)
Registers a new plugin to this registry that provides display names for
 properties. 
 | 
void | 
registerPlugin(Thunk<PropertyDisplayRegistry.Plugin> plugin)
Registers a new plugin to this registry that provides display names for
 properties. 
 | 
boolean | 
unregisterBundle(java.util.ResourceBundle bundle)
Unregisters the given bundle of display names. 
 | 
boolean | 
unregisterPlugin(PropertyDisplayRegistry.Plugin plugin)
Unregisters the given registry plugin. 
 | 
public static PropertyDisplayRegistry getInstance()
public static final java.lang.String getDisplayName(java.lang.String propName)
public static final java.lang.String getDisplayName(java.lang.String propName,
                                                    DBObjectProvider pro,
                                                    DBObject obj)
propName - the property name to look uppro - the DBObjectProvider implementationobj - the object the property is onpublic static final java.lang.String getDisplayNameOrNull(java.lang.String propName,
                                                          DBObjectProvider pro,
                                                          DBObject obj)
propName - the property name to look uppro - the DBObjectProvider implementationobj - the object the property is onpublic static final java.lang.String getPropValueDisplay(java.lang.String propName,
                                                         java.lang.Object value)
propName - the name of the property (single name only, not a property
 path).value - the property valuepublic static final java.lang.String getNullPropValueDisplay()
public static final boolean hasNlsStringForPropValue(java.lang.String propName,
                                                     java.lang.Object value)
propName - the name of the property (single name only, not a property
 path).value - the property valuepublic void registerBundle(java.util.ResourceBundle bundle)
When registering new properties, ensure they are included in the API metadata if appropriate.
bundle - the bundle of names to register.Metadata.registerProperty(java.lang.String, java.lang.Class, java.lang.Class<? extends oracle.javatools.db.DBObjectProvider>, java.lang.Class<? extends oracle.javatools.db.DBObject>...)public void registerBundle(Thunk<java.util.ResourceBundle> bundle)
When registering new properties, ensure they are included in the API metadata if appropriate.
bundle - a Thunk that will compute the bundle of names to
 register.public boolean unregisterBundle(java.util.ResourceBundle bundle)
@Deprecated
public void registerDisplayName(java.lang.String propName,
                                            java.lang.String displayName)
When registering new properties, ensure they are included in the API metadata if appropriate.
public void registerPlugin(PropertyDisplayRegistry.Plugin plugin)
plugin - the Plugin instance to register.Metadata.registerProperty(java.lang.String, java.lang.Class, java.lang.Class<? extends oracle.javatools.db.DBObjectProvider>, java.lang.Class<? extends oracle.javatools.db.DBObject>...)public void registerPlugin(Thunk<PropertyDisplayRegistry.Plugin> plugin)
plugin - a Thunk that will compute to a Plugin instance.Metadata.registerProperty(java.lang.String, java.lang.Class, java.lang.Class<? extends oracle.javatools.db.DBObjectProvider>, java.lang.Class<? extends oracle.javatools.db.DBObject>...)public boolean unregisterPlugin(PropertyDisplayRegistry.Plugin plugin)
registerPlugin. Plugins that
 are registered via extension.xmls are not removeable.