Refine search
@Override public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, "errorCode")) { code = Integer.parseInt(currentOrNull(currentText)); } else if (equalsOrSuffix(qName, "errorDescription")) { description = currentOrNull(currentText); } currentText = new StringBuilder(); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (SaxUtils.equalsOrSuffix(qName, "Error")) { error = Utils.newError(attributes); } } }
@Override public void endElement(String uri, String name, String qName) { if (qName.equals("Id")) { id = currentOrNull(currentText).replace("/change/", ""); } else if (qName.equals("Status")) { status = Status.fromValue(currentOrNull(currentText)); } else if (qName.equals("SubmittedAt")) { submittedAt = dateService.iso8601DateParse(currentOrNull(currentText)); } currentText = new StringBuilder(); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { depth++; if (equalsOrSuffix(qName, "InternetService")) { thisDepth = depth; } else if (equalsOrSuffix(qName, "PublicIpAddress")) { inPublicIpAddress = true; } }
/** * {@inheritDoc} */ @Override public void endElement(String uri, String name, String qName) throws SAXException { if (qName.equals("Name")) { this.name = SaxUtils.currentOrNull(currentText); } else if (qName.equals("Value")) { value = SaxUtils.currentOrNull(currentText); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (qName.equals("ETag")) { this.currentETag = currentOrNull(currentText); } else if (qName.equals("LastModified")) { this.currentLastModified = dateParser .iso8601DateOrSecondsDateParse(currentOrNull(currentText)); } else if (qName.equals("CopyObjectResult")) { metadata = new CopyObjectResult(currentLastModified, currentETag); } currentText.setLength(0); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = cleanseAttributes(attrs); if (attribute == null && attributes.containsKey(attributeName)) { attribute = attributes.get(attributeName); } } }
@Override public void endElement(String uri, String name, String qName) { if (qName.equals("Id")) { id = currentOrNull(currentText).replace("/change/", ""); } else if (qName.equals("Status")) { status = Status.fromValue(currentOrNull(currentText)); } else if (qName.equals("SubmittedAt")) { submittedAt = dateService.iso8601DateParse(currentOrNull(currentText)); } currentText = new StringBuilder(); }
public void startElement(String uri, String name, String qName, Attributes attrs) { if (equalsOrSuffix(qName, "item")) { itemDepth++; } else if (equalsOrSuffix(qName, "instancesSet")) { inInstancesSet = true; } else if (equalsOrSuffix(qName, "productCodes")) { inProductCodes = true; } else if (equalsOrSuffix(qName, "groupSet")) { inGroupSet = true; } }
/** * {@inheritDoc} */ @Override public void endElement(String uri, String name, String qName) throws SAXException { if (qName.equals("Name")) { this.name = SaxUtils.currentOrNull(currentText); } else if (qName.equals("Value")) { value = SaxUtils.currentOrNull(currentText); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (qName.equals("ETag")) { this.currentETag = currentOrNull(currentText); } else if (qName.equals("LastModified")) { this.currentLastModified = dateParser .iso8601DateOrSecondsDateParse(currentOrNull(currentText)); } else if (qName.equals("CopyObjectResult")) { metadata = new CopyObjectResult(currentLastModified, currentETag); } currentText.setLength(0); }
public void startElement(String uri, String localName, String qName, Attributes attrs) { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (qName.endsWith("NetworkConnection")) { network = attributes.get("network"); } }
@Override public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, textElement)) { text = currentOrNull(currentText); } currentText = new StringBuilder(); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (SaxUtils.equalsOrSuffix(qName, "CatalogItem")) { catalogItem = newReferenceType(attributes); } else if (SaxUtils.equalsOrSuffix(qName, "Entity")) { entity = newReferenceType(attributes); } else if (SaxUtils.equalsOrSuffix(qName, "Property")) { key = attributes.get("key"); } }
@Override public void endElement(String uri, String name, String qName) { if (qName.equals("Id")) { id = currentOrNull(currentText).replace("/change/", ""); } else if (qName.equals("Status")) { status = Status.fromValue(currentOrNull(currentText)); } else if (qName.equals("SubmittedAt")) { submittedAt = dateService.iso8601DateParse(currentOrNull(currentText)); } currentText = new StringBuilder(); }
@Override public void startElement(String url, String name, String qName, Attributes attributes) { if (equalsOrSuffix(qName, "subnetSet")) { inSubnetSet = true; } else if (inSubnetSet) { if (equalsOrSuffix(qName, "tagSet")) { inTagSet = true; } subnetHandler.startElement(url, name, qName, attributes); } }
public void endElement(String uri, String name, String qName) { if (qName.equals("Description")) { description = currentOrNull(currentText); } currentText = new StringBuilder(); }
public void endElement(String uri, String name, String qName) { if (qName.equals("ETag")) { this.currentETag = currentOrNull(currentText); } else if (qName.equals("LastModified")) { this.currentLastModified = dateParser .iso8601DateOrSecondsDateParse(currentOrNull(currentText)); } else if (qName.equals("CopyObjectResult")) { metadata = new CopyObjectResult(currentLastModified, currentETag); } currentText.setLength(0); }
@Override public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException { Map<String, String> attributes = SaxUtils.cleanseAttributes(attrs); if (qName.equals("Error")) { error = Utils.newError(attributes); } } }
public void endElement(String uri, String name, String qName) { if (equalsOrSuffix(qName, "Description")) { description = currentOrNull(currentText); } currentText = new StringBuilder(); }