org.objectweb.jonas_web.deployment.api
Class TransportGuaranteeDesc

java.lang.Object
  extended by org.objectweb.jonas_web.deployment.api.TransportGuaranteeDesc

public class TransportGuaranteeDesc
extends java.lang.Object

Defines a transport guarantee object. Several kind of tranport can be assigned. It could be : INTEGRAL, CONFIDENTIAL, NONE

Author:
Florent Benoit

Field Summary
static java.lang.String CONFIDENTIAL_TRANSPORT
          Constant for Confidential transport guarantee
static java.lang.String INTEGRAL_TRANSPORT
          Constant for Integral transport guarantee
static java.lang.String NONE_TRANSPORT
          Constant for None transport guarantee
 
Constructor Summary
TransportGuaranteeDesc()
          Constructor : Build a new Guarantee object
 
Method Summary
 void addTransportValue(java.lang.String name)
          Add transport name No check is performed here on the name validation has to be done at XML parsing time
 int getNumber()
          Gets the number of different transports.
 boolean hasNone()
          Test if this transport Guarantee contains the NONE value
 boolean isConfidential()
          Test if this transport Guarantee contains the CONFIDENTIAL value
 boolean isIntegral()
          Test if this transport Guarantee contains the INTEGRAL value
 java.lang.String toString()
          String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIDENTIAL_TRANSPORT

public static final java.lang.String CONFIDENTIAL_TRANSPORT
Constant for Confidential transport guarantee

See Also:
Constant Field Values

INTEGRAL_TRANSPORT

public static final java.lang.String INTEGRAL_TRANSPORT
Constant for Integral transport guarantee

See Also:
Constant Field Values

NONE_TRANSPORT

public static final java.lang.String NONE_TRANSPORT
Constant for None transport guarantee

See Also:
Constant Field Values
Constructor Detail

TransportGuaranteeDesc

public TransportGuaranteeDesc()
Constructor : Build a new Guarantee object

Method Detail

addTransportValue

public void addTransportValue(java.lang.String name)
Add transport name No check is performed here on the name validation has to be done at XML parsing time

Parameters:
name - protocol value

isIntegral

public boolean isIntegral()
Test if this transport Guarantee contains the INTEGRAL value

Returns:
true if it contains INTEGRAL

isConfidential

public boolean isConfidential()
Test if this transport Guarantee contains the CONFIDENTIAL value

Returns:
true if it contains CONFIDENTIAL

hasNone

public boolean hasNone()
Test if this transport Guarantee contains the NONE value

Returns:
true if it contains NONE

getNumber

public int getNumber()
Gets the number of different transports.

Returns:
count of transports.

toString

public java.lang.String toString()
String representation

Overrides:
toString in class java.lang.Object
Returns:
string representation of the pattern