Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

oracle.apps.fnd.applcore.socialnetwork.model.util
Class SnPropertyCollection

java.lang.Object
  extended by oracle.apps.fnd.applcore.socialnetwork.model.util.SnPropertyCollection
All Implemented Interfaces:
java.io.Serializable

public class SnPropertyCollection
extends java.lang.Object
implements java.io.Serializable

A property colection for storing social network object properties. It will handle the ability to have readonly properties and if a property requires multiple lookups inside the property collection to retrieve the value. This collection does not support removal of properties.

Since:
11.1.1.7.0
Version:
$Header: atgpf/applcore/applications/SocialNetwork/Model/src/oracle/apps/fnd/applcore/socialnetwork/model/util/SnPropertyCollection.java /st_atgpf_pt-11.1.1.7.0/1 2012/07/30 22:26:42 pacross Exp $
See Also:
Serialized Form

Constructor Summary
SnPropertyCollection()
          Default Constructor.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String get(java.lang.String key)
          Retrieve the value for the property.
 java.util.Map<java.lang.String,java.lang.String> getUpdatedProperties()
          Provide back a collection of properties which have been updated since the last reset.
 int hashCode()
          
 boolean isUpdatedProperties()
          Determine if any of the properties have been updated since the last reset.
 void loadFromHashMap(java.util.HashMap hm)
          Loads this collection from a list of pre-existing HashMap values.
 boolean put(java.lang.String key, java.lang.String value)
          Put a value into the property collection.
 boolean registerPropertyDefinition(SnPropertyDefinition defn)
          Resister the definition of a property.
 boolean registerPropertyDefinitions(SnPropertyDefinition[] multiDefn)
          Register all of the property definitions.
 void resetUpdatedProperties()
          Mark all properties in the collection as not-updated.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnPropertyCollection

public SnPropertyCollection()
Default Constructor.

Method Detail

loadFromHashMap

public void loadFromHashMap(java.util.HashMap hm)
Loads this collection from a list of pre-existing HashMap values. Object.toString will run on all keys and values.

Parameters:
hm - the collection of key-values to add to the collection.

get

public java.lang.String get(java.lang.String key)
Retrieve the value for the property.

Parameters:
key - the property name.
Returns:
the property value.

put

public boolean put(java.lang.String key,
                   java.lang.String value)
Put a value into the property collection. This will enforce the rules about readonly values.

Parameters:
key - the key of the property.
value - the value of the property.
Returns:
false if the value was not inserted otherwise true.

registerPropertyDefinition

public boolean registerPropertyDefinition(SnPropertyDefinition defn)
Resister the definition of a property.

Parameters:
defn - the definition of the property.
Returns:
false if another property definition with the same name exists. Otherwise true.

registerPropertyDefinitions

public boolean registerPropertyDefinitions(SnPropertyDefinition[] multiDefn)
Register all of the property definitions.

Parameters:
multiDefn - the list of defintions to register.
Returns:
true if all properties were registerd otherwise false.

resetUpdatedProperties

public void resetUpdatedProperties()
Mark all properties in the collection as not-updated.


isUpdatedProperties

public boolean isUpdatedProperties()
Determine if any of the properties have been updated since the last reset.

Returns:
true if there are updated properties.

getUpdatedProperties

public java.util.Map<java.lang.String,java.lang.String> getUpdatedProperties()
Provide back a collection of properties which have been updated since the last reset.

Returns:
a not-null collection of updated properties.

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 7 (11.1.7)

E22562-07

Copyright © 2013 Oracle. All Rights Reserved.