com.groupbyinc.flux.common.apache.lucene.queryparser.xml.DOMUtils.class Maven / Gradle / Ivy
???? 4 ? Acom/groupbyinc/flux/common/apache/lucene/queryparser/xml/DOMUtils java/lang/Object
DOMUtils.java ()V
this CLcom/groupbyinc/flux/common/apache/lucene/queryparser/xml/DOMUtils; getChildByTagOrFail l(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;)Lcom/groupbyinc/flux/common/w3c/dom/Element; Hcom/groupbyinc/flux/common/apache/lucene/queryparser/xml/ParserException getChildByTagName
java/lang/StringBuilder
*com/groupbyinc/flux/common/w3c/dom/Element
getTagName ()Ljava/lang/String; append -(Ljava/lang/String;)Ljava/lang/StringBuilder;
missing " " child element " toString $
% (Ljava/lang/String;)V '
( e ,Lcom/groupbyinc/flux/common/w3c/dom/Element; name Ljava/lang/String; kid getFirstChildOrFail Z(Lcom/groupbyinc/flux/common/w3c/dom/Element;)Lcom/groupbyinc/flux/common/w3c/dom/Element; getFirstChildElement 1 0
2 ! does not contain a child element 4 getAttributeOrFail R(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;)Ljava/lang/String; getAttribute &(Ljava/lang/String;)Ljava/lang/String; 8 9 : " attribute < java/lang/String > v !getAttributeWithInheritanceOrFail getAttributeWithInheritance B 7
C getNonBlankTextOrFail @(Lcom/groupbyinc/flux/common/w3c/dom/Element;)Ljava/lang/String; getText =(Lcom/groupbyinc/flux/common/w3c/dom/Node;)Ljava/lang/String; G H
I trim K
? L length ()I N O
? P has no text R
getFirstChild +()Lcom/groupbyinc/flux/common/w3c/dom/Node; T U V 'com/groupbyinc/flux/common/w3c/dom/Node X getNodeType ()S Z [ Y \ getNodeName ^ Y _ equals (Ljava/lang/Object;)Z a b
? c getNextSibling e U Y f )Lcom/groupbyinc/flux/common/w3c/dom/Node; i
getParentNode k U l parent n element
attributeName result getChildTextByTagName tagName child insertChild ~(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/w3c/dom/Element; getOwnerDocument /()Lcom/groupbyinc/flux/common/w3c/dom/Document; x y z +com/groupbyinc/flux/common/w3c/dom/Document |
createElement @(Ljava/lang/String;)Lcom/groupbyinc/flux/common/w3c/dom/Element; ~ } ? appendChild T(Lcom/groupbyinc/flux/common/w3c/dom/Node;)Lcom/groupbyinc/flux/common/w3c/dom/Node; ? ? ? createTextNode =(Ljava/lang/String;)Lcom/groupbyinc/flux/common/w3c/dom/Text; ? ? } ? text d(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; deflt B(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;F)F java/lang/Float ?
parseFloat (Ljava/lang/String;)F ? ?
? ? F B(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;I)I java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ?
? ? I B(Lcom/groupbyinc/flux/common/w3c/dom/Element;Ljava/lang/String;Z)Z java/lang/Boolean ? valueOf '(Ljava/lang/String;)Ljava/lang/Boolean; ? ?
? ? booleanValue ()Z ? ?
? ? Z
getTextBuffer E(Lcom/groupbyinc/flux/common/w3c/dom/Node;Ljava/lang/StringBuilder;)V ? ?
? sb Ljava/lang/StringBuilder; Y V getNodeValue ? Y ? loadXML ?(Ljava/io/Reader;)Lcom/groupbyinc/flux/common/w3c/dom/Document; java/lang/Exception ? (javax/xml/parsers/DocumentBuilderFactory ? newInstance ,()Ljavax/xml/parsers/DocumentBuilderFactory; ? ?
? ? newDocumentBuilder %()Ljavax/xml/parsers/DocumentBuilder; ? ?
? ? java/io/Reader ? !javax/xml/parsers/DocumentBuilder ? java/lang/RuntimeException ? Parser configuration error ? *(Ljava/lang/String;Ljava/lang/Throwable;)V ?
? ? .com/groupbyinc/flux/common/xml/sax/InputSource ? (Ljava/io/Reader;)V ?
? ? parse _(Lcom/groupbyinc/flux/common/xml/sax/InputSource;)Lcom/groupbyinc/flux/common/w3c/dom/Document; ? ?
? ? Error parsing file: ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
? se Ljava/lang/Exception; is Ljava/io/Reader; dbf *Ljavax/xml/parsers/DocumentBuilderFactory; db #Ljavax/xml/parsers/DocumentBuilder; doc -Lcom/groupbyinc/flux/common/w3c/dom/Document; Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile ! ? / *? ? ?
?
? ? 6*+? M,? ,? Y? Y? *? ? !? +? #? ? &? )?,? ? 6 * + 6 , - 0 . + ? ! " # 4 &