com.jmrosengard.xmlbroker.soapipr
Class Mode
java.lang.Object
|
+--com.jmrosengard.xmlbroker.soapipr.Mode
- All Implemented Interfaces:
- java.lang.Comparable
- public class Mode
- extends java.lang.Object
- implements java.lang.Comparable
Models a parameter passing Mode (in
as an `enumeration'.
or out)
Constructor Summary |
Mode(short mode)
|
Method Summary |
int |
compareTo(java.lang.Object o)
Provided for sorting collections of Mode objects |
boolean |
equals(java.lang.Object o)
Return true if the two Modes are equal |
java.lang.String |
getMark()
return the mark corresponding to
the current mode |
short |
getValue()
return the current mode |
boolean |
isIn()
Return true if mode==MODE_OUT |
boolean |
isOut()
Return true if mode==MODE_IN |
java.lang.String |
toString()
return a String representation of
the current mode |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
MODE_IN
public static final short MODE_IN
MODE_OUT
public static final short MODE_OUT
IN_MARK
public static final java.lang.String IN_MARK
OUT_MARK
public static final java.lang.String OUT_MARK
mode
private short mode
Mode
public Mode(short mode)
equals
public boolean equals(java.lang.Object o)
- Return true if the two Modes are equal
- Overrides:
equals
in class java.lang.Object
compareTo
public int compareTo(java.lang.Object o)
- Provided for sorting collections of Mode objects
- Specified by:
compareTo
in interface java.lang.Comparable
getValue
public short getValue()
- return the current mode
isIn
public boolean isIn()
- Return true if mode==MODE_OUT
isOut
public boolean isOut()
- Return true if mode==MODE_IN
getMark
public java.lang.String getMark()
- return the mark corresponding to
the current mode
toString
public java.lang.String toString()
- return a String representation of
the current mode
- Overrides:
toString
in class java.lang.Object