edu.cmu.sei.aadl.model.feature
Class PortDirection

java.lang.Object
  extended by org.eclipse.emf.common.util.AbstractEnumerator
      extended by edu.cmu.sei.aadl.model.feature.PortDirection
All Implemented Interfaces:
java.io.Serializable, org.eclipse.emf.common.util.Enumerator

public final class PortDirection
extends org.eclipse.emf.common.util.AbstractEnumerator

A representation of the literals of the enumeration 'Port Direction', and utility methods for working with them.

See Also:
FeaturePackage.getPortDirection(), Serialized Form

Field Summary
static java.lang.String copyright
           
static int IN
          The 'In' literal value
static PortDirection IN_LITERAL
          The 'In' literal object
static int INOUT
          The 'Inout' literal value
static PortDirection INOUT_LITERAL
          The 'Inout' literal object
static int OUT
          The 'Out' literal value
static PortDirection OUT_LITERAL
          The 'Out' literal object
static java.util.List VALUES
          A public read-only list of all the 'Port Direction' enumerators
 
Method Summary
static PortDirection get(int value)
          Returns the 'Port Direction' literal with the specified integer value
static PortDirection get(java.lang.String literal)
          Returns the 'Port Direction' literal with the specified literal value
static PortDirection getByName(java.lang.String name)
          Returns the 'Port Direction' literal with the specified name
 java.lang.String getFileName()
           
 PortDirection getInverseDirection()
          Sets the port direction to be the opposite of the one specified The original direction may be retrieved from a refinement ancestor the value is set locally
 java.lang.String getReadableName()
           
 java.lang.String getUnparseName()
           
 boolean incoming()
          PortDirection is IN or INOUT
 boolean isInverseOf(PortDirection other)
           
 boolean outgoing()
          PortDirection is OUT or INOUT
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getLiteral, getName, getValue, toString, writeReplace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

copyright

public static final java.lang.String copyright

See Also:
Constant Field Values

IN

public static final int IN
The 'In' literal value.

See Also:
IN_LITERAL, Constant Field Values

OUT

public static final int OUT
The 'Out' literal value.

See Also:
OUT_LITERAL, Constant Field Values

INOUT

public static final int INOUT
The 'Inout' literal value.

See Also:
INOUT_LITERAL, Constant Field Values

IN_LITERAL

public static final PortDirection IN_LITERAL
The 'In' literal object.

If the meaning of 'In' literal object isn't clear, there really should be more of a description here...

See Also:
IN

OUT_LITERAL

public static final PortDirection OUT_LITERAL
The 'Out' literal object.

If the meaning of 'Out' literal object isn't clear, there really should be more of a description here...

See Also:
OUT

INOUT_LITERAL

public static final PortDirection INOUT_LITERAL
The 'Inout' literal object.

If the meaning of 'Inout' literal object isn't clear, there really should be more of a description here...

See Also:
INOUT

VALUES

public static final java.util.List VALUES
A public read-only list of all the 'Port Direction' enumerators.

Method Detail

get

public static PortDirection get(java.lang.String literal)
Returns the 'Port Direction' literal with the specified literal value.


getByName

public static PortDirection getByName(java.lang.String name)
Returns the 'Port Direction' literal with the specified name.


get

public static PortDirection get(int value)
Returns the 'Port Direction' literal with the specified integer value.


incoming

public boolean incoming()
PortDirection is IN or INOUT

Returns:
boolean true if IN or INOUT

outgoing

public boolean outgoing()
PortDirection is OUT or INOUT

Returns:
boolean true if OUT or INOUT

getInverseDirection

public PortDirection getInverseDirection()
Sets the port direction to be the opposite of the one specified The original direction may be retrieved from a refinement ancestor the value is set locally


isInverseOf

public boolean isInverseOf(PortDirection other)

getFileName

public final java.lang.String getFileName()

getReadableName

public java.lang.String getReadableName()

getUnparseName

public java.lang.String getUnparseName()