Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


oracle.jbo.common
Class NamedObjectImpl

java.lang.Object
  extended by oracle.jbo.common.NamedObjectImpl

Direct Known Subclasses:
DefinitionObject, NamedObjectImpl, VariableImpl

public class NamedObjectImpl
extends java.lang.Object

The base class for all business objects.

Since:
JDeveloper 3.0

Field Summary
protected  java.lang.String mFullName
           
protected  java.lang.String mObjName
           
protected  NamedObjectImpl mParent
           
protected  java.util.Map mProperties
           
static java.lang.String RES_ID_SUFFIX
           

 

Constructor Summary
protected NamedObjectImpl()
           

 

Method Summary
protected  java.util.Map allocatePropertyMap()
           
 java.util.HashMap getAllProperties(java.util.HashMap map, LocaleContext locale)
           
 java.lang.String getFullName()
          Gets this object's fully-qualified name.
 java.lang.String getName()
          Get the name of this object.
 NamedObjectImpl getParent()
          Gets this object's parent.
 java.util.Hashtable getProperties()
          Gets this object's properties.
 java.lang.String[] getPropertiesAsStrings()
          Gets this object's properties and presents them as a string array.
 java.util.HashMap getPropertiesMap()
          Deprecated. use getPropertyMap instead
 java.lang.Object getProperty(java.lang.String hintName)
          Retrieves the specified property, if it exists.
 java.lang.Object getProperty(java.lang.String property, LocaleContext locale)
           
 java.util.Map getPropertyMap()
          Internal: Applications should not use this method.
protected  void getResourcesFromBundle(LocaleContext locale, java.util.HashMap map)
           
 java.lang.Object refreshProperty(java.lang.String hintName)
          Retrieves the specified property, if it exists.
 void removeProperty(java.lang.String hintName)
          Remove a property.
 void removeProperty(java.lang.String hintName, LocaleContext locale)
           
protected  boolean requiresNamePrefixedResId()
           
protected  java.lang.Object resolvePropertyRaw(java.lang.String property, LocaleContext locale)
           
 void setFullName(java.lang.String name)
          Give this object a fully-qualified name.
 void setName(java.lang.String name)
          Name this object.
protected  void setParent(NamedObjectImpl parent)
          Sets this object's parent.
protected  void setPropertiesMap(java.util.HashMap ht)
          Deprecated. use setPropertyMap instead
 void setPropertiesMap2(java.util.HashMap ht)
          Deprecated. use setPropertyMap instead
 void setProperty(java.lang.String hintName, java.lang.Object hintValue)
          Adds or changes a property.
 void setProperty(java.lang.String hintName, java.lang.Object hintValue, LocaleContext locale)
           
 void setPropertyMap(java.util.Map m)
          Replaces all properties.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

mObjName

protected java.lang.String mObjName

mParent

protected NamedObjectImpl mParent

mFullName

protected java.lang.String mFullName

mProperties

protected volatile java.util.Map mProperties

RES_ID_SUFFIX

public static java.lang.String RES_ID_SUFFIX

Constructor Detail

NamedObjectImpl

protected NamedObjectImpl()

Method Detail

setName

public void setName(java.lang.String name)
Name this object.
Parameters:
name - the name to be given to this object.
For internal use only. Application developers should not use this

getName

public java.lang.String getName()
Get the name of this object.
Returns:
the name given to this object.

setFullName

public void setFullName(java.lang.String name)
Give this object a fully-qualified name.
Parameters:
name - this object's fully-qualified name; the package name concatenated with the class name.

getFullName

public java.lang.String getFullName()
Gets this object's fully-qualified name.
Returns:
this object's fully-qualified name; the package name concatenated with the class name.

setParent

protected void setParent(NamedObjectImpl parent)
Sets this object's parent.
Parameters:
parent - the named object that is to be the parent of this object.

getParent

public NamedObjectImpl getParent()
Gets this object's parent.
Returns:
the named object that is this object's parent.

getPropertiesMap

public java.util.HashMap getPropertiesMap()
Deprecated. use getPropertyMap instead
Internal: Applications should not use this method.

getPropertyMap

public java.util.Map getPropertyMap()
Internal: Applications should not use this method.
Returns:
a reference to the properties Map

allocatePropertyMap

protected java.util.Map allocatePropertyMap()

getProperties

public java.util.Hashtable getProperties()
Gets this object's properties. return an empty hashtable if no propertes are set into this object.
Returns:
a hash table of properties.

getAllProperties

public java.util.HashMap getAllProperties(java.util.HashMap map,
                                          LocaleContext locale)

getPropertiesAsStrings

public java.lang.String[] getPropertiesAsStrings()
Gets this object's properties and presents them as a string array.
Returns:
key-value pairs in a one-dimensional string array, in which keys and values are interleaved: the nth property's key is at index 2n and its value at index 2n + 1.

getProperty

public java.lang.Object getProperty(java.lang.String hintName)
Retrieves the specified property, if it exists.
Parameters:
hintName - a string to be used as a hash table key.
Returns:
the value associated with hintName, if any, otherwise null.

refreshProperty

public java.lang.Object refreshProperty(java.lang.String hintName)
Retrieves the specified property, if it exists. If the application running in a 3 tier environment, it retrieves the property from the middle-tier server, refreshing the value on the client side. If the application is running in a 2 tier environment, it is equivalent to getProperty.
Parameters:
hintName - Property name.
Returns:
the value of the property, if any, otherwise null.

removeProperty

public void removeProperty(java.lang.String hintName)
Remove a property.
Parameters:
hintName - a string to be used as a hash table key.

removeProperty

public void removeProperty(java.lang.String hintName,
                           LocaleContext locale)

setProperty

public void setProperty(java.lang.String hintName,
                        java.lang.Object hintValue)
Adds or changes a property.
Parameters:
hintName - a string to be used as a hash table key.
hintValue - an object to be associated with key.

setProperty

public void setProperty(java.lang.String hintName,
                        java.lang.Object hintValue,
                        LocaleContext locale)

setPropertyMap

public void setPropertyMap(java.util.Map m)
Replaces all properties.

All existing properties are lost.

Parameters:
ht - a hash table of properties.

setPropertiesMap

protected void setPropertiesMap(java.util.HashMap ht)
Deprecated. use setPropertyMap instead
Replaces all properties.

All existing properties are lost.

Parameters:
ht - a hash table of properties.

setPropertiesMap2

public void setPropertiesMap2(java.util.HashMap ht)
Deprecated. use setPropertyMap instead
Replaces all properties.

All existing properties are lost.

Parameters:
ht - a hash table of properties.

getProperty

public java.lang.Object getProperty(java.lang.String property,
                                    LocaleContext locale)

requiresNamePrefixedResId

protected boolean requiresNamePrefixedResId()

resolvePropertyRaw

protected java.lang.Object resolvePropertyRaw(java.lang.String property,
                                              LocaleContext locale)

getResourcesFromBundle

protected void getResourcesFromBundle(LocaleContext locale,
                                      java.util.HashMap map)

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle ADF Model
11g Release 1 (11.1.1)

E10653-03


Copyright © 1997, 2009, Oracle. All rights reserved.