Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2012.03.23 at 06:29:13 PM CET 
  //
  
  
  package nl.cloudfarming.client.isobus.model;
 
 import java.util.List;
Type: Coding data Description: The ColourLegend XML element describes a colour legend that can be used to display values in different colours on a grid map. A ColourLegend XML element includes ColourRange XML elements which specify the colour to be used when presenting the value. The attribute DefaultColour is used to present the value when no ColourRange within which the value falls is specified. Referenced by XML element: - ValuePresentation Includes XML element: - ColourRange
 
 @XmlType(name = "", propOrder = {
     "colorRange"
 })
 @XmlRootElement(name = "CLD")
 public class IsobusColor {
 
     @XmlElement(name = "CRG")
     protected List<ColorRangecolorRange;
     @XmlAttribute(name = "A", required = true)
     @XmlID
     protected String id;
     @XmlAttribute(name = "B")
     protected Short defaultColor;

    
Gets the value of the ColorRange property. Includes a list of XML elements ColourRange Gets the value of the colorRange 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 colorRange property.

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

    getColorRange().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
     public List<ColorRangegetColorRange() {
         if ( == null) {
              = new ArrayList<ColorRange>();
         }
         return this.;
     }

    
Gets the value of the id property. Unique identifier of ColourLegend Format: (CLD|CLD-)([0-9])+ Records generated on MICS have negative IDs

Returns:
possible object is
    public String getId() {
        return ;
    }

    
Sets the value of the id property.

Parameters:
value allowed object is
    public void setId(String value) {
        this. = value;
    }

    
Gets the value of the defaultColor property. Default colour of the ColourLegend Format: palette like ISO 11783-6

Returns:
possible object is
    public Short getDefaultColor() {
        return ;
    }

    
Sets the value of the defaultColor property.

Parameters:
value allowed object is
    public void setDefaultColor(Short value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X