File tree 1 file changed +6
-10
lines changed
gamsaml20/src/main/java/com/genexus/saml20/utils/xml
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import java .text .MessageFormat ;
6
6
7
- public class Attribute extends XmlTypes {
7
+ public class Attribute extends XmlTypes {
8
8
9
9
Element element ;
10
10
private final String tag ;
11
11
12
- public Attribute (String namespace , String element , String tag )
13
- {
12
+ public Attribute (String namespace , String element , String tag ) {
14
13
this .element = new Element (namespace , element );
15
14
this .tag = tag ;
16
15
}
17
16
18
- public String getTag ()
19
- {
17
+ public String getTag () {
20
18
return tag ;
21
19
}
22
20
23
- public String findValue (Document doc )
24
- {
21
+ public String findValue (Document doc ) {
25
22
return element .getElement (doc ).getAttributes ().getNamedItem (tag ).getNodeValue ();
26
23
}
27
24
28
- public String printJson (Document xmlDoc )
29
- {
25
+ public String printJson (Document xmlDoc ) {
30
26
String value = findValue (xmlDoc );
31
- return value == null ? null : MessageFormat .format ( "\" {0}\" : \" {1}\" " , tag , value );
27
+ return value == null ? null : MessageFormat .format ("\" {0}\" : \" {1}\" " , tag , value );
32
28
}
33
29
}
You can’t perform that action at this time.
0 commit comments