org.objectweb.proactive.core.xml
Class VariableContractType

java.lang.Object
  extended byorg.objectweb.proactive.core.xml.VariableContractType

public class VariableContractType
extends java.lang.Object

This class specifies different Variable Contract types, and their behaviour

Since:
ProActive 3.0 (December 2005)
Author:
The ProActive Team

Field Summary
static VariableContractType DescriptorDefaultVariable
           
static VariableContractType DescriptorVariable
           
static VariableContractType JavaPropertyVariable
           
static VariableContractType ProgramDefaultVariable
           
static VariableContractType ProgramVariable
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(VariableContractType b)
           
static VariableContractType getType(java.lang.String type)
           
 boolean hasPriority(java.lang.String current, java.lang.String candidate)
          Compares two sources and determines how has higher priority to set the value.
 boolean hasSetAbility(java.lang.String from)
          Determines if a non empty value can be set from a source.
 boolean hasSetEmptyAbility(java.lang.String from)
          Determines if an empty value can be set from a source.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DescriptorVariable

public static final VariableContractType DescriptorVariable

ProgramVariable

public static final VariableContractType ProgramVariable

JavaPropertyVariable

public static final VariableContractType JavaPropertyVariable

ProgramDefaultVariable

public static final VariableContractType ProgramDefaultVariable

DescriptorDefaultVariable

public static final VariableContractType DescriptorDefaultVariable
Method Detail

equals

public boolean equals(java.lang.Object o)

equals

public boolean equals(VariableContractType b)

toString

public java.lang.String toString()

getType

public static VariableContractType getType(java.lang.String type)

hasSetAbility

public boolean hasSetAbility(java.lang.String from)
Determines if a non empty value can be set from a source.

Parameters:
from - A string with the name of the source
Returns:
True if "from" has non empty set ability, false otherwise.

hasSetEmptyAbility

public boolean hasSetEmptyAbility(java.lang.String from)
Determines if an empty value can be set from a source.

Parameters:
from - A string with the name of the source
Returns:
True if "from" has empty set ability, false otherwise.

hasPriority

public boolean hasPriority(java.lang.String current,
                           java.lang.String candidate)
Compares two sources and determines how has higher priority to set the value.

Parameters:
current - The last source to set a value.
candidate - The current source trying to replace a value.
Returns:
True if candidate has better or equal priority than current. False otherwise.


Copyright 2001-2005 INRIA All Rights Reserved.