< prev index next >

## src/com/sun/javatest/cof/COFTestAttribute.java

Print this page

    *** 83,120 ****
          "name",
          "value"
      })*/
      public class COFTestAttribute extends COFItem{

    ! static LinkedHashMap xmlAttributes;
    ! static LinkedHashMap xmlElements;

          static String xmlTagName;

          static {
    !                 xmlElements = new LinkedHashMap();
                      xmlElements.put("name","name");
                      xmlElements.put("value","value");
                      xmlTagName = "attribute";
              }

          //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    !     protected List/*<String>*/ name;

              //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    !     protected List/*<String>*/ value;

              public COFTestAttribute(String name, String value) {
                      this.getName().add(name);
                      this.getValue().add(value);
              }

    !         LinkedHashMap getItemAttributes() {
                      return xmlAttributes;
              }

    !         LinkedHashMap getItemElements() {
                      return xmlElements;
              }

              String getItemTagName() {
                      return xmlTagName;
    --- 83,120 ----
          "name",
          "value"
      })*/
      public class COFTestAttribute extends COFItem{

    ! static LinkedHashMap<String, String> xmlAttributes;
    ! static LinkedHashMap<String, String> xmlElements;

          static String xmlTagName;

          static {
    !                 xmlElements = new LinkedHashMap<>();
                      xmlElements.put("name","name");
                      xmlElements.put("value","value");
                      xmlTagName = "attribute";
              }

          //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    !     protected List<String> name;

              //    @XmlElement(namespace = "http://qare.sfbay.sun.com/projects/COF/2003/2_0_2/Schema", required = true)
    !     protected List<String> value;

              public COFTestAttribute(String name, String value) {
                      this.getName().add(name);
                      this.getValue().add(value);
              }

    !         LinkedHashMap<String, String> getItemAttributes() {
                      return xmlAttributes;
              }

    !         LinkedHashMap<String, String> getItemElements() {
                      return xmlElements;
              }

              String getItemTagName() {
                      return xmlTagName;
    *** 140,152 ****
           * Objects of the following type(s) are allowed in the list
           * {@link String }
           *
           *
           */
    !     public List/*<String>*/ getName() {
              if (name == null) {
    !             name = new ArrayList/*<String>*/();
              }
              return this.name;
          }

              /**
    --- 140,152 ----
           * Objects of the following type(s) are allowed in the list
           * {@link String }
           *
           *
           */
    !     public List<String> getName() {
              if (name == null) {
    !             name = new ArrayList<>();
              }
              return this.name;
          }

              /**
    *** 169,181 ****
           * Objects of the following type(s) are allowed in the list
           * {@link String }
           *
           *
           */
    !     public List/*<String>*/ getValue() {
              if (value == null) {
    !             value = new ArrayList/*<String>*/();
              }
              return this.value;
          }

      }
    --- 169,181 ----
           * Objects of the following type(s) are allowed in the list
           * {@link String }
           *
           *
           */
    !     public List<String> getValue() {
              if (value == null) {
    !             value = new ArrayList<>();
              }
              return this.value;
          }

      }

< prev index next >