org.eclipse.stp.core.sca
Class Flags

java.lang.Object
  extended by org.eclipse.stp.core.sca.Flags

public final class Flags
extends java.lang.Object

A convenience class for identifying attributes and characteristics of elements in the SCA Model hierarchy. Often these flags are a quick indication of what an object can be casted down to.

This class should be used in conjunction with SCAObject.getFlags().

Since:
1.0

Constructor Summary
Flags()
           
 
Method Summary
static boolean isBindableElement(int flags)
          A Service that is 'bindable' may be cast down to a ModuleService and similarly, a 'bindable' Reference may be cast down to a ModuleReference.
static boolean isBoundaryElement(int flags)
           
static boolean isPossibleWireSource(int flags)
           
static boolean isPossibleWireTarget(int flags)
          Returns whether the given integer includes an indication of being a possible WireTarget.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flags

public Flags()
Method Detail

isPossibleWireSource

public static boolean isPossibleWireSource(int flags)
Parameters:
flags - The flags from a given SCAInternalObject
Returns:
True if the flags indicate a potential WireSource.
See Also:
WireSource

isPossibleWireTarget

public static boolean isPossibleWireTarget(int flags)
Returns whether the given integer includes an indication of being a possible WireTarget.

Parameters:
flags - The flags from a given SCAInternalObject
Returns:
boolean
See Also:
WireSource

isBoundaryElement

public static boolean isBoundaryElement(int flags)
Parameters:
flags - The flags from a given SCAInternalObject
Returns:
True if the given flags indicate a boundary object. A 'boundary' object is either an EntryPoint or an ExternalService .
See Also:
ExternalService, EntryPoint

isBindableElement

public static boolean isBindableElement(int flags)
A Service that is 'bindable' may be cast down to a ModuleService and similarly, a 'bindable' Reference may be cast down to a ModuleReference.

Parameters:
flags - The flags from a given SCAInternalObject
Returns:
Ttrue if the element is bindable. A 'bindable' element is either a ModuleService or a ModuleReference, false otherwise.
See Also:
ModuleService, ModuleReference