All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cups4j.ipp.attributes.AttributeGroup Maven / Gradle / Ivy

There is a newer version: 0.7.9
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-792 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.10.14 at 12:03:17 PM MESZ 
//

package org.cups4j.ipp.attributes;

import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

import java.util.ArrayList;
import java.util.List;

@Root(name = "attribute-group")
public class AttributeGroup {
  @ElementList(entry = "attribute", inline = true)
  protected List attribute;
  @org.simpleframework.xml.Attribute(required = true)
  protected String tag;
  @org.simpleframework.xml.Attribute(name = "tag-name", required = true)
  protected String tagName;
  @org.simpleframework.xml.Attribute(required = false)
  protected String description;

  /**
   * Gets the value of the attribute property.
   * 
   * 

* This accessor method returns a reference to the live list, not a snapshot. * Therefore any modification you make to the returned list will be present * inside the JAXB object. This is why there is not a set method * for the attribute property. * *

* For example, to add a new item, do as follows: * *

   * getAttribute().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list {@link Attribute } * * */ public List getAttribute() { if (attribute == null) { attribute = new ArrayList(); } return this.attribute; } /** * Gets the attribute with the given name. * * @param name name of the attribute * @return attribute with the given name */ public Attribute getAttribute(String name) { for (Attribute attr : getAttribute()) { if (name.equals(attr.getName())) { return attr; } } return new Attribute(); } /** * Gets the value of the tag property. * * @return possible object is {@link String } * */ public String getTag() { return tag; } /** * Sets the value of the tag property. * * @param value * allowed object is {@link String } * */ public void setTag(String value) { this.tag = value; } /** * Gets the value of the tagName property. * * @return possible object is {@link String } * */ public String getTagName() { return tagName; } /** * Sets the value of the tagName property. * * @param value * allowed object is {@link String } * */ public void setTagName(String value) { this.tagName = value; } /** * Gets the value of the description property. * * @return possible object is {@link String } * */ public String getDescription() { return description; } /** * Sets the value of the description property. * * @param value * allowed object is {@link String } * */ public void setDescription(String value) { this.description = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy