public void setConfiguration(ClientConfiguration updatedConfiguration) { configuration = updatedConfiguration; }
/// <exception cref="XMLException"></exception> private ClientConfiguration readClientConfiguration(XmlReader xmlReader) { ClientConfiguration configuration = new ClientConfiguration(); bool finished = false; while(!finished && xmlReader.MoveToNextAttribute()) { //int Event = xmlReader.next(); string name = XmlUtils.getElementQualifiedName(xmlReader, namespaces); switch(xmlReader.NodeType) { case XmlNodeType.Element: if("config:appsensor-client-config".Equals(name)) { // } else if("config:server-connection".Equals(name)) { configuration.setServerConnection(readServerConnection(xmlReader)); } else { /** unexpected start element **/ } break; case XmlNodeType.EndElement: if("config:appsensor-client-config".Equals(name)) { finished = true; } else { /** unexpected end element **/ } break; default: /** unused xml element - nothing to do **/ break; } } return configuration; }