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;
 
Type: Coding data Description: The ValuePresentation XML element is used to specify the presentation of data dictionary entity-defined integer values. The presentation shall be according to the following formula: Presented value = (integer value + Offset) * Scale Presented values are always rounded to the number of decimals specified in the NumberOfDecimals attribute. References XML elements: - ColourLegend Referenced by XML elements: - DataLogTrigger - ProcessDataVariable - Product - ProductAllocation
 
 @XmlType(name = "")
 @XmlRootElement(name = "VPN")
 public class ValuePresentation {
 
     @XmlAttribute(name = "A", required = true)
     @XmlID
     protected String valuePresentationId;
     @XmlAttribute(name = "B", required = true)
     protected int offset;
     @XmlAttribute(name = "C", required = true)
     protected float scale;
     @XmlAttribute(name = "D", required = true)
     protected short numberOfDecimals;
     @XmlAttribute(name = "E")
     protected String unitDesignator;
     @XmlAttribute(name = "F")
     @XmlIDREF
     protected Object colorLegendIdRef;

    
Unique identifier of ValuePresentation Format: (VPN|VPN-)([0-9])+

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

    
Sets the value of the valuePresentationId property.

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

    
Offset to be applied to the value for presentation
 
     public int getOffset() {
        return ;
    }

    
Sets the value of the offset property.
    public void setOffset(int value) {
        this. = value;
    }

    
Scale to be applied to the value for presentation
    public float getScale() {
        return ;
    }

    
Sets the value of the scale property.
    public void setScale(float value) {
        this. = value;
    }

    
Number of decimals to be presented after the decimal separator
    public short getNumberOfDecimals() {
        return ;
    }

    
Sets the value of the numberOfDecimals property.
    public void setNumberOfDecimals(short value) {
        this. = value;
    }

    
Optional Unit Designator string

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

    
Sets the value of the unitDesignator property.

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

    
Reference to XML element ColourLegend Format: (CLD|CLD-)([0-9])+

Returns:
possible object is
    public Object getColorLegendIdRef() {
        return ;
    }

    
Sets the value of the colorLegendIdRef property.

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