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

E17503-02

oracle.jbo.server
Class NamedObjectImpl

java.lang.Object
  extended by oracle.jbo.server.NamedObjectImpl
All Implemented Interfaces:
Formattable
Direct Known Subclasses:
ComponentObjectImpl, PDefViewCriteria, PersistableDefObject, VariableImpl

public class NamedObjectImpl
extends java.lang.Object
implements Formattable

The base class for all business objects.


Field Summary
static java.lang.Class CLASS_INSTANCE
           
protected  java.lang.String mObjName
           
protected  NamedObjectImpl mParent
           
protected  java.util.Hashtable mProperties
           
protected  java.util.Hashtable mUserData
           
static java.lang.String RES_ID_SUFFIX
           
 
Constructor Summary
protected NamedObjectImpl()
           
 
Method Summary
protected  java.lang.String formatChildCollectionForOutput(OutputFormatter formatter, java.lang.String childElementName, List children)
           
protected  java.lang.String formatChildCollectionForOutput(OutputFormatter formatter, java.lang.String childElementName, java.lang.Object[] children)
           
protected  java.lang.String formatChildCollectionForOutput(OutputFormatter formatter, java.lang.String childElementName, java.util.Vector children)
           
 java.lang.String formatForOutput()
           
 java.lang.String formatForOutput(OutputFormatter formatter)
           
 java.util.Hashtable getAllProperties(java.util.Hashtable map, Locale 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.Hashtable getPropertiesMap()
          Gets all the properties as a Hashtable
 java.lang.Object getProperty(java.lang.String property)
          Retrieves the specified property, if it exists.
 java.lang.Object getProperty(java.lang.String property, LocaleContext locale)
           
protected  void getResourcesFromBundle(Locale locale, java.util.Hashtable map)
           
protected  java.lang.Object getUserData(java.lang.String property)
          Internal use only.
protected static java.lang.String[] parseAttrArrayElements(org.kxml2.io.KXmlParser parser)
          Parse an AttrArray element into a String array
 java.lang.Object refreshProperty(java.lang.String hintName)
           
protected  boolean requiresNamePrefixedResId()
           
protected  java.lang.Object resolvePropertyRaw(java.lang.String property, Locale locale)
           
 void setFullName(java.lang.String name)
          Give this object a fully-qualified name.
protected  void setName(java.lang.String name)
          Name this object.
protected  void setParent(NamedObjectImpl parent)
          Sets this object's parent.
protected  void setPropertiesMap(java.util.Hashtable ht)
          Replaces all properties.
 void setProperty(java.lang.String hintName, java.lang.Object hintValue)
          Adds or changes a property.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_INSTANCE

public static final java.lang.Class CLASS_INSTANCE

RES_ID_SUFFIX

public static final java.lang.String RES_ID_SUFFIX
See Also:
Constant Field Values

mProperties

protected java.util.Hashtable mProperties

mObjName

protected java.lang.String mObjName

mParent

protected NamedObjectImpl mParent

mUserData

protected java.util.Hashtable mUserData
Constructor Detail

NamedObjectImpl

protected NamedObjectImpl()
Method Detail

setName

protected void setName(java.lang.String name)
Name this object.

Parameters:
name - the name to be given to this object.

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.

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.Hashtable getAllProperties(java.util.Hashtable map,
                                            Locale locale)

getResourcesFromBundle

protected void getResourcesFromBundle(Locale locale,
                                      java.util.Hashtable map)

resolvePropertyRaw

protected java.lang.Object resolvePropertyRaw(java.lang.String property,
                                              Locale 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.

getPropertiesMap

public java.util.Hashtable getPropertiesMap()
Gets all the properties as a Hashtable

Returns:

getProperty

public java.lang.Object getProperty(java.lang.String property)
Retrieves the specified property, if it exists.

Parameters:
property - a string to be used as a hashtable key.
Returns:
the value associated with property, if any, otherwise null.

refreshProperty

public java.lang.Object refreshProperty(java.lang.String hintName)

getProperty

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

getUserData

protected java.lang.Object getUserData(java.lang.String property)
Internal use only. Gets the value associated with the specified key in the mUserData collection. This collection should only contain properties that are used by the runtime itself. Any name-value pairs that are to be accessed by the application itself should be specified as either SchemaBasedProperties or Properties in the XML.

Parameters:
property -
Returns:

requiresNamePrefixedResId

protected boolean requiresNamePrefixedResId()

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.

setPropertiesMap

protected void setPropertiesMap(java.util.Hashtable ht)
Replaces all properties.

All existing properties are lost.

Parameters:
ht - a hash table of properties.

parseAttrArrayElements

protected static final java.lang.String[] parseAttrArrayElements(org.kxml2.io.KXmlParser parser)
Parse an AttrArray element into a String array

Parameters:
parser -
Returns:

formatForOutput

public java.lang.String formatForOutput()

formatForOutput

public java.lang.String formatForOutput(OutputFormatter formatter)
Specified by:
formatForOutput in interface Formattable

formatChildCollectionForOutput

protected java.lang.String formatChildCollectionForOutput(OutputFormatter formatter,
                                                          java.lang.String childElementName,
                                                          java.lang.Object[] children)

formatChildCollectionForOutput

protected java.lang.String formatChildCollectionForOutput(OutputFormatter formatter,
                                                          java.lang.String childElementName,
                                                          java.util.Vector children)

formatChildCollectionForOutput

protected java.lang.String formatChildCollectionForOutput(OutputFormatter formatter,
                                                          java.lang.String childElementName,
                                                          List children)

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

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.