File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
gamsaml20/src/main/java/com/genexus/saml20/utils/xml Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change 44
55import java .text .MessageFormat ;
66
7- public class Attribute extends XmlTypes {
7+ public class Attribute extends XmlTypes {
88
99 Element element ;
1010 private final String tag ;
1111
12- public Attribute (String namespace , String element , String tag )
13- {
12+ public Attribute (String namespace , String element , String tag ) {
1413 this .element = new Element (namespace , element );
1514 this .tag = tag ;
1615 }
1716
18- public String getTag ()
19- {
17+ public String getTag () {
2018 return tag ;
2119 }
2220
23- public String findValue (Document doc )
24- {
21+ public String findValue (Document doc ) {
2522 return element .getElement (doc ).getAttributes ().getNamedItem (tag ).getNodeValue ();
2623 }
2724
28- public String printJson (Document xmlDoc )
29- {
25+ public String printJson (Document xmlDoc ) {
3026 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 );
3228 }
3329}
You can’t perform that action at this time.
0 commit comments