Package org.astrogrid.samp.xmlrpc
Class ActorHandler.SampType
- java.lang.Object
-
- org.astrogrid.samp.xmlrpc.ActorHandler.SampType
-
- Enclosing class:
- ActorHandler
private static class ActorHandler.SampType extends java.lang.Object
Enumeration of permitted types within a SAMP data structure.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Class
clazz_
static ActorHandler.SampType
LIST
List type.static ActorHandler.SampType
MAP
Map type.private java.lang.String
name_
static ActorHandler.SampType
STRING
String type.
-
Constructor Summary
Constructors Modifier Constructor Description private
SampType(java.lang.Class clazz, java.lang.String name)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ActorHandler.SampType
getClassType(java.lang.Class clazz)
Returns the SampType corresponding to a given java class.static ActorHandler.SampType
getParamType(java.lang.Object param)
Returns the SampType corresponding to a given object.java.lang.Class
getTypeClass()
Returns the java class corresponding to this type.java.lang.String
toString()
Returns the SAMP name for this type.
-
-
-
Field Detail
-
STRING
public static final ActorHandler.SampType STRING
String type.
-
LIST
public static final ActorHandler.SampType LIST
List type.
-
MAP
public static final ActorHandler.SampType MAP
Map type.
-
clazz_
private final java.lang.Class clazz_
-
name_
private final java.lang.String name_
-
-
Method Detail
-
getTypeClass
public java.lang.Class getTypeClass()
Returns the java class corresponding to this type.- Returns:
- class
-
toString
public java.lang.String toString()
Returns the SAMP name for this type.- Overrides:
toString
in classjava.lang.Object
- Returns:
- name
-
getClassType
public static ActorHandler.SampType getClassType(java.lang.Class clazz)
Returns the SampType corresponding to a given java class.- Parameters:
clazz
- class- Returns:
- SAMP type
-
getParamType
public static ActorHandler.SampType getParamType(java.lang.Object param)
Returns the SampType corresponding to a given object.- Parameters:
param
- object return SAMP type
-
-