Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E53426-01


oracle.security.jps.mas.mgmt.jmx.policy
Class PortableProperties

java.lang.Object
  extended by oracle.security.jps.mas.mgmt.jmx.policy.PortableProperties

All Implemented Interfaces:
java.io.Serializable

public final class PortableProperties
extends java.lang.Object
implements java.io.Serializable

Portable properties, which is a wrapper of java.util.Map, can be transported across the network.

See Also:
Serialized Form

Constructor Summary
PortableProperties()
          Constructs a PortableProperties with an empty java.util.HashMap
PortableProperties(java.util.Map<java.lang.String,java.lang.String> properties)
          Constructs a PortableProperties with the specified map, if the specified map is null, a java.util.HashMap is to be created.

 

Method Summary
 boolean equals(java.lang.Object obj)
           
static PortableProperties from(javax.management.openmbean.CompositeData cd)
          Create an instance of the model specific class out of an associated CompositeData instance
static PortableProperties from(javax.management.openmbean.CompositeData cd, java.util.Map<java.lang.String,java.lang.String> properties)
          Create an instance of the model specific class out of an associated CompositeData instance
 java.lang.String get(java.lang.String propID)
           
 java.util.Map<java.lang.String,java.lang.String> getProperties()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.lang.String put(java.lang.String propID, java.lang.String propValue)
           
 java.lang.String remove(java.lang.String propID)
           
 int size()
           
 javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
          Convert an instance of this model specific type to a CompositeData.
static javax.management.openmbean.CompositeType toCompositeType()
          Returns the CompositeType that describes this model specific class
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait

 

Constructor Detail

PortableProperties

public PortableProperties()
Constructs a PortableProperties with an empty java.util.HashMap

PortableProperties

@ConstructorProperties(value="properties")
public PortableProperties(java.util.Map<java.lang.String,java.lang.String> properties)
Constructs a PortableProperties with the specified map, if the specified map is null, a java.util.HashMap is to be created.
Parameters:
properties - - the properties map

Method Detail

getProperties

public java.util.Map<java.lang.String,java.lang.String> getProperties()
Returns:
the backed map

get

public java.lang.String get(java.lang.String propID)

put

public java.lang.String put(java.lang.String propID,
                            java.lang.String propValue)

remove

public java.lang.String remove(java.lang.String propID)

size

public int size()

isEmpty

public boolean isEmpty()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toCompositeType

public static javax.management.openmbean.CompositeType toCompositeType()
Returns the CompositeType that describes this model specific class

toCompositeData

public javax.management.openmbean.CompositeData toCompositeData(javax.management.openmbean.CompositeType ct)
Convert an instance of this model specific type to a CompositeData. This ensure that clients that do not have access to the model specific class can still use the MBean. The MXBean framework can perform this conversion automatically. However MXBeans are part of JDK 6.0 and AS11g is required to support JDK 5.0
Parameters:
ct - - This parameter is there only for future compatibility reasons with JDK 6.0. It can be ignored at this point.

from

public static PortableProperties from(javax.management.openmbean.CompositeData cd)
Create an instance of the model specific class out of an associated CompositeData instance

from

public static PortableProperties from(javax.management.openmbean.CompositeData cd,
                                      java.util.Map<java.lang.String,java.lang.String> properties)
Create an instance of the model specific class out of an associated CompositeData instance
Parameters:
properties - - the map for storing properties

Skip navigation links

Oracle Fusion Middleware MBeans Java API Reference for Oracle Platform Security Services
11g Release 1 (11.1.1)

E53426-01


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