Package org.jclouds.ultradns.ws.domain.Zone

Examples of org.jclouds.ultradns.ws.domain.Zone.Type


   @Override
   public void startElement(String uri, String localName, String qName, Attributes attrs) {
      Map<String, String> attributes = cleanseAttributes(attrs);
      if (equalsOrSuffix(qName, "GeneralZoneProperties")) {
         Type type = Type.valueOf(checkNotNull(attributes.get("zoneType"), "zoneType").toUpperCase());
         int count = Integer.parseInt(checkNotNull(attributes.get("resourceRecordCount"), "resourceRecordCount"));
         zone = ZoneProperties.builder()
                              .name(attributes.get("name"))
                              .typeCode(type.getCode())
                              .resourceRecordCount(count)
                              .modified(dateService.iso8601DateParse(attributes.get("modified"))).build();
      }
   }
View Full Code Here


   @Override
   public void startElement(String uri, String localName, String qName, Attributes attrs) {
      Map<String, String> attributes = cleanseAttributes(attrs);
      if (equalsOrSuffix(qName, "GeneralZoneProperties")) {
         Type type = Type.valueOf(checkNotNull(attributes.get("zoneType"), "zoneType").toUpperCase());
         int count = Integer.parseInt(checkNotNull(attributes.get("resourceRecordCount"), "resourceRecordCount"));
         zone = ZoneProperties.builder()
                              .name(attributes.get("name"))
                              .typeCode(type.getCode())
                              .resourceRecordCount(count)
                              .modified(dateService.iso8601DateParse(attributes.get("modified"))).build();
      }
   }
View Full Code Here

   @Override
   public void startElement(String uri, String localName, String qName, Attributes attrs) {
      Map<String, String> attributes = cleanseAttributes(attrs);
      if (equalsOrSuffix(qName, "GeneralZoneProperties")) {
         Type type = Type.valueOf(checkNotNull(attributes.get("zoneType"), "zoneType").toUpperCase());
         int count = Integer.parseInt(checkNotNull(attributes.get("resourceRecordCount"), "resourceRecordCount"));
         zone = ZoneProperties.builder()
                              .name(attributes.get("name"))
                              .typeCode(type.getCode())
                              .resourceRecordCount(count)
                              .modified(dateService.iso8601DateParse(attributes.get("modified"))).build();
      }
   }
View Full Code Here

TOP

Related Classes of org.jclouds.ultradns.ws.domain.Zone.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.