com.vmware.vim25.ws.XmlGen.class Maven / Gradle / Ivy
The newest version!
???? 1v 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 ()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 / type
, 1 ( 2 *(Ljava/lang/String;Lorg/dom4j/Namespace;)V 4
6 java/lang/String 8 String : int < short > long @ byte B boolean D Boolean F Calendar H J java/util/HashSet
I L ( N
P R Q
java/util/Set S T add (Ljava/lang/Object;)Z V java/util/HashMap
U L Y [ 'com/vmware/vim25/ManagedObjectReference
] _ ^ java/lang/Class ` a
getPackage ()Ljava/lang/Package; c
e f g getClass ()Ljava/lang/Class; i k LineNumberTable LocalVariableTable
L this Lcom/vmware/vim25/ws/XmlGen; parseSoapFault =(Lorg/dom4j/Element;)Lcom/vmware/vim25/ws/SoapFaultException;
Exceptions u java/lang/Exception w &com/vmware/vim25/ws/SoapFaultException
v L z faultcode | ~ } org/dom4j/Element ? elementText &(Ljava/lang/String;)Ljava/lang/String;
v ? ? ? setFaultCode (Ljava/lang/String;)V ? faultstring
v ? ? ? setFaultString ?
faultactor
v ? ? ?
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 v ? ? ? Ljava/lang/Throwable; root Lorg/dom4j/Element; sfe (Lcom/vmware/vim25/ws/SoapFaultException; detailE subElems Ljava/util/List; faultE
faultTypeName LocalVariableTypeTable Ljava/util/List<*>; fromXML 9(Ljava/lang/String;Lorg/dom4j/Element;)Ljava/lang/Object; ? ManagedObjectReference
5 ? ? ?
startsWith (Ljava/lang/String;)Z ? []
5 ? ? ? 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;
5 ? ? ? length
5 ? ? ? 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 T containsKey ? ? &(Ljava/lang/Object;)Ljava/lang/Object; java/lang/StringBuilder
5
valueOf &(Ljava/lang/Object;)Ljava/lang/String;
( ? .
append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
? toString
] ? forName ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
java/lang/ClassNotFoundException! printStackTrace compType cnfe "Ljava/lang/ClassNotFoundException;
]& ?' ()Ljava/lang/Object; |)* ? getName P,- T contains/ _
]123 getField -(Ljava/lang/String;)Ljava/lang/reflect/Field;
576 java/lang/reflect/Field8 g getType
]:;< isArray ()Z
]>? g getComponentTypeA xsd:
CDE getNumberOfSameTags '(Ljava/util/List;IILjava/lang/String;)I
5G ?H '(Ljava/lang/Object;Ljava/lang/Object;)V
]JK< isEnum
MON java/lang/Enum P 5(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum;
]RS ?
getSimpleName
5U ?V (I)Ljava/lang/String;
XYZ setArrayFieldValue S(Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;[Ljava/lang/String;)V
\]^
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
5tu T equals from numOfTags
Z L Zz{ val Z} / 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
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[]
???
?? boolean[]
???? dateTime
??? javax/xml/bind/DatatypeConverter?? parseTime ((Ljava/lang/String;)Ljava/util/Calendar;? 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
?? ? (Z)Ljava/lang/Boolean;
]?? ? getCanonicalName
5) f? string[] toXML J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; java/lang/StringBuffer
L
? P(Ljava/lang/StringBuffer;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/Object;)V
tag sb Ljava/lang/StringBuffer;? < >
,(Ljava/lang/String;)Ljava/lang/StringBuffer;
(I)Ljava/lang/StringBuffer; ? [Ljava/lang/Object; type=" ">" java.lang$ xsi:type="
&'
getXSIType
)* ,(Ljava/lang/Object;)Ljava/lang/StringBuffer;
,- -(Ljava/lang/Object;)Ljava/lang/StringBuilder;/ java/util/Calendar1 xsi:type="xsd:dateTime">
?345
printDateTime ((Ljava/util/Calendar;)Ljava/lang/String;
789 getAllFields -(Ljava/lang/Class;)[Ljava/lang/reflect/Field;
5
? objs
nameSpaceType fields [Ljava/lang/reflect/Field; fName iae "Ljava/lang/IllegalAccessException; Ljava/lang/Class<*>;E xsd:intG xsd:longI xsd:booleanK xsd:shortM java/lang/FloatO xsd:floatQ
xsd:stringS xsd:byteU xsd:dateTimeW &Unknow data type during serialization: 0(Ljava/lang/Class<*>;)[Ljava/lang/reflect/Field;?[ java/util/ArrayList
Z L
^8_ )(Ljava/lang/Class;Ljava/util/ArrayList;)V
Z ?
Zbcd toArray (([Ljava/lang/Object;)[Ljava/lang/Object; c al Ljava/util/ArrayList; 0Ljava/util/ArrayList; G(Ljava/lang/Class<*>;Ljava/util/ArrayList;)V
]kl g
getSuperclass
]nop getDeclaredFields ()[Ljava/lang/reflect/Field;
Z R supClazz fs
SourceFile XmlGen.java 1
?? ? Y"$? &? *? ,Y.? *? 0? 3? 5Y7SY9SY;SY=SY?SYASYCSYES? G? IY? K? M? M9? O W? MA? O W? M;? O W? M?? O W? M=? O W? UY? W? XZ? \? b?
? d? h?? d? j? l > 9 : ; " <