|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.db.util.NameController
public class NameController
A name controller is used by the UI for controlling name fields. A name field can :
Constructor Summary | |
---|---|
NameController()
|
Method Summary | |
---|---|
boolean |
canHaveDuplicateNames()
Returns false by default. |
java.lang.String |
getDefaultName(java.lang.String type,
java.lang.String objName)
Returns a default name for the given object type and name. |
static java.lang.String |
getEntityName(java.lang.String databaseName)
Given the name of a database object (typically uppercase with no spaces) this method constructs a default java-like entity name. |
java.lang.String |
getExternalName(java.lang.String name)
|
java.lang.String |
getInternalName(java.lang.String name)
|
java.lang.String |
getItemLabel(java.lang.String objectName,
java.lang.String otherName)
Returns the label for the item in the shuttle picker that should be displayed for an item representing an object (e.g. |
java.lang.String |
getNameLabel()
|
void |
validateName(java.lang.String type,
java.lang.String name)
Validates the given name entered by the user and throws an Exception if it isn't valid. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NameController()
Method Detail |
---|
public java.lang.String getNameLabel()
public boolean canHaveDuplicateNames()
public void validateName(java.lang.String type, java.lang.String name) throws InvalidNameException
InvalidNameException
- if the name is invalid. The message should
detail why it is invalid.public java.lang.String getDefaultName(java.lang.String type, java.lang.String objName)
By default this method produces an init-capped version of the database object name.
type
- - the object type that we're dealing withobjName
- - the object name we're creating a default from
public java.lang.String getInternalName(java.lang.String name)
public java.lang.String getExternalName(java.lang.String name)
public java.lang.String getItemLabel(java.lang.String objectName, java.lang.String otherName)
objectName
- the name of the real database object chosenotherName
- the extra name provided by the user through the text
field
public static final java.lang.String getEntityName(java.lang.String databaseName)
databaseName
- the database object name to convert.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |