BEA Systems, Inc.

WebLogic Server 8.1 API Reference

weblogic.management.configuration
Class LegalChecks

java.lang.Object
  |
  +--weblogic.management.configuration.LegalChecks

public class LegalChecks
extends java.lang.Object

Author:
Copyright © 2002 BEA Systems, Inc. All Rights Reserved.

Constructor Summary
LegalChecks()
           
 
Method Summary
static void checkLegalIntSet(javax.management.Attribute attribute, int[] set)
          Assert int attribute value is a member of set.
static void checkLegalRange(javax.management.Attribute attribute, long min, long max)
          Assert attribute value is within the range [min, max].
static java.lang.String checkLegalStringSet(javax.management.Attribute attribute, java.lang.String[] set)
          Assert string attribute value is a member of set
static void checkNonEmptyString(javax.management.Attribute attribute)
          Assert string attribute value is non-null and non-empty
static void checkNonNull(javax.management.Attribute attribute)
          Assert attribute value is non-null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegalChecks

public LegalChecks()
Method Detail

checkLegalStringSet

public static java.lang.String checkLegalStringSet(javax.management.Attribute attribute,
                                                   java.lang.String[] set)
                                            throws javax.management.InvalidAttributeValueException
Assert string attribute value is a member of set

Parameters:
attribute - Description of the Parameter
set - Description of the Parameter
Returns:
Description of the Return Value
Throws:
javax.management.InvalidAttributeValueException - if value does not match one in set.

checkLegalIntSet

public static void checkLegalIntSet(javax.management.Attribute attribute,
                                    int[] set)
                             throws javax.management.InvalidAttributeValueException
Assert int attribute value is a member of set.

Parameters:
attribute - Description of the Parameter
set - Description of the Parameter
Throws:
javax.management.InvalidAttributeValueException - if value does not match one in set.

checkLegalRange

public static void checkLegalRange(javax.management.Attribute attribute,
                                   long min,
                                   long max)
                            throws javax.management.InvalidAttributeValueException
Assert attribute value is within the range [min, max].

Parameters:
attribute - Description of the Parameter
min - Description of the Parameter
max - Description of the Parameter
Throws:
javax.management.InvalidAttributeValueException - Description of the Exception

checkNonNull

public static void checkNonNull(javax.management.Attribute attribute)
                         throws javax.management.InvalidAttributeValueException
Assert attribute value is non-null

Parameters:
attribute - Description of the Parameter
Throws:
javax.management.InvalidAttributeValueException - Description of the Exception

checkNonEmptyString

public static void checkNonEmptyString(javax.management.Attribute attribute)
                                throws javax.management.InvalidAttributeValueException
Assert string attribute value is non-null and non-empty

Parameters:
attribute - Description of the Parameter
Throws:
javax.management.InvalidAttributeValueException - Description of the Exception

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs81b