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.ObjectEnumeration of permitted types within a SAMP data structure.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Classclazz_static ActorHandler.SampTypeLISTList type.static ActorHandler.SampTypeMAPMap type.private java.lang.Stringname_static ActorHandler.SampTypeSTRINGString type.
-
Constructor Summary
Constructors Modifier Constructor Description privateSampType(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.SampTypegetClassType(java.lang.Class clazz)Returns the SampType corresponding to a given java class.static ActorHandler.SampTypegetParamType(java.lang.Object param)Returns the SampType corresponding to a given object.java.lang.ClassgetTypeClass()Returns the java class corresponding to this type.java.lang.StringtoString()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:
toStringin 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
-
-