|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IPropertySet
Represents a set of related properties scoped to a propertysetdefinition and a namespace. This is also a Map
of string representation of property name and a serializable value.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
java.util.Map.Entry<K,V> |
Method Summary | ||
---|---|---|
boolean |
containsKey(IPropertyName key) Returns true if this propertyset contains a mppaing for the specified property name key. |
|
java.io.Serializable |
get(IPropertyName name) Returns the value associated with the given property name if mapped, or null if this propertyset contains no mapping for the given property name . |
|
|
get(IPropertyName name, java.lang.Class<T> c) Returns the value (casted to the given class c) associated with the given property name if mapped or null if this propertyset contains no mapping for the given property name . |
|
java.lang.String |
getDescription() Returns a brief description of this. |
|
IPropertySetName |
getName() Returns the propertyset name of this. |
|
INamespaceName |
getNamespaceName() Returns the associated namespace name. |
|
java.util.List<IProperty<java.io.Serializable>> |
getProperties() Returns the list of properties of this propertyset. |
|
|
getProperty(IPropertyName name) Returns the property with the given name if found otherwise null. |
|
IPropertySetDefinitionName |
getPropertySetDefinitionName() Returns the associated propertysetdefinition name. |
|
void |
iterate(IPredicate<IProperty> predicate) Calls the given predicates IPredicate.apply(Object) method for each property found in this propertyset. |
|
java.lang.String |
name() Returns the string representation of the composite name of this. |
|
java.io.Serializable |
put(IPropertyName key, java.io.Serializable value) Associates the specified value with the specified key in this propertySet. |
|
|
put(IPropertyName key, T value, java.lang.Class<T> c) Same as put(IPropertyName, java.io.Serializable) except it returns previously mapped value as a type of the given class c. |
|
|
putProperty(IPropertyName name, IProperty<T> value) Associates the specified value with the given property name. |
|
|
removeProperty(IPropertyName name) Removes the property associated with the given property name. |
|
void |
setDescription(java.lang.String desc) Sets the given desc as a brief description for this. |
|
void |
setName(IPropertySetName propertySetName) Sets the given propertySetName as the name of this. |
|
void |
setNamespaceName(INamespaceName namespaceName) Deprecated. it is a no op. |
|
void |
setPropertySetDefinitionName(IPropertySetDefinitionName propertySetDefinitionName) Sets the given propertySetDefinitionName as the associated propertysetdefinition name. |
Methods inherited from interface oracle.wcps.property.ITimestamped |
---|
getCreatedOn, getUpdatedOn, setCreatedOn, setUpdatedOn |
Methods inherited from interface java.util.Map |
---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
Method Detail |
---|
INamespaceName getNamespaceName()
void setNamespaceName(INamespaceName namespaceName)
namespaceName
as the associated namespace name. Note: Calling this has no effect when using methods of IPropertyService
, its overridden with the namespace name in IPropertyService.getNamespaceName()
namespaceName
- the namespace name to which this will be associated.IPropertySetDefinitionName getPropertySetDefinitionName()
void setPropertySetDefinitionName(IPropertySetDefinitionName propertySetDefinitionName)
propertySetDefinitionName
as the associated propertysetdefinition name.propertySetDefinitionName
- a propertysetdefinition name.java.lang.String name()
IPropertySetName getName()
void setName(IPropertySetName propertySetName)
propertySetName
as the name of this.propertySetName
- a name for this.java.lang.String getDescription()
void setDescription(java.lang.String desc)
desc
as a brief description for this.desc
- a brief description.java.io.Serializable get(IPropertyName name)
name
if mapped, or null
if this propertyset contains no mapping for the given property name
.name
- a property name.java.io.Serializable put(IPropertyName key, java.io.Serializable value)
key
- property name with which the specified value is to be associated.value
- value to be associated with specified key.<T extends java.io.Serializable> T get(IPropertyName name, java.lang.Class<T> c)
null
if this propertyset contains no mapping for the given property name
.T
- type of a class.name
- a property name.c
- the class to which the value is casted to.<T extends java.io.Serializable> T put(IPropertyName key, T value, java.lang.Class<T> c)
put(IPropertyName, java.io.Serializable)
except it returns previously mapped value as a type of the given class c.T
- type of a class.key
- property name with which the specified value is to be associated.value
- value to be associated with specified key.c
- the class to which the previously mapped value is casted to.boolean containsKey(IPropertyName key)
key
- proeprty name whose presence in this propertyset is to be tested.java.util.List<IProperty<java.io.Serializable>> getProperties()
<T extends java.io.Serializable> IProperty<T> getProperty(IPropertyName name)
T
- the property value's type.name
- a property's name<T extends java.io.Serializable> IProperty<T> putProperty(IPropertyName name, IProperty<T> value)
T
- type for the valuename
- a property name.value
- the property to be associated with the given property name.<T extends java.io.Serializable> IProperty<T> removeProperty(IPropertyName name)
T
- the property value's type.name
- a property namevoid iterate(IPredicate<IProperty> predicate)
IPredicate.apply(Object)
method for each property found in this propertyset.predicate
- a predicate object.
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.4.0) E15995-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |