@Override public void characters(char ch[], int start, int length) { if (inConnections) networkConnectionHandler.characters(ch, start, length); else currentText.append(ch, start, length); }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnectionIndex")) { this.networkConnectionIndex = Integer.parseInt(currentOrNull()); } else if (qName.endsWith("IpAddress")) { this.ipAddress = currentOrNull(); } else if (qName.endsWith("ExternalIpAddress")) { this.externalIpAddress = currentOrNull(); } else if (qName.endsWith("IsConnected")) { this.connected = Boolean.parseBoolean(currentOrNull()); } else if (qName.endsWith("MACAddress")) { this.MACAddress = currentOrNull(); } else if (qName.endsWith("IpAddressAllocationMode")) { this.ipAddressAllocationMode = IpAddressAllocationMode.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnection")) { inConnections = false; connections.add(networkConnectionHandler.getResult()); } if (inConnections) { networkConnectionHandler.endElement(uri, localName, qName); } else if (qName.endsWith("Info")) { this.info = currentOrNull(); } else if (qName.endsWith("PrimaryNetworkConnectionIndex")) { this.primaryNetworkConnectionIndex = Integer.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (qName.endsWith("NetworkConnection")) { inConnections = true; } if (inConnections) { networkConnectionHandler.startElement(uri, localName, qName, attrs); } else if (qName.endsWith("NetworkConnectionSection")) { section = newReferenceType(attributes); } else if (qName.endsWith("Link") && "edit".equals(attributes.get("rel"))) { edit = newReferenceType(attributes); } }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnection")) { inConnections = false; connections.add(networkConnectionHandler.getResult()); } if (inConnections) { networkConnectionHandler.endElement(uri, localName, qName); } else if (qName.endsWith("Info")) { this.info = currentOrNull(); } else if (qName.endsWith("PrimaryNetworkConnectionIndex")) { this.primaryNetworkConnectionIndex = Integer.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = cleanseAttributes(attrs); if (qName.endsWith("NetworkConnection")) { inConnections = true; } if (inConnections) { networkConnectionHandler.startElement(uri, localName, qName, attrs); } else if (qName.endsWith("NetworkConnectionSection")) { section = newReferenceType(attributes); } else if (qName.endsWith("Link") && "edit".equals(attributes.get("rel"))) { edit = newReferenceType(attributes); } }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnection")) { inConnections = false; connections.add(networkConnectionHandler.getResult()); } if (inConnections) { networkConnectionHandler.endElement(uri, localName, qName); } else if (qName.endsWith("Info")) { this.info = currentOrNull(); } else if (qName.endsWith("PrimaryNetworkConnectionIndex")) { this.primaryNetworkConnectionIndex = new Integer(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void characters(char ch[], int start, int length) { if (inConnections) networkConnectionHandler.characters(ch, start, length); else currentText.append(ch, start, length); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (qName.endsWith("NetworkConnection")) { inConnections = true; } if (inConnections) { networkConnectionHandler.startElement(uri, localName, qName, attrs); } else if (qName.endsWith("NetworkConnectionSection")) { section = newReferenceType(attributes); } else if (qName.endsWith("Link") && "edit".equals(attributes.get("rel"))) { edit = newReferenceType(attributes); } }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnectionIndex")) { this.networkConnectionIndex = Integer.parseInt(currentOrNull()); } else if (qName.endsWith("IpAddress")) { this.ipAddress = currentOrNull(); } else if (qName.endsWith("ExternalIpAddress")) { this.externalIpAddress = currentOrNull(); } else if (qName.endsWith("IsConnected")) { this.connected = Boolean.parseBoolean(currentOrNull()); } else if (qName.endsWith("MACAddress")) { this.MACAddress = currentOrNull(); } else if (qName.endsWith("IpAddressAllocationMode")) { this.ipAddressAllocationMode = IpAddressAllocationMode.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnection")) { inConnections = false; connections.add(networkConnectionHandler.getResult()); } if (inConnections) { networkConnectionHandler.endElement(uri, localName, qName); } else if (qName.endsWith("Info")) { this.info = currentOrNull(); } else if (qName.endsWith("PrimaryNetworkConnectionIndex")) { this.primaryNetworkConnectionIndex = Integer.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void characters(char ch[], int start, int length) { if (inConnections) networkConnectionHandler.characters(ch, start, length); else currentText.append(ch, start, length); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (qName.endsWith("NetworkConnection")) { inConnections = true; } if (inConnections) { networkConnectionHandler.startElement(uri, localName, qName, attrs); } else if (qName.endsWith("NetworkConnectionSection")) { section = newReferenceType(attributes); } else if (qName.endsWith("Link") && "edit".equals(attributes.get("rel"))) { edit = newReferenceType(attributes); } }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnectionIndex")) { this.networkConnectionIndex = Integer.parseInt(currentOrNull()); } else if (qName.endsWith("IpAddress")) { this.ipAddress = currentOrNull(); } else if (qName.endsWith("ExternalIpAddress")) { this.externalIpAddress = currentOrNull(); } else if (qName.endsWith("IsConnected")) { this.connected = Boolean.parseBoolean(currentOrNull()); } else if (qName.endsWith("MACAddress")) { this.MACAddress = currentOrNull(); } else if (qName.endsWith("IpAddressAllocationMode")) { this.ipAddressAllocationMode = IpAddressAllocationMode.valueOf(currentOrNull()); } currentText = new StringBuilder(); }
@Override public void characters(char ch[], int start, int length) { if (inConnections) networkConnectionHandler.characters(ch, start, length); else currentText.append(ch, start, length); }
@Override public void endElement(String uri, String localName, String qName) { if (qName.endsWith("NetworkConnectionIndex")) { this.networkConnectionIndex = Integer.parseInt(currentOrNull()); } else if (qName.endsWith("IpAddress")) { this.ipAddress = currentOrNull(); } else if (qName.endsWith("ExternalIpAddress")) { this.externalIpAddress = currentOrNull(); } else if (qName.endsWith("IsConnected")) { this.connected = Boolean.parseBoolean(currentOrNull()); } else if (qName.endsWith("MACAddress")) { this.MACAddress = currentOrNull(); } else if (qName.endsWith("IpAddressAllocationMode")) { this.ipAddressAllocationMode = IpAddressAllocationMode.valueOf(currentOrNull()); } currentText = new StringBuilder(); }