io.atlasmap.xml.inspect.XmlSchemaInspector.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4j
#? ?? ???
?
????
???
,?
?
???
?
???
?
?
? ??
? ??
??
??????
,?????
??
????
,?
??????????? *?? *???
,??? ???????
???
8?
???
;?
;?
;?
8????
???????
F??
?? H???
??
???
N?
N
N
? ?
?
?
?
? ?
?
?
?
?
?
?
?
?
?
?!"#$%&
?'
?(
?)?* +,
?-??
?. H/
0 H123 ?456???78
?9:;?< ?=
>?
@A/ BCA1DAE2?
?F
GH??I26
J ?KL
??
?MN
??
O
?P
QRS
??
?T ?UVW
XY Z[ Z\
]^
_`
_?
?a
_7?b
??
,
?c
de
?f
g
?h
#i
dj
dkl
mno
??p ?q?rs ?tuvwxy ?z{ ?|} ?~ ??? ??? ??? ??? ??? ??? ??? ??? ?????????? LOG Lorg/slf4j/Logger; XS_TYPE_TO_FIELD_TYPE_MAP Ljava/util/Map; Signature =Ljava/util/Map; BLACKLISTED_TYPES xmlDocument Lio/atlasmap/xml/v2/XmlDocument; namespaceContext /Lio/atlasmap/xml/core/AtlasXmlNamespaceContext;
rootNamespace Ljava/lang/String; classLoader Ljava/lang/ClassLoader; ()V Code LineNumberTable LocalVariableTable this ,Lio/atlasmap/xml/inspect/XmlSchemaInspector; setClassLoader (Ljava/lang/ClassLoader;)V loader getXmlDocument "()Lio/atlasmap/xml/v2/XmlDocument; inspect (Ljava/io/File;)V e Ljava/lang/Exception;
schemaFile Ljava/io/File;
StackMapTable?
Exceptions (Ljava/lang/String;)V schemaAsString doInspect (Ljava/io/InputStream;)V is Ljava/io/InputStream; fields Lio/atlasmap/v2/Fields; parser 5Lio/atlasmap/xml/core/schema/AtlasXmlSchemaSetParser; schemaSet Lcom/sun/xml/xsom/XSSchemaSet; getNameNS 4(Lcom/sun/xml/xsom/XSDeclaration;)Ljava/lang/String; prefix decl Lcom/sun/xml/xsom/XSDeclaration; targetNamespace? populateNamespaces uri namespace !Lio/atlasmap/xml/v2/XmlNamespace; entry Entry InnerClasses Ljava/util/Map$Entry; LocalVariableTypeTable ;Ljava/util/Map$Entry;??l printSchemaSet !(Lcom/sun/xml/xsom/XSSchemaSet;)V rootComplexType #Lio/atlasmap/xml/v2/XmlComplexType; xmlField Lio/atlasmap/xml/v2/XmlField; cachedComplexType Ljava/util/Set; cachedComplexElement Lcom/sun/xml/xsom/XSElementDecl; rootName schema Lcom/sun/xml/xsom/XSSchema; jtr Ljava/util/Iterator; #Ljava/util/Set; 6Ljava/util/Iterator;???? printComplexType v(Lcom/sun/xml/xsom/XSComplexType;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V complexType Lcom/sun/xml/xsom/XSComplexType; xmlComplexType particle Lcom/sun/xml/xsom/XSParticle;? ?(Lcom/sun/xml/xsom/XSComplexType;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V
printParticle s(Lcom/sun/xml/xsom/XSParticle;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V group Lcom/sun/xml/xsom/XSModelGroup; collectionType Lio/atlasmap/v2/CollectionType; term Lcom/sun/xml/xsom/XSTerm;? ?(Lcom/sun/xml/xsom/XSParticle;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V
printGroup u(Lcom/sun/xml/xsom/XSModelGroup;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V
modelGroup? ?(Lcom/sun/xml/xsom/XSModelGroup;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V printGroupDecl y(Lcom/sun/xml/xsom/XSModelGroupDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V modelGroupDecl #Lcom/sun/xml/xsom/XSModelGroupDecl; parentXmlComplexType ?(Lcom/sun/xml/xsom/XSModelGroupDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;Ljava/util/Set;)V printElement ?(Lcom/sun/xml/xsom/XSElementDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Lio/atlasmap/v2/CollectionType;Ljava/util/Set;Ljava/util/Set;)V typeRestriction *Lcom/sun/xml/xsom/XSRestrictionSimpleType; element root elementName typeName???? ?(Lcom/sun/xml/xsom/XSElementDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Lio/atlasmap/v2/CollectionType;Ljava/util/Set;Ljava/util/Set;)V printAttributes X(Lcom/sun/xml/xsom/XSComplexType;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;)V fieldType Lio/atlasmap/v2/FieldType;
simpleType Lcom/sun/xml/xsom/XSSimpleType;
attributeDecl "Lcom/sun/xml/xsom/XSAttributeDecl; attrType aC !Lcom/sun/xml/xsom/XSAttributeUse;
xsComplexType c Ljava/util/Collection; :Ljava/util/Collection<+Lcom/sun/xml/xsom/XSAttributeUse;>;?<?8?? printSimpleType ?(Lcom/sun/xml/xsom/XSSimpleType;Lio/atlasmap/xml/v2/XmlField;)V mapRestrictions J(Lio/atlasmap/xml/v2/XmlField;Lcom/sun/xml/xsom/XSRestrictionSimpleType;)V restrictionSimpleType simpleTypeRestriction /Lio/atlasmap/xml/inspect/SimpleTypeRestriction; restrictions !Lio/atlasmap/xml/v2/Restrictions; getXmlComplexType %()Lio/atlasmap/xml/v2/XmlComplexType; getFieldType .(Ljava/lang/String;)Lio/atlasmap/v2/FieldType; name getCollectionType >(Lcom/sun/xml/xsom/XSParticle;)Lio/atlasmap/v2/CollectionType; !mapSimpleRestrictionToRestriction O(Lio/atlasmap/xml/inspect/SimpleTypeRestriction;Lio/atlasmap/xml/v2/XmlField;)V restriction Lio/atlasmap/xml/v2/Restriction; v values [Ljava/lang/String; value Ljava/lang/Object; field Ljava/lang/reflect/Field;?L??i typeRestrictionExists (Ljava/lang/String;)Z restrictionType $Lio/atlasmap/xml/v2/RestrictionType;?
SourceFile XmlSchemaInspector.java ? ? ? ? ? ? java/io/FileInputStream ? java/lang/Exception .io/atlasmap/xml/inspect/XmlInspectionException ?? java/io/ByteArrayInputStream UTF-8?? ???? io/atlasmap/v2/Fields??? 3io/atlasmap/xml/core/schema/AtlasXmlSchemaSetParser ? ???? ? ??? ? ?-. ???????????????? %s:%s java/lang/Object??????????????? java/util/Map$Entry?? java/lang/String?? javax/xml/XMLConstants http://www.w3.org/2001/XMLSchema?? &io/atlasmap/xml/core/AtlasXmlConstants #http://atlasmap.io/xml/schemaset/v2 ? ???? (adding a namespace >>> prefix={}, uri={}???? io/atlasmap/xml/v2/XmlNamespaces?? io/atlasmap/xml/v2/XmlNamespace?
?
????? Schema set is null ?
??? ?? java/util/HashSet com/sun/xml/xsom/XSElementDecl?????????
java/lang/StringBuilder /?????
?p????????BC?????????mn????? KL???UV?Z[ ???
`a
Element: {}/{}?? !"?#$ ? ??%?&' io/atlasmap/v2/FieldType??()? com/sun/xml/xsom/XSAttributeUse*+,-./0?1? ? /@?????234567
8p -io/atlasmap/xml/inspect/SimpleTypeRestriction9: io/atlasmap/xml/v2/Restrictions;<??=>? io/atlasmap/xml/v2/XmlFields?@ ? ?A?BCDEF?GPHPIJK?LM?? io/atlasmap/xml/v2/Restriction
NOPQRSTU? java/lang/IllegalAccessException?V?? *io/atlasmap/xml/inspect/XmlSchemaInspectorWXY java/util/HashMap intZp[\ integer]p negativeInteger nonNegativeInteger positiveInteger nonPositiveInteger string^p short_p long`p doubleap floatbp booleancp datedp dateTimeep decimalfp unsignedLonggp unsignedInthp
unsignedShortip NMTOKEN anyURI base64Binary byte unsignedByte hexBinary NOTATION QName java/util/Iterator com/sun/xml/xsom/XSSchema com/sun/xml/xsom/XSSchemaSet
java/util/Set com/sun/xml/xsom/XSParticle com/sun/xml/xsom/XSTerm [Lcom/sun/xml/xsom/XSParticle; !io/atlasmap/xml/v2/XmlComplexType io/atlasmap/v2/CollectionType io/atlasmap/xml/v2/XmlField (com/sun/xml/xsom/XSRestrictionSimpleType java/util/Collection com/sun/xml/xsom/XSAttributeDecl com/sun/xml/xsom/XSSimpleType com/sun/xml/xsom/XSComplexType [Ljava/lang/reflect/Field; java/lang/reflect/Field %[Lio/atlasmap/xml/v2/RestrictionType; (Ljava/lang/Throwable;)V getBytes (Ljava/lang/String;)[B ([B)V 'io/atlasmap/xml/v2/AtlasXmlModelFactory createXmlDocument io/atlasmap/xml/v2/XmlDocument setFields (Lio/atlasmap/v2/Fields;)V parse 5(Ljava/io/InputStream;)Lcom/sun/xml/xsom/XSSchemaSet; getNamespaceContext 1()Lio/atlasmap/xml/core/AtlasXmlNamespaceContext; getRootNamespace ()Ljava/lang/String; com/sun/xml/xsom/XSDeclaration getName getTargetNamespace isEmpty ()Z getOwnerSchema ()Lcom/sun/xml/xsom/XSSchema; -io/atlasmap/xml/core/AtlasXmlNamespaceContext getPrefix &(Ljava/lang/String;)Ljava/lang/String; addWithIndex format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; getNamespaceMap ()Ljava/util/Map;
java/util/Map entrySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getKey getValue equals (Ljava/lang/Object;)Z org/slf4j/Logger isTraceEnabled trace 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V getXmlNamespaces $()Lio/atlasmap/xml/v2/XmlNamespaces; setXmlNamespaces %(Lio/atlasmap/xml/v2/XmlNamespaces;)V setAlias setUri getXmlNamespace ()Ljava/util/List; java/util/List add getSchema /(Ljava/lang/String;)Lcom/sun/xml/xsom/XSSchema; iterateElementDecls getType ()Lcom/sun/xml/xsom/XSType; com/sun/xml/xsom/XSType
isComplexType setName append -(Ljava/lang/String;)Ljava/lang/StringBuilder; toString setPath COMPLEX setFieldType (Lio/atlasmap/v2/FieldType;)V getFields ()Lio/atlasmap/v2/Fields; getField
asComplexType "()Lcom/sun/xml/xsom/XSComplexType; isSimpleType createXmlField ()Lio/atlasmap/xml/v2/XmlField; asSimpleType !()Lcom/sun/xml/xsom/XSSimpleType; getContentType "()Lcom/sun/xml/xsom/XSContentType; com/sun/xml/xsom/XSContentType
asParticle ()Lcom/sun/xml/xsom/XSParticle; getTerm ()Lcom/sun/xml/xsom/XSTerm; isModelGroup asModelGroup !()Lcom/sun/xml/xsom/XSModelGroup; isModelGroupDecl asModelGroupDecl %()Lcom/sun/xml/xsom/XSModelGroupDecl;
isElementDecl
asElementDecl "()Lcom/sun/xml/xsom/XSElementDecl; com/sun/xml/xsom/XSModelGroup getChildren ()[Lcom/sun/xml/xsom/XSParticle; !com/sun/xml/xsom/XSModelGroupDecl
getModelGroup setCollectionType "(Lio/atlasmap/v2/CollectionType;)V getXmlFields ()Lio/atlasmap/xml/v2/XmlFields; getXmlField contains io/atlasmap/v2/FieldStatus CACHED Lio/atlasmap/v2/FieldStatus; setStatus (Lio/atlasmap/v2/FieldStatus;)V getStatus ()Lio/atlasmap/v2/FieldStatus; getDefaultValue ()Lcom/sun/xml/xsom/XmlString; setValue (Ljava/lang/Object;)V
getFixedValue
asRestriction ,()Lcom/sun/xml/xsom/XSRestrictionSimpleType; getBaseType get &(Ljava/lang/Object;)Ljava/lang/Object; getDeclaredAttributeUses ()Ljava/util/Collection; getDecl $()Lcom/sun/xml/xsom/XSAttributeDecl; java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; setAttribute (Ljava/lang/Boolean;)V com/sun/xml/xsom/XmlString ()Lio/atlasmap/v2/FieldType; getRoot ()Lcom/sun/xml/xsom/XSSchemaSet;
getSimpleType E(Ljava/lang/String;Ljava/lang/String;)Lcom/sun/xml/xsom/XSSimpleType; setTypeName UNSUPPORTED initRestrictions -(Lcom/sun/xml/xsom/XSRestrictionSimpleType;)V setRestrictions $(Lio/atlasmap/xml/v2/Restrictions;)V *io/atlasmap/xml/core/XmlComplexTypeFactory createXmlComlexField setXmlFields !(Lio/atlasmap/xml/v2/XmlFields;)V
isRepeated getMaxOccurs ()Ljava/math/BigInteger; java/math/BigInteger intValue ()I LIST ARRAY java/lang/Class getDeclaredFields ()[Ljava/lang/reflect/Field;
setAccessible (Z)V "io/atlasmap/xml/v2/RestrictionType fromValue 8(Ljava/lang/String;)Lio/atlasmap/xml/v2/RestrictionType; setType '(Lio/atlasmap/xml/v2/RestrictionType;)V getRestrictions #()Lio/atlasmap/xml/v2/Restrictions; getRestriction '()[Lio/atlasmap/xml/v2/RestrictionType; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; INTEGER put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; BIG_INTEGER STRING SHORT LONG DOUBLE FLOAT BOOLEAN DATE DATE_TIME DECIMAL
UNSIGNED_LONG UNSIGNED_INTEGER UNSIGNED_SHORT ! ? # ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? / *? ? ? E ? ? ? ? ? > *+? ? ?
s t ? ? ? ? ? / *? ? ? w ? ? ? ? } *? Y+? ? ?
M? Y,? ?? ? | } ~ ? ? ? ?
O
? ? *?
Y+? ?
? ?
M? Y,? ?? ? ? ? ? ? ? ? ? ? ?
T ? ? E*? ? ? Y? M*? ,? ? Y*? ? N-+? :*-? ? *-? ? *? *? ? ? *
? ? ? ? # ? * ? 2 ? : ? @ ? D ? ? 4 E ? ? E 6 # " * ? ? o+? ? ?+? M,?
,? ? +? ? M,? >,? ? 7*? ,? N-?
-? ? *? ,? !N"? #Y-SY+? S? $?+? ? ? . ? ? ? ? ? ) ? 4 ? = ? H ? Q ? h ? ? * = + ? o ? ? o ] ?
? ? ? ? ? s ?*? ? %? & ? ' L+? ( ? ?+? ) ? *M,? + ? ,N,? - ? ,:/? 0???2? 0? ??IJ 3? 4 ? ? 35-? 6 *? ? 7? *? ? 8Y? 9? :? ;Y? <:-? =? >*? ? 7? ?? @ W??i? ? B ? % ? / ? : ? H ? N ? Q ? \ ? i ? s ? ? ? ? ? ? ? ? ? ? ? ? ? ? 4 / z ? : o! ? ? "# % ?$' ? ? ? ( % ?$)
? *? >+? * , -. ? ? 8+?
? YA? B?*? ? +*? ? C ? +D? C M,? E N-? ( ? ?? FY? G:? FY? G:-? ) ? H:*? I:? J ? K ? p*? L:? M? NY? OP? Q? Q? R? S? T? U*? ? V? W? @ W*? J ? X ? NY? OP? Q? Q? R? Y? [? J ? Z ? L? [:? \? NY? OP? Q? Q? R? ]*? ? V? W? @ W*? J ? ^ ? _???? ? b ? ? ? + ? 2 ? ; ? D ? M ? X ? ` ? o ? u ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?" ?4 ?7 ? ? f
u d/0 ? D12 D ?34 M ?54 X ?6 ` ?7 ? 8 ? ? 8 +
89 2:; ( D ?3<