com.vmware.vim25.ws.XmlGen.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vijava Show documentation
Show all versions of vijava Show documentation
Java API for accessing VMWare web services API
The newest version!
???? 2? com/vmware/vim25/ws/XmlGen java/lang/Object PACKAGE_NAME Ljava/lang/String; XSI Lorg/dom4j/Namespace; XSI_TYPE Lorg/dom4j/QName; BASIC_TYPES [Ljava/lang/String; PRIMITIVE_DATA_TYPES Ljava/util/Set; Signature #Ljava/util/Set;
VimClasses Ljava/util/Map; 4Ljava/util/Map; VIM_PKG Ljava/lang/Package; INT_ARRAY_CLASS Ljava/lang/Class; BYTE_ARRAY_CLASS LONG_ARRAY_CLASS ()V Code com.vmware.vim25 " org/dom4j/Namespace $ xsi & )http://www.w3.org/2001/XMLSchema-instance
! ( ) * '(Ljava/lang/String;Ljava/lang/String;)V , . org/dom4j/QName 0 type
- 2 ) 3 *(Ljava/lang/String;Lorg/dom4j/Namespace;)V 5
7 java/lang/String 9 String ; int = short ? long A float C Float E byte G boolean I Boolean K Calendar M double O Q java/util/HashSet
P S ) U
W Y X
java/util/Set Z [ add (Ljava/lang/Object;)Z ] &java/util/concurrent/ConcurrentHashMap
\ S ` b 'com/vmware/vim25/ManagedObjectReference
d f e java/lang/Class g h
getPackage ()Ljava/lang/Package; j
l m n getClass ()Ljava/lang/Class; p r t LineNumberTable LocalVariableTable
S this Lcom/vmware/vim25/ws/XmlGen; parseSoapFault =(Lorg/dom4j/Element;)Lcom/vmware/vim25/ws/SoapFaultException;
Exceptions ~ java/lang/Exception ? &com/vmware/vim25/ws/SoapFaultException
S ? faultcode ? ? ? org/dom4j/Element ? ? elementText &(Ljava/lang/String;)Ljava/lang/String;
? ? ? setFaultCode (Ljava/lang/String;)V ? faultstring
? ? ? setFaultString ?
faultactor
? ? ?
setFaultActor ? detail ? ? ? ? element '(Ljava/lang/String;)Lorg/dom4j/Element; ? ? ? ? elements ()Ljava/util/List; ? ? ? java/util/List ? ? size ()I ? ? ? ? get (I)Ljava/lang/Object; ? ? ? ? attributeValue %(Lorg/dom4j/QName;)Ljava/lang/String;
? ? ? getVimClass %(Ljava/lang/String;)Ljava/lang/Class;
? ? ? fromXml 8(Ljava/lang/Class;Lorg/dom4j/Element;)Ljava/lang/Object; ? java/lang/Throwable ? ? ? Ljava/lang/Throwable; root Lorg/dom4j/Element; sfe (Lcom/vmware/vim25/ws/SoapFaultException; detailE subElems Ljava/util/List; faultE
faultTypeName LocalVariableTypeTable Ljava/util/List<*>;
StackMapTable fromXML 9(Ljava/lang/String;Lorg/dom4j/Element;)Ljava/lang/Object; ? ManagedObjectReference
6 ? ? ?
startsWith (Ljava/lang/String;)Z ? []
6 ? ? ? endsWith ? ? ? ? ? ? ? ? getText ()Ljava/lang/String;
? ? ? createMOR O(Ljava/lang/String;Ljava/lang/String;)Lcom/vmware/vim25/ManagedObjectReference;
? ? ? isBasicType
? ? ?
parseValue 9(Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/Object;
6 ? ? ? length
6 ? ? ? substring (II)Ljava/lang/String;
? ? ? java/lang/reflect/Array ? ? newInstance &(Ljava/lang/Class;I)Ljava/lang/Object;
? ? ? ? set ((Ljava/lang/Object;ILjava/lang/Object;)V subNodes e mos *[Lcom/vmware/vim25/ManagedObjectReference; i I elem vals arrayItemTypeName clazz ao Ljava/lang/Object; xsiType o %Ljava/util/List; ?
java/util/Map
[ containsKey
? &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/StringBuilder
6 valueOf &(Ljava/lang/Object;)Ljava/lang/String;
) ? .
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
! ? toString
d#$ ? forName
&'( put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
*,+ java/lang/ClassNotFoundException- printStackTrace compType cnfe "Ljava/lang/ClassNotFoundException;
d2 ?3 ()Ljava/lang/Object; ?56 ? getName W89 [ contains; _
d=>? getField -(Ljava/lang/String;)Ljava/lang/reflect/Field;
ACB java/lang/reflect/FieldD n getType
dFGH isArray ()Z
dJK n getComponentTypeM xsd:
OPQ getNumberOfSameTags '(Ljava/util/List;IILjava/lang/String;)I
AS ?T '(Ljava/lang/Object;Ljava/lang/Object;)V
dVWH isEnum
Y[Z java/lang/Enum\ 5(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
d^_ ?
getSimpleName
6a ?b (I)Ljava/lang/String;
def setArrayFieldValue S(Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/String;)V
hij
setFieldValue R(Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;)V node obj sizeOfSubNodes tagName field Ljava/lang/reflect/Field; fType isFieldArray Z fRealType sizeOfFieldArray j fo enumStr fGenericType elemXsiType elemType values fTrueType <(Ljava/util/List;IILjava/lang/String;)I
6?? [ equals from numOfTags
a S a?? val a? 0 value mor )Lcom/vmware/vim25/ManagedObjectReference; parseByteArray ([Ljava/lang/String;)[B
??? java/lang/Byte?? parseByte (Ljava/lang/String;)B bs [B? parseLongArray ([Ljava/lang/String;)[J
??? java/lang/Long?? parseLong (Ljava/lang/String;)J ls [J? parseShortArray ([Ljava/lang/String;)[S
??? java/lang/Short??
parseShort (Ljava/lang/String;)S ss [S? parseFloatArray ([Ljava/lang/String;)[F
??? java/lang/Float??
parseFloat (Ljava/lang/String;)F fs [F? parseDoubleArray ([Ljava/lang/String;)[D
??? java/lang/Double?? parseDouble (Ljava/lang/String;)D ds [D?
parseIntArray ([Ljava/lang/String;)[I
??? java/lang/Integer?? parseInt (Ljava/lang/String;)I is [I? parseBooleanArray ([Ljava/lang/String;)[Z
??? java/lang/Boolean? ? parseBoolean [Z?? string? String[]
?? int[]
???
?? short[]
???
?? byte[]
???
?? long[]
???
?? float[]
???
?? boolean[]
???? dateTime
??? javax/xml/bind/DatatypeConverter parseTime ((Ljava/lang/String;)Ljava/util/Calendar;
? double[]
?? java/lang/RuntimeException
Unexpected Type@setField:
cal Ljava/util/Calendar; "java/lang/IllegalArgumentException java/lang/IllegalAccessException
? (I)Ljava/lang/Integer; Integer
? (S)Ljava/lang/Short; Short
? (B)Ljava/lang/Byte; Byte
?"# (J)Ljava/lang/Long;% Long
?'( (F)Ljava/lang/Float;
?*+ (Z)Ljava/lang/Boolean;
?-. (D)Ljava/lang/Double;0 Double
d23 ? getCanonicalName
A5 f7 string[] toXML J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String;; = java/lang/StringBuffer
<