org.openorb.property
Class PropertySetFactoryImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CosPropertyService.PropertySetFactoryPOA
          extended by org.openorb.property.PropertySetFactoryImpl
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, PropertySetFactoryOperations

public class PropertySetFactoryImpl
extends PropertySetFactoryPOA

PropertySetFactoryImpl is an implementation of the org.omg.CosPropertyService.PropertySetFactory interface.

PropertySetFactory provides an interface for creating PropertySets. The relationship of a PropertySet to a specific object is an implementation issue.

Deletion of any initial properties is an implementation concern. For example, an implementation may choose to initialize the PropertySet with a set of fixed_readonly properties for create_propertyset or choose to initialize all allowed_properties to be fixed_normal for create_constrained_propertyset.

Author:
Jerome Daniel, Terence Song

Constructor Summary
PropertySetFactoryImpl(org.omg.CORBA.ORB orb)
          Creates a new instance of PropertySetFactoryImpl.
 
Method Summary
 PropertySet create_constrained_propertyset(org.omg.CORBA.TypeCode[] allowed_property_types, Property[] allowed_properties)
          The create_constrained_propertyset operation allows a client to create a new PropertySet with specific constraints.
 PropertySet create_initial_propertyset(Property[] initial_properties)
          The create_initial_propertyset operation allows a client to create a new PropertySet with specific initial properties.
 PropertySet create_propertyset()
          The create_propertyset operation returns a new PropertySet.
 
Methods inherited from class org.omg.CosPropertyService.PropertySetFactoryPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySetFactoryImpl

public PropertySetFactoryImpl(org.omg.CORBA.ORB orb)
Creates a new instance of PropertySetFactoryImpl.

Parameters:
orb - the CORBA ORB.
Method Detail

create_propertyset

public PropertySet create_propertyset()
The create_propertyset operation returns a new PropertySet. It is considered an implementation issue as to whether the PropertySet contains any initial properties or has constraints.

Returns:
the PropertySet.

create_constrained_propertyset

public PropertySet create_constrained_propertyset(org.omg.CORBA.TypeCode[] allowed_property_types,
                                                  Property[] allowed_properties)
                                           throws ConstraintNotSupported
The create_constrained_propertyset operation allows a client to create a new PropertySet with specific constraints. The modes associated with the allowed properties is considered an implementation issue.

Parameters:
allowed_property_types - the sequence of allowed property types.
allowed_properties - the sequence of allowed properties.
Returns:
the PropertySet.
Throws:
ConstraintNotSupported - Indicates that either the allowed_property_types, or allowed_properties, parameter could not be supported by the PropertySet.

create_initial_propertyset

public PropertySet create_initial_propertyset(Property[] initial_properties)
                                       throws MultipleExceptions
The create_initial_propertyset operation allows a client to create a new PropertySet with specific initial properties. The modes associated with the initial properties is considered an implementation issue.

Parameters:
initial_properties - the sequence of initial properties.
Returns:
the PropertySet.
Throws:
MultipleExceptions - if exceptions occurred while initializing the PropertySet with the specified property definitions.