|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.util.def.MethodName
public final class MethodName
This class holds all method names to access xmlBlaster.
Nested Class Summary | |
---|---|
private static class |
MethodName.SerializedForm
|
Field Summary | |
---|---|
private static int |
ARG_KEYQOS
|
private static int |
ARG_MSGARR
|
private static int |
ARG_QOS
|
private static int |
ARG_STR_MSGARR
|
private int |
argType
|
static MethodName |
CONNECT
|
static MethodName |
DISCONNECT
|
static MethodName |
DUMMY
|
static MethodName |
ERASE
|
static MethodName |
EXCEPTION
|
static MethodName |
GET
|
private static java.util.Hashtable |
hash
|
private java.lang.String |
methodName
|
private byte[] |
methodNameBytes
|
static MethodName |
PING
|
static MethodName |
PUBLISH
|
static MethodName |
PUBLISH_ARR
|
static MethodName |
PUBLISH_ONEWAY
|
static MethodName |
PUBLISH_PTP
for convenience only: not used by xmlBlaster itself |
static MethodName |
PUBLISH_PTP_ARR
for convenience only: not used by xmlBlaster itself |
static MethodName |
PUBLISH_PTP_ONEWAY
for convenience only: not used by xmlBlaster itself |
private static int |
RETURN_MSGARR
|
private static int |
RETURN_STRING
|
private static int |
RETURN_STRINGARR
|
private static int |
RETURN_VOID
|
private int |
returnType
|
private static long |
serialVersionUID
|
static MethodName |
SUBSCRIBE
|
static MethodName |
UNKNOWN
|
static MethodName |
UNSUBSCRIBE
|
static MethodName |
UPDATE
|
static MethodName |
UPDATE_ONEWAY
|
Constructor Summary | |
---|---|
private |
MethodName(java.lang.String methodName,
int argType,
int returnType)
|
Method Summary | |
---|---|
int |
compareTo(java.lang.Object other)
|
boolean |
equals(MethodName other)
When you compare two methodName with == and they are loaded by different Classloaders it will fail (return false even if they are the same method), using this equals() method is safe under such circumstances |
boolean |
equals(java.lang.String other)
When you compare two methodName with == and they are loaded by different Classloaders it will fail (return false even if they are the same method), using this equals() method is safe under such circumstances |
static MethodName[] |
getAll()
|
java.lang.String |
getMethodName()
Returns the methodName. |
byte[] |
getMethodNameBytes()
For better performance in SOCKET protocol. |
boolean |
isConnect()
|
boolean |
isDisconnect()
|
boolean |
isErase()
|
boolean |
isGet()
|
boolean |
isPublish()
|
boolean |
isPublishArray()
|
boolean |
isPublishOnway()
|
boolean |
isPublishType()
|
boolean |
isSubscribe()
|
boolean |
isUnSubscribe()
|
static void |
main(java.lang.String[] args)
java org.xmlBlaster.util.def.MethodName |
boolean |
returnsMsgArr()
|
boolean |
returnsString()
|
boolean |
returnsStringArr()
|
boolean |
returnsVoid()
|
static MethodName |
toMethodName(byte[] methodNameBytes)
|
static MethodName |
toMethodName(java.lang.String methodName)
Returns the MethodName object for the given String. |
java.lang.String |
toString()
Return the methodName. |
static java.lang.String |
toString(MethodName[] nameArr)
|
boolean |
wantsKeyQosArg()
|
boolean |
wantsMsgArrArg()
|
boolean |
wantsQosArg()
|
boolean |
wantsStrMsgArrArg()
|
java.lang.Object |
writeReplace()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private static final java.util.Hashtable hash
private final java.lang.String methodName
private final int argType
private final int returnType
private transient byte[] methodNameBytes
private static final int RETURN_VOID
private static final int RETURN_STRING
private static final int RETURN_STRINGARR
private static final int RETURN_MSGARR
private static final int ARG_QOS
private static final int ARG_KEYQOS
private static final int ARG_MSGARR
private static final int ARG_STR_MSGARR
public static final MethodName CONNECT
public static final MethodName DISCONNECT
public static final MethodName GET
public static final MethodName ERASE
public static final MethodName PUBLISH
public static final MethodName PUBLISH_ARR
public static final MethodName PUBLISH_ONEWAY
public static final MethodName SUBSCRIBE
public static final MethodName UNSUBSCRIBE
public static final MethodName UPDATE
public static final MethodName UPDATE_ONEWAY
public static final MethodName PING
public static final MethodName DUMMY
public static final MethodName UNKNOWN
public static final MethodName EXCEPTION
public static final MethodName PUBLISH_PTP
public static final MethodName PUBLISH_PTP_ARR
public static final MethodName PUBLISH_PTP_ONEWAY
Constructor Detail |
---|
private MethodName(java.lang.String methodName, int argType, int returnType)
java.lang.IllegalArgumentException
- if the given methodName is nullMethod Detail |
---|
public static MethodName[] getAll()
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(MethodName[] nameArr)
public java.lang.String getMethodName()
public boolean isConnect()
public boolean isDisconnect()
public boolean isPublish()
public boolean isPublishOnway()
public boolean isPublishArray()
public boolean isPublishType()
public boolean isSubscribe()
public boolean isUnSubscribe()
public boolean isGet()
public boolean isErase()
public boolean equals(MethodName other)
public boolean equals(java.lang.String other)
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public byte[] getMethodNameBytes()
public boolean wantsQosArg()
public boolean wantsKeyQosArg()
public boolean wantsMsgArrArg()
public boolean wantsStrMsgArrArg()
public boolean returnsVoid()
public boolean returnsString()
public boolean returnsStringArr()
public boolean returnsMsgArr()
public static final MethodName toMethodName(java.lang.String methodName) throws java.lang.IllegalArgumentException
methodName
- The String code to lookup
java.lang.IllegalArgumentException
- if the given methodName is invalidpublic static final MethodName toMethodName(byte[] methodNameBytes) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.Object writeReplace() throws java.io.ObjectStreamException
java.io.ObjectStreamException
public static void main(java.lang.String[] args)
java org.xmlBlaster.util.def.MethodName
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |