org.openorb.notify
Class PropertiesValidator

java.lang.Object
  extended by org.openorb.notify.PropertiesValidator

public final class PropertiesValidator
extends java.lang.Object

The PropertiesChecker class defines operations for checking and validating admin and qos properties.

Author:
Olivier Modica

Method Summary
static void checkAdminProperties(Property[] admin, org.omg.CORBA.ORB orb)
          Check the admin properties
static void checkQoSProperties(Property[] qos, org.omg.CORBA.ORB orb)
          Check the qos properties
static void displayAdminProperties(java.lang.String target, Property[] admin)
          This method displays the AdminProperties on the output stream.
static void displayQoSProperties(java.lang.String target, Property[] qos)
          This method displays the QoSProperties on the output stream.
static boolean isAdminProperty(java.lang.String name)
          Returns true if this is a known admin property
static boolean isQoSProperty(java.lang.String name)
          Returns true if this is a know qos property
static Property[] validateAdminProperties(Property[] admin, org.omg.CORBA.ORB orb)
          Validate the admin properties -- the admin properties should be compliant ( name, value ) at this point.
static Property[] validateQoSProperties(Property[] qos, org.omg.CORBA.ORB orb)
          Validate the admin properties -- the admin properties should be compliant ( name, value ) at this point.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkAdminProperties

public static void checkAdminProperties(Property[] admin,
                                        org.omg.CORBA.ORB orb)
                                 throws UnsupportedAdmin
Check the admin properties

Throws:
UnsupportedAdmin

validateAdminProperties

public static Property[] validateAdminProperties(Property[] admin,
                                                 org.omg.CORBA.ORB orb)
Validate the admin properties -- the admin properties should be compliant ( name, value ) at this point. The methods takes an AdminProperty list as arguments and returns a list containing all default AdminProperty properties using customized values.


checkQoSProperties

public static void checkQoSProperties(Property[] qos,
                                      org.omg.CORBA.ORB orb)
                               throws UnsupportedQoS
Check the qos properties

Throws:
UnsupportedQoS

validateQoSProperties

public static Property[] validateQoSProperties(Property[] qos,
                                               org.omg.CORBA.ORB orb)
Validate the admin properties -- the admin properties should be compliant ( name, value ) at this point. The methods takes an AdminProperty list as arguments and returns a list containing all default AdminProperty properties using customized values.


isAdminProperty

public static boolean isAdminProperty(java.lang.String name)
Returns true if this is a known admin property


isQoSProperty

public static boolean isQoSProperty(java.lang.String name)
Returns true if this is a know qos property


displayAdminProperties

public static void displayAdminProperties(java.lang.String target,
                                          Property[] admin)
This method displays the AdminProperties on the output stream.


displayQoSProperties

public static void displayQoSProperties(java.lang.String target,
                                        Property[] qos)
This method displays the QoSProperties on the output stream.