1 package com.android.hotspot2.osu.commands; 2 3 import android.net.wifi.PasspointManagementObjectDefinition; 4 5 import com.android.hotspot2.omadm.MOTree; 6 import com.android.hotspot2.omadm.OMAConstants; 7 import com.android.hotspot2.omadm.OMAParser; 8 import com.android.hotspot2.omadm.XMLNode; 9 10 import org.xml.sax.SAXException; 11 12 import java.io.IOException; 13 14 public class MOData implements OSUCommandData { 15 private final String mBaseURI; 16 private final String mURN; 17 private final MOTree mMOTree; 18 19 public MOData(XMLNode root) { 20 mBaseURI = root.getAttributeValue("spp:managementTreeURI"); 21 mURN = root.getAttributeValue("spp:moURN"); 22 mMOTree = root.getMOTree(); 23 } 24 25 public String getBaseURI() { 26 return mBaseURI; 27 } 28 29 public String getURN() { 30 return mURN; 31 } 32 33 public MOTree getMOTree() { 34 return mMOTree; 35 } 36 37 @Override 38 public String toString() { 39 return "Base URI: " + mBaseURI + ", MO: " + mMOTree; 40 } 41 } 42