BEA Systems, Inc.

com.bea.rfid.edge.toolkit.workflow
Class AnyPortType

java.lang.Object
  extended by com.bea.rfid.edge.toolkit.workflow.AnyPortType
All Implemented Interfaces:
PortType

public class AnyPortType
extends Object
implements PortType

Represents the type of a Port that sends or receives messages of any type. These PortTypes may be wired to or from any PortType.


Constructor Summary
AnyPortType()
           
 
Method Summary
 boolean canAcceptMessage(Object msg)
          Interface method implementation.
 String getDisplayName()
          Returns the display name for this port type.
 String getStringRepresentation()
          Returns a string representation that uniquely identifies equivalent port types.
 boolean isWirableFrom(PortType fromType)
          Interface method implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyPortType

public AnyPortType()
Method Detail

isWirableFrom

public boolean isWirableFrom(PortType fromType)
Interface method implementation. Since this port type can be wired from anything, this always returns true.

Specified by:
isWirableFrom in interface PortType
Parameters:
fromType - The PortType from which this is to be connected.
Returns:
Returns true if it is valid to connect the given PortType to this; False otherwise.

getDisplayName

public String getDisplayName()
Description copied from interface: PortType
Returns the display name for this port type. This value may be used in GUIs and such to give visual cue to users of the modules.

Specified by:
getDisplayName in interface PortType
Returns:
Display name of the port type.

getStringRepresentation

public String getStringRepresentation()
Description copied from interface: PortType
Returns a string representation that uniquely identifies equivalent port types. This is a temporary mechanism used to represent a port type in dynamic set parameters in dynamic configuration.

Specified by:
getStringRepresentation in interface PortType

canAcceptMessage

public boolean canAcceptMessage(Object msg)
Interface method implementation. Since this port can take any type, this always returns true.

Specified by:
canAcceptMessage in interface PortType
Parameters:
msg - The message that is to be sent.
Returns:
Returns true if the port type will accept the message. False otherwise.

Documentation is available at
${DOCSWEBROOT}
Copyright 2007 BEA Systems Inc.