io.atlasmap.xml.inspect.XmlSchemaInspector.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4F 0
/ 0
0
!"
b#
$
%&'
()*
+ 0, 0-.
/0
12
34
5
6
78
79
:;
:<
:=
>?@AB
CD 9E
bF
GH
GIJKLMNOP
bQ RSJTU 6V 6WX
0Y
0Z
[\ R]^
0_
b`x
a?b
c
0d
0efgh?ijk Ml 9miViWn Mo ME Mp 9qfmr
Xs
Ztu
\v
wx
Xyz{|}
b$z~????
?
??p
?????????? q? q??????z?
(??
{
(??
~
~?
~?
{?????????
??
0? ????
0?
???
??
??
??
?? ??
??
(?
???
0???
%?
??
????
0?
0?????
0???????
0?????
0???
0???
0???
?????
??
??
???? ??
???? ??
?? ???? 0????p???
??
0?????? ???? ????????p
0?
??????????
?? ???
?
???
?
??
0?
???
?
?? 0 ??
p
0
?
?
b?
?
?
?
?
/?
? ?? ? !"# ?$% ?&' ?() ?*+ ?,- ?./ ?01 ?23 ?45 ?67 ?89 ?:;<=>?@ABC InnerClasses XSOMErrorHandler AtlasXmlNamespaceContext LOG Lorg/slf4j/Logger; XS_TYPE_TO_FIELD_TYPE_MAP Ljava/util/Map; Signature =Ljava/util/Map; BLACKLISTED_TYPES NS_PREFIX_XMLSCHEMA Ljava/lang/String;
ConstantValue NS_PREFIX_SCHEMASET xmlDocument Lio/atlasmap/xml/v2/XmlDocument; namespaceContext ELio/atlasmap/xml/inspect/XmlSchemaInspector$AtlasXmlNamespaceContext;
rootNamespace ()V Code LineNumberTable LocalVariableTable this ,Lio/atlasmap/xml/inspect/XmlSchemaInspector; 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 Lorg/w3c/dom/Element; i I xpath Ljavax/xml/xpath/XPath;
subSchemas Lorg/w3c/dom/NodeList;
rootSchema is Ljava/io/InputStream; fields Lio/atlasmap/v2/Fields; parser $Lcom/sun/xml/xsom/parser/XSOMParser; transformer !Ljavax/xml/transform/Transformer; dbf *Ljavax/xml/parsers/DocumentBuilderFactory; doc Lorg/w3c/dom/Document; root schemaSet Lcom/sun/xml/xsom/XSSchemaSet;ND'.EFGXHU getTargetNamespace &(Lorg/w3c/dom/Node;)Ljava/lang/String; n Lorg/w3c/dom/Node;
attributes Lorg/w3c/dom/NamedNodeMap; tns Lorg/w3c/dom/Attr;Ik} inheritNamespaces (Lorg/w3c/dom/Element;Z)V attr element
updateContext Z targetJ
toInputStream S(Ljavax/xml/transform/Transformer;Lorg/w3c/dom/Node;)Ljava/io/ByteArrayInputStream; baos Ljava/io/ByteArrayOutputStream; output [Br? 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 Ljava/util/Map$Entry; LocalVariableTypeTable ;Ljava/util/Map$Entry;K? printSchemaSet !(Lcom/sun/xml/xsom/XSSchemaSet;)V rootComplexType #Lio/atlasmap/xml/v2/XmlComplexType; xmlField Lio/atlasmap/xml/v2/XmlField; cachedComplexType Ljava/util/Set; Lcom/sun/xml/xsom/XSElementDecl; rootName schema Lcom/sun/xml/xsom/XSSchema; jtr Ljava/util/Iterator; #Ljava/util/Set; 6Ljava/util/Iterator;LM? printComplexType g(Lcom/sun/xml/xsom/XSComplexType;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V complexType Lcom/sun/xml/xsom/XSComplexType; xmlComplexType particle Lcom/sun/xml/xsom/XSParticle;N {(Lcom/sun/xml/xsom/XSComplexType;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V
printParticle d(Lcom/sun/xml/xsom/XSParticle;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V group Lcom/sun/xml/xsom/XSModelGroup; collectionType Lio/atlasmap/v2/CollectionType; term Lcom/sun/xml/xsom/XSTerm;O x(Lcom/sun/xml/xsom/XSParticle;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V
printGroup f(Lcom/sun/xml/xsom/XSModelGroup;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V cachedTypeCopy
modelGroupP z(Lcom/sun/xml/xsom/XSModelGroup;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Ljava/util/Set;)V printGroupDecl j(Lcom/sun/xml/xsom/XSModelGroupDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;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;)V printElement ?(Lcom/sun/xml/xsom/XSElementDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Lio/atlasmap/v2/CollectionType;Ljava/util/Set;)V typeName typeRestriction *Lcom/sun/xml/xsom/XSRestrictionSimpleType;QRS ?(Lcom/sun/xml/xsom/XSElementDecl;Ljava/lang/String;Lio/atlasmap/xml/v2/XmlComplexType;Lio/atlasmap/v2/CollectionType;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;>;T?U?VW 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;X?YM typeRestrictionExists (Ljava/lang/String;)Z restrictionType $Lio/atlasmap/xml/v2/RestrictionType;Z
access$100 ()Lorg/slf4j/Logger;
SourceFile XmlSchemaInspector.java+,;<67 java/io/FileInputStream;EOP java/lang/Exception .io/atlasmap/xml/inspect/XmlInspectionException;[ java/io/ByteArrayInputStream UTF-8\];^_`C io/atlasmap/v2/Fieldsabc Cio/atlasmap/xml/inspect/XmlSchemaInspector$AtlasXmlNamespaceContext;d89:3 "com/sun/xml/xsom/parser/XSOMParserefg;h 0com/sun/xml/xsom/util/DomAnnotationParserFactoryij ;io/atlasmap/xml/inspect/XmlSchemaInspector$XSOMErrorHandler;klmnfopqFfrstuvwxyGz{ XML schema document is empty;M SchemaSet|}~?f???H?? ,/%s:SchemaSet/%s:AdditionalSchemas/%s:schema java/lang/Object *io/atlasmap/xml/inspect/XmlSchemaInspector ss xs??????? org/w3c/dom/NodeList???? org/w3c/dom/Element}~??xP /%s:SchemaSet/%s:schema?? HThe root schema '/SchemaSet/schema' must be specified once and only oncers???? OUnsupported document element '%s': root element must be 'schema' or 'SchemaSet'?????<J?? I?? org/w3c/dom/Attr?}?? xmlns?}?}?? java/io/ByteArrayOutputStream !javax/xml/transform/dom/DOMSource;? 'javax/xml/transform/stream/StreamResult;?E??????? >>> {} java/lang/String???r}??L???? %s:%s?????M??K???? java/util/Map$Entry???? 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?M?M???? Schema set is null????? java/util/HashSet com/sun/xml/xsom/XSElementDecl?????????Q?M java/lang/StringBuilder /???}?M????????????????R??????W???????N??O???????????????????????;???? Element: {}/{}??????????? V-.S?
io/atlasmap/v2/FieldType??T com/sun/xml/xsom/XSAttributeUse
U3 /@??????M? -io/atlasmap/xml/inspect/SimpleTypeRestriction io/atlasmap/xml/v2/Restrictions??? io/atlasmap/xml/v2/XmlFields1.? !"?#$?%?&'(Y)t io/atlasmap/xml/v2/RestrictionM*+,-./01? java/lang/IllegalAccessException2}345 java/util/HashMap int6?78 integer9? negativeInteger nonNegativeInteger positiveInteger nonPositiveInteger string:? short;? long<? double=? float>? boolean?? date@? dateTimeA? decimalB? unsignedLongC? unsignedIntD?
unsignedShortE? NMTOKEN anyURI base64Binary byte unsignedByte hexBinary NOTATION QName ,io/atlasmap/xml/inspect/XmlSchemaInspector$1 java/io/InputStream javax/xml/transform/Transformer (javax/xml/parsers/DocumentBuilderFactory org/w3c/dom/Document javax/xml/xpath/XPath org/w3c/dom/NamedNodeMap org/w3c/dom/Node java/util/Iterator com/sun/xml/xsom/XSSchema
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/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 /(Lio/atlasmap/xml/inspect/XmlSchemaInspector;)V "javax/xml/parsers/SAXParserFactory newInstance &()Ljavax/xml/parsers/SAXParserFactory; '(Ljavax/xml/parsers/SAXParserFactory;)V setAnnotationParser 4(Lcom/sun/xml/xsom/parser/AnnotationParserFactory;)V ](Lio/atlasmap/xml/inspect/XmlSchemaInspector;Lio/atlasmap/xml/inspect/XmlSchemaInspector$1;)V setErrorHandler (Lorg/xml/sax/ErrorHandler;)V &javax/xml/transform/TransformerFactory *()Ljavax/xml/transform/TransformerFactory; newTransformer #()Ljavax/xml/transform/Transformer; ,()Ljavax/xml/parsers/DocumentBuilderFactory; setNamespaceAware (Z)V newDocumentBuilder %()Ljavax/xml/parsers/DocumentBuilder; !javax/xml/parsers/DocumentBuilder parse -(Ljava/io/InputStream;)Lorg/w3c/dom/Document; getDocumentElement ()Lorg/w3c/dom/Element; getLocalName ()Ljava/lang/String; equals (Ljava/lang/Object;)Z javax/xml/xpath/XPathFactory ()Ljavax/xml/xpath/XPathFactory; newXPath ()Ljavax/xml/xpath/XPath; setNamespaceContext )(Ljavax/xml/namespace/NamespaceContext;)V format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; javax/xml/xpath/XPathConstants NODESET Ljavax/xml/namespace/QName; evaluate S(Ljava/lang/String;Ljava/lang/Object;Ljavax/xml/namespace/QName;)Ljava/lang/Object; getLength ()I item (I)Lorg/w3c/dom/Node; NODE isEmpty ()Z add '(Ljava/lang/String;Ljava/lang/String;)V getResult ()Lcom/sun/xml/xsom/XSSchemaSet;
getAttributes ()Lorg/w3c/dom/NamedNodeMap; getNamedItem &(Ljava/lang/String;)Lorg/w3c/dom/Node; getValue
getParentNode ()Lorg/w3c/dom/Node; getPrefix getName setAttribute (Lorg/w3c/dom/Node;)V (Ljava/io/OutputStream;)V transform ;(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)V toByteArray ()[B org/slf4j/Logger isTraceEnabled trace '(Ljava/lang/String;Ljava/lang/Object;)V com/sun/xml/xsom/XSDeclaration getOwnerSchema ()Lcom/sun/xml/xsom/XSSchema; &(Ljava/lang/String;)Ljava/lang/String; addWithIndex getNamespaceMap ()Ljava/util/Map;
java/util/Map entrySet ()Ljava/util/Set; iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; getKey 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 com/sun/xml/xsom/XSSchemaSet 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; (Ljava/util/Collection;)V !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 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; com/sun/xml/xsom/XmlString ()Lio/atlasmap/v2/FieldType; getRoot
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 io/atlasmap/v2/CollectionType LIST ARRAY java/lang/Class getDeclaredFields ()[Ljava/lang/reflect/Field;
setAccessible "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 ! 0 / +, -. / 0 1. / 0 23 4 2 53 4 1 67 89 :3 ;<