All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.optaplanner.benchmark.impl.xsd.XsdAggregator.class Maven / Gradle / Ivy

????7?7org/optaplanner/benchmark/config/PlannerBenchmarkConfig
java/lang/Object()V
?The XSD Aggregator expects 3 arguments:
1) a path to the solver XSD file. 
2) a path to the benchmark XSD file. 
3) a path to an output file where the merged benchmark XSD should be saved to."java/lang/IllegalArgumentException
(Ljava/lang/String;)Vjava/io/File

0org/optaplanner/benchmark/impl/xsd/XsdAggregatorcheckFileExists(Ljava/io/File;)Ljava/io/File;

getParentFile()Ljava/io/File;
 exists()Z
"# mkdirs

&'(mergeXmlSchemas-(Ljava/io/File;Ljava/io/File;Ljava/io/File;)V
*+,-.java/util/ObjectsrequireNonNull&(Ljava/lang/Object;)Ljava/lang/Object;0The file (%s) does not exist.
234getAbsolutePath()Ljava/lang/String;
6789:java/lang/Stringformat9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
<=>?@(javax/xml/parsers/DocumentBuilderFactorynewInstance,()Ljavax/xml/parsers/DocumentBuilderFactory;
BCDparseXmlP(Ljava/io/File;Ljavax/xml/parsers/DocumentBuilderFactory;)Lorg/w3c/dom/Document;FGHIJorg/w3c/dom/DocumentgetDocumentElement()Lorg/w3c/dom/Element;
LMNremoveReferencesToSolverConfig'(Lorg/w3c/dom/Document;Ljava/io/File;)V
PQRcopySolverConfigTypes.(Lorg/w3c/dom/Document;Lorg/w3c/dom/Element;)V
TUVcreateTransformer#()Ljavax/xml/transform/Transformer;X!javax/xml/transform/dom/DOMSource
WZ[(Lorg/w3c/dom/Node;)V]'javax/xml/transform/stream/StreamResult
\_`(Ljava/io/File;)V
bcdefjavax/xml/transform/Transformer	transform;(Ljavax/xml/transform/Source;Ljavax/xml/transform/Result;)Vh(javax/xml/transform/TransformerExceptionjklmakeConcatWithConstants&(Ljava/lang/String;)Ljava/lang/String;
no*(Ljava/lang/String;Ljava/lang/Throwable;)V
<qrsnewDocumentBuilder%()Ljavax/xml/parsers/DocumentBuilder;u.javax/xml/parsers/ParserConfigurationExceptionw!javax/xml/parsers/DocumentBuilder
yz{|4java/lang/ClassgetNamej
v??parse&(Ljava/io/File;)Lorg/w3c/dom/Document;?org/xml/sax/SAXExceptionj?java/io/IOExceptionj?*F???getElementsByTagName*(Ljava/lang/String;)Lorg/w3c/dom/NodeList;?????org/w3c/dom/NodeList	getLength()I????item(I)Lorg/w3c/dom/Node;?org/w3c/dom/Element?	xs:schema????4org/w3c/dom/NodegetNodeName
6???equals(Ljava/lang/Object;)Z?xmlns:solver???removeAttribute
???isXsElement(Lorg/w3c/dom/Node;)Z?ref?/org/optaplanner/core/config/solver/SolverConfig?
solver:solver
???hasAttribute9(Lorg/w3c/dom/Node;Ljava/lang/String;Ljava/lang/String;)Z?name?solver????setAttribute'(Ljava/lang/String;Ljava/lang/String;)V?type?tns:solverConfig?	xs:import????
getParentNode()Lorg/w3c/dom/Node;????removeChild&(Lorg/w3c/dom/Node;)Lorg/w3c/dom/Node;???test ()Ljava/util/function/Predicate;???apply$()Ljava/util/function/UnaryOperator;
???updateNodeAttributesU(Lorg/w3c/dom/Node;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)V?UAn expected reference to the solver element was not found. Check the content of (%s).?java/lang/AssertionError
???(Ljava/lang/Object;)V?PAn expected namespace (%s) declaration was not found. Check the content of (%s).?&https://www.optaplanner.org/xsd/solver?DAn expected import element was not found. Check the content of (%s).????
getChildNodes()Lorg/w3c/dom/NodeList;F???
importNode'(Lorg/w3c/dom/Node;Z)Lorg/w3c/dom/Node;????appendChild?
xs:element????getAttributeNode&(Ljava/lang/String;)Lorg/w3c/dom/Attr;????4org/w3c/dom/AttrgetValue???
getAttributes()Lorg/w3c/dom/NamedNodeMap;?org/w3c/dom/NamedNodeMap???java/util/function/Predicate
?. java/util/function/UnaryOperator?setValue
?&javax/xml/transform/TransformerFactory*()Ljavax/xml/transform/TransformerFactory;javax/xml/XMLConstants8http://javax.xml.XMLConstants/property/accessExternalDTD
?'(Ljava/lang/String;Ljava/lang/Object;)V?http://javax.xml.XMLConstants/property/accessExternalStylesheet
!"VnewTransformer$5javax/xml/transform/TransformerConfigurationExceptionj'javax/xml/transform/OutputKeys)indent+yes
b-.?setOutputProperty0
standalone2encoding4utf-86){http://xml.apache.org/xslt}indent-amount82:solver:<tns:
6>?@replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
6BCD
startsWith(Ljava/lang/String;)Z
TNS_PREFIXLjava/lang/String;
ConstantValueItnsCodeLineNumberTableLocalVariableTablethis2Lorg/optaplanner/benchmark/impl/xsd/XsdAggregator;main([Ljava/lang/String;)Vmsgargs[Ljava/lang/String;	solverXsdLjava/io/File;benchmarkXsd	outputXsd
StackMapTablefilee*Ljavax/xml/transform/TransformerException;solverSchemaFilebenchmarkSchemaFileoutputSchemaFilefactory*Ljavax/xml/parsers/DocumentBuilderFactory;solverSchemaLorg/w3c/dom/Document;solverRootElementLorg/w3c/dom/Element;benchmarkSchematransformer!Ljavax/xml/transform/Transformer;source#Ljavax/xml/transform/dom/DOMSource;resultLjavax/xml/transform/Result;mjavax/xml/transform/Resultbuilder#Ljavax/xml/parsers/DocumentBuilder;0Ljavax/xml/parsers/ParserConfigurationException;saxExceptionLorg/xml/sax/SAXException;ioExceptionLjava/io/IOException;xmlFiledocumentBuilderFactorynodeLorg/w3c/dom/Node;elementiIsolverNamespaceRemovedZsolverElementRefRemoved
importRemovednodeListLorg/w3c/dom/NodeList;isSolverElementDeclarationsolverSchemaRootbenchmarkSchemaRootsolverChildNodes
attributeNameattributeValue	attributeLorg/w3c/dom/Attr;attributePredicateLjava/util/function/Predicate;
valueFunction"Ljava/util/function/UnaryOperator;LocalVariableTypeTable2Ljava/util/function/Predicate;6Ljava/util/function/UnaryOperator;	Signature}(Lorg/w3c/dom/Node;Ljava/util/function/Predicate;Ljava/util/function/UnaryOperator;)V7Ljavax/xml/transform/TransformerConfigurationException;transformerFactory(Ljavax/xml/transform/TransformerFactory;'lambda$removeReferencesToSolverConfig$1oldValue'lambda$removeReferencesToSolverConfig$0(Lorg/w3c/dom/Attr;)Zattr
SourceFileXsdAggregator.javaBootstrapMethods?
???k?$java/lang/invoke/StringConcatFactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite;?0Failed to write the resulting XSD to a file ().?Failed to create a instance.? Failed to parse an XML file ().?Failed to open an XML file ().?
?????"java/lang/invoke/LambdaMetafactorymetafactory?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;??
????.?
??ll?Failed to create a .InnerClasses?%java/lang/invoke/MethodHandles$Lookup?java/lang/invoke/MethodHandlesLookup1EFGH
J/*??K)LMN	OPJ?Y*??	L?Y+?
??Y*2??L?Y*2??M?Y*2?N-???-??!W?Y?$+,-?%?K*
./	35 6.799C:K=X>L4		QFYRS 9TU.+VU9 WUX?8
Je&*?)W*???Y/?Y*?1S?5?
?*?KABC$EL&YUX$'(Jxl?;:*+?A:?E:*,?A:*,?K*?O*?S:?WY?Y:	?\Y-?^:
	
?a?:?Y-?1?i?m??JSVgK>IJKL N'P/R5S@TJVSZVWXX]Yk[LzXZ[lMNl\Ul]Ul^Ug_`^abUcd Leb57fg@,hi	J"jk
X.?V<F?FbWlgCDJN,?pN?:?Yv?x?}?m?-+?~?:?Y+?1???m?:?Y+?1???m?t#$?#9?K&	`ca
bf$g&h9j;kLRno
Zp&qr;stNMNNuUNv`0noXHt?vE?T?MNJa
>66+???:6??????:??:	??????	???>*???2*?????%	???	????	?¹?6??????????W6*?????ք??\???Y,S?5:??Y?޿?!??Y?SY,S?5:??Y?޿???Y,S?5:??Y?޿?Kzpqrtu!v,w3yBzK{Mc?l?w????????????u?????????????????L?
,?wx3?yd	?z{?
QF?
QF
QFMNeb]U|}~}}	??X*?F??7??7 ?!QRJb+?EN,??:6???F??:*???*??????6?-+????W?????K*
????)?,?F?K?[?a?LR)2wxF?}Oz{bMNbebb?d[?dS??X????0?@????J@?+?????K?LMNwx??J?4+?)W,?)W-?)W+??,??:?-???????K??
???L44MN4wx4?F4?F??X
?2?@??J]+?)W,?)W-?)W6+????=+?????:,??-???	?6?
?????K&	??
??"?4???V?\?L>4"??Jz{]MN]wx]??]???]??]??X??C???UVJ^?L+?+?+? M?N?Yb?x?%-?m?,(*?,,/*?,,13?,,57?,,? #K2????? ?!?4?>?H?R?\?L4fg!Z?^MNZ??4*fgX? #?b
?lJ5*9;?=?K?L?F
??JS*???*??9?A???K?L??X@???4???????????????????
???




© 2015 - 2025 Weber Informatics LLC | Privacy Policy