com.xenonsoft.bridgetown.soa.config
Class Containment

java.lang.Object
  extended bycom.xenonsoft.bridgetown.soa.config.Containment

public final class Containment
extends java.lang.Object

Containment enumerated Java data type represents how a service assembly stores a service bean.

Version:
$Id: Containment.java,v 1.3 2005/02/23 01:31:13 peter_pilgrim Exp $
Author:
Peter Pilgrim, Sep 15, 2004 19:43:59 PM

Field Summary
static Containment PROTOTYPE
          Deprecated. enumeration value for prototype containment
static Containment SINGLETON
          Deprecated. enumeration value for singleton containment
 
Method Summary
static Containment[] getEnumArray()
          Deprecated. Retrieves an array of enumeration type instances
static java.util.List getEnumList()
          Deprecated. Retrieves a list collection of enumeration type instances
 int getNumValue()
          Deprecated. Gets the value as enumerated integer value, this useful for storing the type inside a database
 java.lang.String getValue()
          Deprecated. Gets the value as text string.
 Containment lookupByNumValue(int numValue)
          Deprecated. Looks up the enumerated type by the supplied integer value
 Containment lookupByValue(java.lang.String textValue)
          Deprecated. Looks up the enumerated type by the text string value
 java.lang.String toString()
          Deprecated. Return enumerated type String for debuggable output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLETON

public static final Containment SINGLETON
Deprecated. 
enumeration value for singleton containment


PROTOTYPE

public static final Containment PROTOTYPE
Deprecated. 
enumeration value for prototype containment

Method Detail

getNumValue

public int getNumValue()
Deprecated. 
Gets the value as enumerated integer value, this useful for storing the type inside a database

Returns:
Returns the numValue.

getValue

public java.lang.String getValue()
Deprecated. 
Gets the value as text string. This is the recommended access and is obviously more readable if it stored inside a database table (think varchar)!

Returns:
Returns the value.

lookupByValue

public Containment lookupByValue(java.lang.String textValue)
Deprecated. 
Looks up the enumerated type by the text string value

Parameters:
textValue - the text value
Returns:
the enumerated type
Throws:
java.util.NoSuchElementException - if the text string value cannot be matched to enumeration

lookupByNumValue

public Containment lookupByNumValue(int numValue)
Deprecated. 
Looks up the enumerated type by the supplied integer value

Returns:
the enumerated type
Throws:
java.util.NoSuchElementException - if the text string value cannot be matched to enumeration

getEnumList

public static java.util.List getEnumList()
Deprecated. 
Retrieves a list collection of enumeration type instances

Returns:
a list collection enumeration type

getEnumArray

public static Containment[] getEnumArray()
Deprecated. 
Retrieves an array of enumeration type instances

Returns:
an array of enumeration type

toString

public java.lang.String toString()
Deprecated. 
Return enumerated type String for debuggable output

Returns:
the debuggable string.
See Also:
Object.toString()


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.